BloombergLP::ball::Attribute::Attribute

Constructors

Synopses

Declared in <ball_attribute.h>

Create an Attribute object having the same (literal) name and attribute 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.

Attribute(
    Attribute const& original,
    allocator_type const& allocator = allocator_type());
» more...

Same as the preceding overload, using the specified value.

Attribute(
    char const* name,
    bdlb::Guid value,
    allocator_type const& allocator = allocator_type());
» more...

Create an Attribute object having the specified (literal) 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. Note that name is not managed by this object and therefore must remain valid while in use by any Attribute object.

Attribute(
    char const* name,
    int value,
    allocator_type const& allocator = allocator_type());
» more...

Same as the preceding overload, using the specified value.

Attribute(
    char const* name,
    long value,
    allocator_type const& allocator = allocator_type());
» more...

Same as the preceding overload, using the specified value.

Attribute(
    char const* name,
    long long value,
    allocator_type const& allocator = allocator_type());
» more...

Same as the preceding overload, using the specified value.

Attribute(
    char const* name,
    unsigned int value,
    allocator_type const& allocator = allocator_type());
» more...

Same as the preceding overload, using the specified value.

Attribute(
    char const* name,
    unsigned long value,
    allocator_type const& allocator = allocator_type());
» more...

Same as the preceding overload, using the specified value.

Attribute(
    char const* name,
    unsigned long long value,
    allocator_type const& allocator = allocator_type());
» more...

Create an Attribute object having the specified (literal) 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. Note that name is not managed by this object and therefore must remain valid while in use by any Attribute object.

Attribute(
    char const* name,
    Value const& value,
    allocator_type const& allocator = allocator_type());
» more...

Create an Attribute object having the specified (literal) name and (character string) value. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. Note that name is not managed by this object and therefore must remain valid while in use by any Attribute object.

Attribute(
    char const* name,
    std::string_view const& value,
    allocator_type const& allocator = allocator_type());
» more...

Create an Attribute object having the specified (literal) name and (character string) value. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. Note that name is not managed by this object and therefore must remain valid while in use by any Attribute object.

Attribute(
    char const* name,
    char const* value,
    allocator_type const& allocator = allocator_type());
» more...

Create an Attribute object having the specified (literal) name and (const-qualified void pointer) value. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.

Attribute(
    char const* name,
    void const* value,
    allocator_type const& allocator = allocator_type());
» more...