BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlar::CustomizedTypeConstRef Class Reference

#include <bdlar_customizedtyperef.h>

Public Member Functions

template<class t_TYPE >
 CustomizedTypeConstRef (const t_TYPE &object, typename bsl::enable_if< IsCustomized< t_TYPE >::value >::type *=0)
 
 CustomizedTypeConstRef (const void *objectAddress, const CustomizedTypeConstVtable *vtable)
 
 CustomizedTypeConstRef (const CustomizedTypeRef &object)
 
bdlat_TypeCategory::Value baseCategory () const
 
AnyConstRefData convertToBaseType () const
 
const CustomizedTypeConstVtablevtable () const
 
const void * objectAddress () const
 
void * tmpAnyBuffer () const
 

Constructor & Destructor Documentation

◆ CustomizedTypeConstRef() [1/3]

template<class t_TYPE >
bdlar::CustomizedTypeConstRef::CustomizedTypeConstRef ( const t_TYPE &  object,
typename bsl::enable_if< IsCustomized< t_TYPE >::value >::type *  = 0 
)
inlineexplicit

Create CustomizedTypeConstRef object that type erases the supplied "customized type" object.

◆ CustomizedTypeConstRef() [2/3]

bdlar::CustomizedTypeConstRef::CustomizedTypeConstRef ( const void *  objectAddress,
const CustomizedTypeConstVtable vtable 
)
inline

Create CustomizedTypeConstRef object.

Precondition
The behaviour is undefined unless objectAddress and vtable point to the valid objects.

◆ CustomizedTypeConstRef() [3/3]

bdlar::CustomizedTypeConstRef::CustomizedTypeConstRef ( const CustomizedTypeRef object)
inline

Create CustomizedTypeConstRef object that wraps the same object as the specified object.

Member Function Documentation

◆ baseCategory()

bdlat_TypeCategory::Value bdlar::CustomizedTypeConstRef::baseCategory ( ) const
inline

Return a type category of the base type.

◆ convertToBaseType()

AnyConstRefData bdlar::CustomizedTypeConstRef::convertToBaseType ( ) const
inline

Return a reference to the base value.

◆ objectAddress()

const void * bdlar::CustomizedTypeConstRef::objectAddress ( ) const
inline

Return a pointer to the wrapped object.

◆ tmpAnyBuffer()

void * bdlar::CustomizedTypeConstRef::tmpAnyBuffer ( ) const
inline

Return a pointer to buffer large enough to store one AnyConstRef object.

◆ vtable()

const CustomizedTypeConstVtable * bdlar::CustomizedTypeConstRef::vtable ( ) const
inline

Return a pointer to the vtable.


The documentation for this class was generated from the following file: