ConstDataPtr Class Reference Data Types
#include <datatypebase.h>
ConstDataPtr contains type info and a pointer to an arbitrary generic const object. The type of the object is only known at run-time.
Classes |
|
class | Wrapper |
class | Wrapper< T, typename std::enable_if< GetCollectionKind< T >::value==COLLECTION_KIND::ARRAY >::type > |
公共成员函数 |
|
ConstDataPtr ()=default | |
ConstDataPtr (const 数据 &value) | |
ConstDataPtr (const DataType &typeInfo, const Generic *dataPtr) | |
template<typename T > | |
ConstDataPtr (const T &value) | |
Bool | IsEmpty () const |
Bool | IsPopulated () const |
const DataType & | GetType () const |
const Generic * | PrivateGetPtr () const |
void | Set (const DataType &typeInfo, const Generic *dataPtr) |
template<typename T > | |
void | Set (const T &value) |
void | Set (const 数据 &value) |
void | Set ( 数据 &value) |
void | Set ( 数据 &&value) |
const Generic * | GetPtr (const DataType &type) const |
template<typename T > | |
const T * | GetPtr () const |
template<typename T > | |
Result < typename std::conditional< STD_IS_REPLACEMENT (same, T, 数据 )||( GetCollectionKind < T >::value== COLLECTION_KIND::ARRAY ), T, typename ByValueParam < T >::type >::type > | Get () const |
template<typename T > | |
ByValueParam < T >::type | GetOrNull () const |
template<typename T > | |
ByValueParam < T >::type | Get (const T &defaultValue) const |
COMPARERESULT | 比较 (const ConstDataPtr &c) const |
COMPARERESULT | 比较 (const 数据 &c) const |
HashInt | GetHashCode () const |
Bool | operator== (const ConstDataPtr &c) const |
Bool | operator!= (const ConstDataPtr &c) const |
Bool | operator< (const ConstDataPtr &c) const |
Bool | operator<= (const ConstDataPtr &c) const |
Bool | operator> (const ConstDataPtr &c) const |
Bool | operator>= (const ConstDataPtr &c) const |
String | ToString (const FormatStatement *formatStatement=nullptr) const |
template<> | |
Result < void > | Get () const |
template<> | |
Result < 数据 > | Get () const |
静态公共成员函数 |
|
static const ConstDataPtr & | NullValue () |
Protected Member Functions |
|
template<typename T > | |
Result < typename ByValueParam < T >::type > | GetImpl ( OverloadRank0 ) const |
template<typename T > | |
std::enable_if< GetCollectionKind < T >::value== COLLECTION_KIND::ARRAY , Result < T > >::type | GetImpl ( OverloadRank1 ) const |
Protected Attributes |
|
DataType | _typeInfo |
const Generic * | _dataPtr |
Friends |
|
struct | ViewIteratorMember |
class | ContainerViewTypeImpl |
|
default |
|
explicit |
ConstDataPtr | ( | const DataType & | typeInfo , |
const Generic * | dataPtr | ||
) |
|
explicit |
Bool IsEmpty | ( | ) | const |
Bool IsPopulated | ( | ) | const |
const DataType & GetType | ( | ) | const |
const Generic* PrivateGetPtr | ( | ) | const |
void Set | ( | const DataType & | typeInfo , |
const Generic * | dataPtr | ||
) |
void Set | ( | const 数据 & | value | ) |
void Set | ( | 数据 & | value | ) |
void Set | ( | 数据 && | value | ) |
const Generic* GetPtr | ( | const DataType & | type | ) | const |
const T* GetPtr | ( | ) | const |
Result <typename std::conditional< STD_IS_REPLACEMENT (same, T, 数据 ) || ( GetCollectionKind <T>::value == COLLECTION_KIND::ARRAY ), T, typename ByValueParam <T>::type>::type> Get | ( | ) | const |
Returns the value of type T of this 数据 . if <void> or <Data> is given the result value is not a reference.
T | The expected type of the value. |
ByValueParam <T>::type GetOrNull | ( | ) | const |
ByValueParam <T>::type Get | ( | const T & | defaultValue | ) | const |
COMPARERESULT 比较 | ( | const ConstDataPtr & | c | ) | const |
Compares this object to a ConstDataPtr .
[in] | c | Other object. |
COMPARERESULT 比较 | ( | const 数据 & | c | ) | const |
Compares this object to a 数据 .
[in] | c | Other object. |
HashInt GetHashCode | ( | ) | const |
Returns the hash code of the data elements. If no hash code could be calculated the value is 0.
Bool operator== | ( | const ConstDataPtr & | c | ) | const |
Bool operator!= | ( | const ConstDataPtr & | c | ) | const |
Bool operator< | ( | const ConstDataPtr & | c | ) | const |
Bool operator<= | ( | const ConstDataPtr & | c | ) | const |
Bool operator> | ( | const ConstDataPtr & | c | ) | const |
Bool operator>= | ( | const ConstDataPtr & | c | ) | const |
|
static |
String ToString | ( | const FormatStatement * |
formatStatement
=
nullptr
|
) | const |
|
protected |
|
protected |
Result < 数据 > Get | ( | ) | const |
|
friend |
friend class ContainerViewTypeImpl | friend |
|
protected |
const Generic* _dataPtr | protected |