#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 | ( | void | ) | const |
const Generic* PrivateGetPtr | ( | ) | const |
const Generic* GetPtr | ( | const DataType & | type | ) | const |
const T* GetPtr | ( | void | ) | const |
Opt<const T&> Get | ( | void | ) | const |
const ConstDataPtr& ToConstDataPtr | ( | ) | const |
const DataPtr& ToDataPtr | ( | ) | const |
Bool IsEmpty | ( | ) | const |
Bool IsPopulated | ( | void | ) | const |
const DataTypeImpl* _typeInfo |
const Generic* _dataPtr |