BloombergLP::ball::ManagedAttribute

A ball::ManagedAttribute object contains a ball::Attribute object and provides storage for the attribute's name.

Synopsis

Declared in <ball_managedattribute.h>

class ManagedAttribute;

Type Aliases

NameDescription
allocator_type This typedef is an alias for the allocator used by this object.

Member Functions

NameDescription
ManagedAttribute [constructor]Constructors
operator= Assign to this object the value of the specified rhs object, and return a non-const reference to this object.
attribute Return a const reference to the attribute of this object.
get_allocator Return the allocator used by this object to supply memory.
key Return a const reference to the attribute name of this object.
name Return the attribute name of this object. Note that this accessor should not be used to get the attribute name if the name string contains embedded zeros.
print Format this object to the specified output stream.
setName Set the attribute name of this object to the specified name.
setValue setValue overloads
value Return a const reference to the attribute value of this object.
operator BloombergLP::bslmf::NestedTraitDeclaration<ManagedAttribute, UsesBslmaAllocator> Declare that this type uses a bslma allocator.

Static Member Functions

NameDescription
hash Return a hash value calculated from the specified attribute using the specified size as the number of slots.

Friends

NameDescription
BloombergLP::ball::operator<<Write the value of the specified attribute to the specified output stream. Return the specified output stream.
BloombergLP::ball::operator!=Return true if the specified lhs and rhs objects do not have the same value, and false otherwise.
BloombergLP::ball::operator==Return true if the specified lhs and rhs objects have the same value, and false otherwise.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs objects do not have the same value, and false otherwise.
operator==Return true if the specified lhs and rhs objects have the same value, and false otherwise.