#include <datatypebase.h>
Trivial class layout-compatible with ConstDataPtr, DataPtr and MoveDataPtr.
Public Member Functions | |
TrivialDataPtr ()=default | |
TrivialDataPtr (const ConstDataPtr &src) | |
TrivialDataPtr (ConstDataPtr &&src)=delete | |
TrivialDataPtr (const Data &src) | |
TrivialDataPtr (const DataType &type, const Generic *value) | |
const DataType & | GetType () const |
const Generic * | PrivateGetPtr () const |
const Generic * | GetPtr (const DataType &type) const |
template<typename T > | |
const T * | GetPtr () const |
template<typename T > | |
Opt< const T & > | Get () const |
const ConstDataPtr & | ToConstDataPtr () const |
const DataPtr & | ToDataPtr () const |
Bool | IsEmpty () const |
Bool | IsPopulated () const |
Public Attributes | |
const DataTypeImpl * | _typeInfo |
const Generic * | _dataPtr |
|
default |
|
explicit |
|
explicitdelete |
|
explicit |
TrivialDataPtr | ( | const DataType & | type, |
const Generic * | value | ||
) |
const DataType& GetType | ( | ) | const |
const Generic* PrivateGetPtr | ( | ) | const |
const Generic* GetPtr | ( | const DataType & | type | ) | const |
const T* GetPtr | ( | ) | const |
Opt<const T&> Get | ( | ) | const |
const ConstDataPtr& ToConstDataPtr | ( | ) | const |
const DataPtr& ToDataPtr | ( | ) | const |
Bool IsEmpty | ( | ) | const |
Bool IsPopulated | ( | ) | const |
const DataTypeImpl* _typeInfo |
const Generic* _dataPtr |