This class implements a value‐semantic collection of unique attributes.

Synopsis

Declared in <ball_managedattributeset.h>

class ManagedAttributeSet;

Description

(Note that an attribute is a compound entity that, as a whole, must be unique although individual parts need not be.) Additionally, the evaluate accessor can be used to determine if every attribute in the set is present in the specified attribute container list.

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 managed attribute set.

Member Functions

Name

Description

ManagedAttributeSet [constructor]

Constructors

operator=

Assign the value of the specified rhs to this object, and return a reference providing modifiable access to this object.

addAttribute

Add an attribute having the specified value to this object.

addPredicate

Add an attribute having the specified value to this object. Return 1 on success and 0 if an attribute having the same value already exists in this object.

begin

Return an iterator referring to the first member of this attribute set.

end

Return an iterator referring to one past the last member of this attribute set.

evaluate

Return true if every attribute in this set is present in containerList.

get_allocator

Return the allocator used by this object to supply memory.

isMember

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

numAttributes

Return the number of attributes managed by this object.

numPredicates

DEPRECATED: Use numAttributes instead.

print

Format this object to the specified output stream.

removeAll

Remove all attributes from this attribute set.

removeAllPredicates

DEPRECATED: Use removeAll instead.

removeAttribute

Remove the attribute having the specified value from this object.

removePredicate

Remove the attribute having the specified value from this object.

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

Declare that this type uses a bslma allocator.

Static Member Functions

Name

Description

hash

Return a hash value calculated from the specified set.

Friends

Name

Description

BloombergLP::ball::operator<<

Write the value of the specified attributeSet 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.

Created with MrDocs