Constructors
Declared in <ball_managedattribute.h>
Create a ManagedAttribute object having the value of the specified attribute. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
explicit
ManagedAttribute(
Attribute const& attribute,
allocator_type const& allocator = allocator_type());
» more...
Create a ManagedAttribute object having the same value as the specified original object. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
ManagedAttribute(
ManagedAttribute const& original,
allocator_type const& allocator = allocator_type());
» more...
Create a ManagedAttribute object having the specified name and value. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
ManagedAttribute(
std::string_view const& name,
int value,
allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified value.
ManagedAttribute(
std::string_view const& name,
long value,
allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified value.
ManagedAttribute(
std::string_view const& name,
long long value,
allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified value.
ManagedAttribute(
std::string_view const& name,
unsigned int value,
allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified value.
ManagedAttribute(
std::string_view const& name,
unsigned long value,
allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified value.
ManagedAttribute(
std::string_view const& name,
unsigned long long value,
allocator_type const& allocator = allocator_type());
» more...
Create a ManagedAttribute object having the specified name and value. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
ManagedAttribute(
std::string_view const& name,
Attribute::Value const& value,
allocator_type const& allocator = allocator_type());
» more...
Create a ManagedAttribute object having the specified name and string value. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
ManagedAttribute(
std::string_view const& name,
std::string_view const& value,
allocator_type const& allocator = allocator_type());
» more...
Create a ManagedAttribute object having the specified name and the C-style value string. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
ManagedAttribute(
std::string_view const& name,
char const* value,
allocator_type const& allocator = allocator_type());
» more...
Create a ManagedAttribute object having the specified name and the pointer to the specified value of cv-qualified void type. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
ManagedAttribute(
std::string_view const& name,
void const* value,
allocator_type const& allocator = allocator_type());
» more...