#include <ball_scopedattribute.h>
|
| BSLMF_NESTED_TRAIT_DECLARATION (ScopedAttribute_Container, bslma::UsesBslmaAllocator) |
|
| ScopedAttribute_Container (const char *name, const bsl::string_view &value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, const char *value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, int value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, long value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, long long value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, unsigned int value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, unsigned long value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, unsigned long long value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, bdlb::Guid value, const allocator_type &allocator=allocator_type()) |
|
| ScopedAttribute_Container (const char *name, const void *value, const allocator_type &allocator=allocator_type()) |
|
| ~ScopedAttribute_Container () BSLS_KEYWORD_OVERRIDE |
| Destroy this object.
|
|
bool | hasValue (const Attribute &attribute) const BSLS_KEYWORD_OVERRIDE |
|
bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const BSLS_KEYWORD_OVERRIDE |
|
void | visitAttributes (const bsl::function< void(const Attribute &)> &visitor) const BSLS_KEYWORD_OVERRIDE |
|
allocator_type | get_allocator () const |
|
virtual | ~AttributeContainer () |
| Destroy this object.
|
|
This component-private class is a concrete implementation of the AttributeContainer
protocol for a single attribute.
See ball_scopedattribute
◆ allocator_type
◆ ScopedAttribute_Container() [1/10]
◆ ScopedAttribute_Container() [2/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
const char * |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
◆ ScopedAttribute_Container() [3/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
int |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
◆ ScopedAttribute_Container() [4/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
long |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
◆ ScopedAttribute_Container() [5/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
long long |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
◆ ScopedAttribute_Container() [6/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
unsigned int |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
◆ ScopedAttribute_Container() [7/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
unsigned long |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
◆ ScopedAttribute_Container() [8/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
unsigned long long |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
◆ ScopedAttribute_Container() [9/10]
◆ ScopedAttribute_Container() [10/10]
ball::ScopedAttribute_Container::ScopedAttribute_Container |
( |
const char * |
name, |
|
|
const void * |
value, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
Create a BALL attribute container holding a single rule, associating the specified name
with the specified value
. Optionally specify an allocator
(e.g., the address of a bslma::Allocator
object) to supply memory; otherwise, the default allocator is used.
◆ ~ScopedAttribute_Container()
ball::ScopedAttribute_Container::~ScopedAttribute_Container |
( |
| ) |
|
◆ BSLMF_NESTED_TRAIT_DECLARATION()
◆ 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::ScopedAttribute_Container::hasValue |
( |
const Attribute & |
attribute | ) |
const |
|
inlinevirtual |
Return true
if the specified attribute
is the same as the value held in this container, and false
otherwise.
Implements ball::AttributeContainer.
◆ print()
bsl::ostream & ball::ScopedAttribute_Container::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.
◆ visitAttributes()
void ball::ScopedAttribute_Container::visitAttributes |
( |
const bsl::function< void(const Attribute &)> & |
visitor | ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following file: