A DefaultAttributeContainer object contains a collection of (unique) attributes values.

Synopsis

Declared in <ball_defaultattributecontainer.h>

class DefaultAttributeContainer
    : public AttributeContainer

Base Classes

Name

Description

AttributeContainer

This class defines a protocol for a container of attribute values.

Type Aliases

Name

Description

allocator_type

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

const_iterator

This typedef is an alias for a constant iterator over the attributes managed by this object.

Member Functions

Name

Description

DefaultAttributeContainer [constructor]

Constructors

~DefaultAttributeContainer [destructor] [virtual]

Destroy this object.

operator=

Assign to this object the value of the specified rhs object, and return a non‐`const` reference to this object.

addAttribute

Add an attribute having the specified value to this object.

begin

Return an iterator pointing at the beginning of the (unordered) sequence of attributes managed by this map, or end() if numAttributes() is 0.

end

Return an iterator pointing at one past the end of the map.

get_allocator

Return the allocator used by this object to supply memory.

hasValue [virtual]

Return true if the attribute having specified value exists in this object, and false otherwise.

numAttributes

Return the number of attributes managed by this object.

print [virtual]

Format this object to the specified output stream.

removeAllAttributes

Remove every attribute in this attribute set.

removeAttribute

Remove the attribute having the specified value from this object.

visitAttributes [virtual]

Invoke the specified visitor function for all attributes in this container.

operator BloombergLP::bslmf::NestedTraitDeclaration<DefaultAttributeContainer, UsesBslmaAllocator>

Declare that this type uses a bslma allocator.

Non-Member Functions

Name

Description

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.

Created with MrDocs