8#ifndef INCLUDED_BALL_MANAGEDATTRIBUTE
9#define INCLUDED_BALL_MANAGEDATTRIBUTE
89#include <balscm_version.h>
104#include <bsl_string.h>
191 unsigned long long value,
261 bsl::ostream&
print(bsl::ostream& stream,
263 int spacesPerLevel = 4)
const;
273 const char *
name()
const;
321: d_name(attribute.name(), allocator)
322, d_attribute(d_name.c_str(), attribute.value(), allocator)
330: d_name(name, allocator)
331, d_attribute(d_name.c_str(), value, allocator)
339: d_name(name, allocator)
340, d_attribute(d_name.c_str(), value, allocator)
348: d_name(name, allocator)
349, d_attribute(d_name.c_str(), value, allocator)
357: d_name(name, allocator)
358, d_attribute(d_name.c_str(), value, allocator)
366: d_name(name, allocator)
367, d_attribute(d_name.c_str(), value, allocator)
375: d_name(name, allocator)
376, d_attribute(d_name.c_str(), value, allocator)
384: d_name(name, allocator)
385, d_attribute(d_name.c_str(), value, allocator)
391 unsigned long long value,
393: d_name(name, allocator)
394, d_attribute(d_name.c_str(), value, allocator)
402: d_name(name, allocator)
403, d_attribute(d_name.c_str(), value, allocator)
411: d_name(name, allocator)
412, d_attribute(d_name.c_str(), value, allocator)
419: d_name(original.d_name, allocator)
420, d_attribute(d_name.c_str(), original.d_attribute.value(), allocator)
517 return d_attribute.
name();
523 return d_attribute.
value();
539 const ManagedAttribute& rhs)
541 return (lhs.d_name == rhs.d_name
542 && lhs.d_attribute.value() == rhs.d_attribute.value());
547 const Attribute& rhs)
549 return (lhs.key() == rhs.name() && lhs.value() == rhs.value());
554 const ManagedAttribute& rhs)
556 return (lhs.name() == rhs.key() && lhs.value() == rhs.value());
561 const ManagedAttribute& rhs)
563 return !(lhs == rhs);
568 const Attribute& rhs)
570 return !(lhs == rhs);
575 const ManagedAttribute& rhs)
577 return !(lhs == rhs);
Definition ball_attribute.h:198
void setName(const char *name)
Definition ball_attribute.h:558
void setValue(const Value &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:649
Definition ball_managedattribute.h:117
const Attribute & attribute() const
Return a const reference to the attribute of this object.
Definition ball_managedattribute.h:503
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:521
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:529
friend bsl::ostream & operator<<(bsl::ostream &, const ManagedAttribute &)
static int hash(const ManagedAttribute &attribute, int size)
Definition ball_managedattribute.h:312
ManagedAttribute & operator=(const ManagedAttribute &rhs)
Definition ball_managedattribute.h:426
void setValue(int value)
Definition ball_managedattribute.h:442
const char * name() const
Definition ball_managedattribute.h:515
ManagedAttribute(const Attribute &attribute, const allocator_type &allocator=allocator_type())
Definition ball_managedattribute.h:319
const bsl::string & key() const
Return a const reference to the attribute name of this object.
Definition ball_managedattribute.h:509
~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:435
friend bool operator!=(const ManagedAttribute &, const ManagedAttribute &)
Definition bslma_bslallocator.h:580
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
const CHAR_TYPE * c_str() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:6705
basic_string & assign(const basic_string &replacement)
Definition bslstl_string.h:5716
allocator_type get_allocator() const BSLS_KEYWORD_NOEXCEPT
Return the allocator used by this string to supply memory.
Definition bslstl_string.h:6723
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
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)
Definition bslma_usesbslmaallocator.h:343