Type-erased non-const reference to an object in the bdlat simple-type category.
Declared in <bdlar_simpletyperef.h>
class SimpleTypeRef;
| Name | Description |
|---|---|
SimpleTypeRef [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. |
manipulate | manipulate overloads |
manipulateWithCategory | Invoke the specified manipulator on the value held by this object supplying manipulator 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 manipulator must be an object callable with a value of any simple type as if it had the following signature: ` int manipulator(VALUE *value, bdlat_TypeCategory::Simple); // and int manipulator(bsl::vector<char> *value, bdlat_TypeCategory::Array); ` Return the value from the invocation of manipulator. |
objectAddress | Return a pointer to the wrapped object. |
reset | Reset the referred object to the default value. |
typeId | Return the type ID corresponding to the simple type held by this object. |
vtable | Return a pointer to the vtable. |
| Name | Description |
|---|---|
bdlat_valueTypeReset | Reset the specified ref to the default value. |