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

#include <bdlar_dynamictyperef.h>

Public Member Functions

template<class t_DYNAMIC >
 DynamicTypeConstRef (const t_DYNAMIC &dynamic, typename bsl::enable_if< IsDynamic< t_DYNAMIC >::value >::type *=0)
 
 DynamicTypeConstRef (const void *objectAddress, const DynamicTypeConstVtable *vtable)
 
 DynamicTypeConstRef (const DynamicTypeRef &object)
 
const DynamicTypeConstVtablevtable () const
 
const void * objectAddress () const
 
bdlat_TypeCategory::Value typeCategory () const
 
AnyConstRefData valueConstRef () const
 
const char * xsdName (int format) const
 

Constructor & Destructor Documentation

◆ DynamicTypeConstRef() [1/3]

template<class t_DYNAMIC >
bdlar::DynamicTypeConstRef::DynamicTypeConstRef ( const t_DYNAMIC &  dynamic,
typename bsl::enable_if< IsDynamic< t_DYNAMIC >::value >::type *  = 0 
)
inlineexplicit

Create DynamicTypeConstRef object that type erases the supplied dynamic object.

◆ DynamicTypeConstRef() [2/3]

bdlar::DynamicTypeConstRef::DynamicTypeConstRef ( const void *  objectAddress,
const DynamicTypeConstVtable vtable 
)
inline

Create DynamicTypeConstRef object.

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

◆ DynamicTypeConstRef() [3/3]

bdlar::DynamicTypeConstRef::DynamicTypeConstRef ( const DynamicTypeRef object)
inline

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

Member Function Documentation

◆ objectAddress()

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

Return a pointer to the wrapped object.

◆ typeCategory()

bdlat_TypeCategory::Value bdlar::DynamicTypeConstRef::typeCategory ( ) const
inline

Return type category of the referred object.

◆ valueConstRef()

AnyConstRefData bdlar::DynamicTypeConstRef::valueConstRef ( ) const
inline

Return a reference to the (non-modifiable) value.

Precondition
The behavior is undefined if the referred object is null.

◆ vtable()

const DynamicTypeConstVtable * bdlar::DynamicTypeConstRef::vtable ( ) const
inline

Return a pointer to the vtable.

◆ xsdName()

const char * bdlar::DynamicTypeConstRef::xsdName ( int  format) const
inline

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


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