Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate NTC to fine-grained NTSCFG_TYPE_TRAIT_* #240

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_acceptcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,15 @@ class AcceptContext
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(AcceptContext);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(AcceptContext);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(AcceptContext);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_acceptevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,15 @@ class AcceptEvent
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(AcceptEvent);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(AcceptEvent);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(AcceptEvent);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_acceptoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,15 @@ class AcceptOptions
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(AcceptOptions);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(AcceptOptions);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(AcceptOptions);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_acceptqueuecontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,15 @@ class AcceptQueueContext
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(AcceptQueueContext);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(AcceptQueueContext);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(AcceptQueueContext);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_acceptqueueevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,15 @@ class AcceptQueueEvent
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(AcceptQueueEvent);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(AcceptQueueEvent);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(AcceptQueueEvent);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_accepttoken.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,15 @@ class AcceptToken
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(AcceptToken);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(AcceptToken);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(AcceptToken);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_bindcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,9 @@ class BindContext
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(BindContext);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(BindContext);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_bindevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ class BindEvent
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(BindEvent);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(BindEvent);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_bindoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,15 @@ class BindOptions
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(BindOptions);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(BindOptions);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(BindOptions);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_bindtoken.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,15 @@ class BindToken
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(BindToken);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(BindToken);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(BindToken);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_connectcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,9 @@ class ConnectContext
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(ConnectContext);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(ConnectContext);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_connectevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,9 @@ class ConnectEvent
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(ConnectEvent);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(ConnectEvent);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_connectoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,15 @@ class ConnectOptions
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(ConnectOptions);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(ConnectOptions);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(ConnectOptions);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
13 changes: 9 additions & 4 deletions groups/ntc/ntca/ntca_connecttoken.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,15 @@ class ConnectToken
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_BITWISE_MOVABLE_TRAITS(ConnectToken);
/// This type's copy-constructor and copy-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_COPYABLE(ConnectToken);

/// This type's move-constructor and move-assignment operator is equivalent
/// to copying each byte of the source object's footprint to each
/// corresponding byte of the destination object's footprint.
NTSCFG_TYPE_TRAIT_BITWISE_MOVABLE(ConnectToken);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_datagramsocketevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,9 @@ class DatagramSocketEvent
/// Return the allocator used by this object.
bslma::Allocator* allocator() const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(DatagramSocketEvent);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(DatagramSocketEvent);
};

/// Write the specified 'object' to the specified 'datagram'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_downgradecontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,9 @@ class DowngradeContext
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(DowngradeContext);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(DowngradeContext);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_downgradeevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ class DowngradeEvent
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(DowngradeEvent);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(DowngradeEvent);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_driverconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,9 @@ class DriverConfig
int level = 0,
int spacesPerLevel = 4) const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(DriverConfig);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(DriverConfig);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
7 changes: 3 additions & 4 deletions groups/ntc/ntca/ntca_drivermechanism.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ class DriverMechanism
/// Return the allocator used by this object.
bslma::Allocator* allocator() const;

/// Defines the traits of this type. These traits can be used to select,
/// at compile-time, the most efficient algorithm to manipulate objects
/// of this type.
NTCCFG_DECLARE_NESTED_USES_ALLOCATOR_TRAITS(DriverMechanism);
/// This type accepts an allocator argument to its constructors and may
/// dynamically allocate memory during its operation.
NTSCFG_TYPE_TRAIT_ALLOCATOR_AWARE(DriverMechanism);
};

/// Write the specified 'object' to the specified 'stream'. Return
Expand Down
Loading