Type‐erased const reference to an object in the bdlat simple‐type category.

Synopsis

Declared in <bdlar_simpletyperef.h>

class SimpleTypeConstRef;

Member Functions

Name

Description

SimpleTypeConstRef [constructor]

Constructors

access

access overloads

accessWithCategory

Invoke the specified accessor on the value held by this object supplying accessor with an object of bdlat_TypeCategory::Simple type for any type except bsl::vector<char>. The latter is supplied with an object of bdlat_TypeCategory::Array type. The supplied accessor must be an object callable with a value of any simple type as if it had the following signature: ` int accessor(const VALUE& value, bdlat_TypeCategory::Simple); // and int accessor(const bsl::vector<char>& value, bdlat_TypeCategory::Array); ` Return the value from the invocation of accessor.

objectAddress

Return a pointer to the wrapped object.

typeId

Return the type ID corresponding to the simple type held by this object.

vtable

Return a pointer to the vtable.

xsdName

Return the bdlat_TypeName::xsdName value for the underlying object.

Non-Member Functions

Name

Description

bdlat_TypeName_xsdName

Return the bdlat_TypeName::xsdName value for the specified ref.

Created with MrDocs