8#ifndef INCLUDED_BALL_MANAGEDATTRIBUTE
9#define INCLUDED_BALL_MANAGEDATTRIBUTE
89#include <balscm_version.h>
104#include <bsl_string.h>
192 unsigned long long value,
263 bsl::ostream&
print(bsl::ostream& stream,
265 int spacesPerLevel = 4)
const;
276 const char *
name()
const;
324: d_name(attribute.name(), allocator)
325, d_attribute(d_name.c_str(), attribute.value(), allocator)
333: d_name(name, allocator)
334, d_attribute(d_name.c_str(), value, allocator)
342: d_name(name, allocator)
343, d_attribute(d_name.c_str(), value, allocator)
351: d_name(name, allocator)
352, d_attribute(d_name.c_str(), value, allocator)
360: d_name(name, allocator)
361, d_attribute(d_name.c_str(), value, allocator)
369: d_name(name, allocator)
370, d_attribute(d_name.c_str(), value, allocator)
378: d_name(name, allocator)
379, d_attribute(d_name.c_str(), value, allocator)
387: d_name(name, allocator)
388, d_attribute(d_name.c_str(), value, allocator)
394 unsigned long long value,
396: d_name(name, allocator)
397, d_attribute(d_name.c_str(), value, allocator)
405: d_name(name, allocator)
406, d_attribute(d_name.c_str(), value, allocator)
414: d_name(name, allocator)
415, d_attribute(d_name.c_str(), value, allocator)
422: d_name(original.d_name, allocator)
423, d_attribute(d_name.c_str(), original.d_attribute.value(), allocator)
433 d_attribute.
setValue(rhs.d_attribute.value());
520 return d_attribute.
name();
526 return d_attribute.
value();
542 const ManagedAttribute& rhs)
544 return (lhs.d_name == rhs.d_name
545 && lhs.d_attribute.value() == rhs.d_attribute.value());
550 const Attribute& rhs)
552 return (
lhs.key() ==
rhs.name() &&
lhs.value() ==
rhs.value());
557 const ManagedAttribute& rhs)
559 return (
lhs.name() ==
rhs.key() &&
lhs.value() ==
rhs.value());
564 const ManagedAttribute& rhs)
571 const Attribute& rhs)
578 const ManagedAttribute& rhs)
Definition ball_attribute.h:199
void setName(const char *name)
Definition ball_attribute.h:558
void setValue(const Value &value)
Set the attribute value of this object to the specified value.
Definition ball_attribute.h:565
const char * name() const
Return the name of this object.
Definition ball_attribute.h:643
static int hash(const Attribute &attribute, int size)
const Value & value() const
Definition ball_attribute.h:651
Definition ball_managedattribute.h:117
const Attribute & attribute() const
Return a const reference to the attribute of this object.
Definition ball_managedattribute.h:506
bsl::allocator< char > allocator_type
Definition ball_managedattribute.h:131
const Attribute::Value & value() const
Return a const reference to the attribute value of this object.
Definition ball_managedattribute.h:524
friend bool operator==(const ManagedAttribute &, const ManagedAttribute &)
BSLMF_NESTED_TRAIT_DECLARATION(ManagedAttribute, bslma::UsesBslmaAllocator)
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
allocator_type get_allocator() const
Definition ball_managedattribute.h:532
friend bsl::ostream & operator<<(bsl::ostream &, const ManagedAttribute &)
static int hash(const ManagedAttribute &attribute, int size)
Definition ball_managedattribute.h:315
ManagedAttribute & operator=(const ManagedAttribute &rhs)
Definition ball_managedattribute.h:429
void setValue(int value)
Set the attribute value of this object to the specified value.
Definition ball_managedattribute.h:445
const char * name() const
Definition ball_managedattribute.h:518
ManagedAttribute(const Attribute &attribute, const allocator_type &allocator=allocator_type())
Definition ball_managedattribute.h:322
const bsl::string & key() const
Return a const reference to the attribute name of this object.
Definition ball_managedattribute.h:512
~ManagedAttribute()=default
Destroy this object.
void setName(const bsl::string_view &name)
Set the attribute name of this object to the specified name.
Definition ball_managedattribute.h:438
friend bool operator!=(const ManagedAttribute &, const ManagedAttribute &)
Definition bslma_bslallocator.h:588
Definition bslstl_stringview.h:471
Definition bslstl_string.h:1252
const CHAR_TYPE * c_str() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:7405
basic_string & assign(const basic_string &replacement)
Definition bslstl_string.h:6347
allocator_type get_allocator() const BSLS_KEYWORD_NOEXCEPT
Return the allocator used by this string to supply memory.
Definition bslstl_string.h:7423
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition ball_administration.h:214
bsl::ostream & operator<<(bsl::ostream &output, const Attribute &attribute)
bool operator!=(const Attribute &lhs, const Attribute &rhs)
bool operator==(const Attribute &lhs, const Attribute &rhs)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Definition bslma_usesbslmaallocator.h:344