#include <ball_defaultattributecontainer.h>
A DefaultAttributeContainer object contains a collection of (unique) attributes values.
See ball_defaultattributecontainer
◆ allocator_type
◆ const_iterator
◆ DefaultAttributeContainer() [1/3]
| ball::DefaultAttributeContainer::DefaultAttributeContainer |
( |
| ) |
|
|
inline |
◆ DefaultAttributeContainer() [2/3]
| ball::DefaultAttributeContainer::DefaultAttributeContainer |
( |
const allocator_type & |
allocator | ) |
|
|
inlineexplicit |
◆ DefaultAttributeContainer() [3/3]
Create a DefaultAttributeContainer object having the same value as the specified original object. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
◆ ~DefaultAttributeContainer()
| ball::DefaultAttributeContainer::~DefaultAttributeContainer |
( |
| ) |
|
|
inline |
◆ addAttribute()
| bool ball::DefaultAttributeContainer::addAttribute |
( |
const Attribute & |
value | ) |
|
|
inline |
Add an attribute having the specified value to this object. Return true on success and false if an attribute having the same value already exists in 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.
◆ BSLMF_NESTED_TRAIT_DECLARATION()
◆ end()
◆ get_allocator()
Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the default allocator in effect at construction is used.
◆ hasValue()
| bool ball::DefaultAttributeContainer::hasValue |
( |
const Attribute & |
value | ) |
const |
|
virtual |
Return true if the attribute having specified value exists in this object, and false otherwise.
Implements ball::AttributeContainer.
◆ numAttributes()
| int ball::DefaultAttributeContainer::numAttributes |
( |
| ) |
const |
|
inline |
◆ operator=()
Assign to this object the value of the specified rhs object, and return a non-const reference to this object.
◆ print()
| bsl::ostream & ball::DefaultAttributeContainer::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0, |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
|
virtual |
Format this object to the specified output stream at the (absolute value of) the optionally specified indentation level and return a reference to stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect.
Implements ball::AttributeContainer.
◆ removeAllAttributes()
| void ball::DefaultAttributeContainer::removeAllAttributes |
( |
| ) |
|
|
inline |
◆ removeAttribute()
| bool ball::DefaultAttributeContainer::removeAttribute |
( |
const Attribute & |
value | ) |
|
|
inline |
Remove the attribute having the specified value from this object. Return the true on success and false if the attribute having the value does not exist in this object.
◆ visitAttributes()
The documentation for this class was generated from the following file: