[#BloombergLP-ball-ManagedAttribute] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::ManagedAttribute :relfileprefix: ../../ :mrdocs: A `ball::ManagedAttribute` object contains a `ball::Attribute` object and provides storage for the attribute's name. == Synopsis Declared in `<ball_managedattribute.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ManagedAttribute; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/ManagedAttribute/allocator_type.adoc[`allocator_type`] | This `typedef` is an alias for the allocator used by this object. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/ManagedAttribute/2constructor-0d1.adoc[`ManagedAttribute`] [.small]#[constructor]# | Constructors | xref:BloombergLP/ball/ManagedAttribute/operator_assign.adoc[`operator=`] | Assign to this object the value of the specified `rhs` object, and return a non‐`const` reference to this object. | xref:BloombergLP/ball/ManagedAttribute/attribute.adoc[`attribute`] | Return a `const` reference to the attribute of this object. | xref:BloombergLP/ball/ManagedAttribute/get_allocator.adoc[`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. | xref:BloombergLP/ball/ManagedAttribute/key.adoc[`key`] | Return a `const` reference to the attribute name of this object. | xref:BloombergLP/ball/ManagedAttribute/name.adoc[`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. | xref:BloombergLP/ball/ManagedAttribute/print.adoc[`print`] | 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. | xref:BloombergLP/ball/ManagedAttribute/setName.adoc[`setName`] | Set the attribute name of this object to the specified `name`. | xref:BloombergLP/ball/ManagedAttribute/setValue-059.adoc[`setValue`] | `setValue` overloads | xref:BloombergLP/ball/ManagedAttribute/value.adoc[`value`] | Return a `const` reference to the attribute value of this object. | xref:BloombergLP/ball/ManagedAttribute/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<ManagedAttribute, UsesBslmaAllocator>`] | Declare that this type uses a `bslma` allocator. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/ManagedAttribute/hash.adoc[`hash`] | Return a hash value calculated from the specified `attribute` using the specified `size` as the number of slots. The hash value is guaranteed to be in the range `[0 .. size ‐ 1]`. The behavior is undefined unless `0 < size`. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/ball/operator_lshift-0a7.adoc[BloombergLP::ball::operator<<]` | Write the value of the specified `attribute` to the specified `output` stream. Return the specified `output` stream. | `xref:BloombergLP/ball/operator_not_eq-00.adoc[BloombergLP::ball::operator!=]` | Return `true` if the specified `lhs` and `rhs` objects do not have the same value, and `false` otherwise. Two `ManagedAttribute` objects do not have the same value if any of their respective names, attribute value types, or attribute values differ. | `xref:BloombergLP/ball/operator_eq-008.adoc[BloombergLP::ball::operator==]` | Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `ManagedAttribute` objects have the same value if they have the same name, same attribute value type, and the same attribute value. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/ball/operator_not_eq-0e.adoc[`operator!=`] | Return `true` if the specified `lhs` and `rhs` objects do not have the same value, and `false` otherwise. | xref:BloombergLP/ball/operator_eq-08e7.adoc[`operator==`] | Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#