GetTypeInfo()->GetName();
120 returnm_TypeInfo != 0;
145 boolIsPrimitiveValueSigned(
void)
const;
191 TMemberIndexFindMemberIndex(
const string& name)
const;
230 TMemberIndexFindVariantIndex(
const string& name)
const;
278 voidResetGlobalReadHook(
void)
const;
287 voidSetPathReadHook(
CObjectIStream* stream,
const string& path,
310 voidResetGlobalWriteHook(
void)
const;
319 voidSetPathWriteHook(
CObjectOStream* stream,
const string& path,
343 voidSetPathSkipHook(
CObjectIStream* stream,
const string& path,
366 voidResetGlobalCopyHook(
void)
const;
399 voidWrongTypeFamily(
ETypeFamilyneedFamily)
const;
407 boolMatchPattern(vector<int>& pattern,
size_t& pos,
int depth,
460pair<TConstObjectPtr, TTypeInfo>
GetPair(
void)
const;
468 boolGetPrimitiveValueBool(
void)
const;
470 charGetPrimitiveValueChar(
void)
const;
473 Int4GetPrimitiveValueInt4(
void)
const;
475 Uint4GetPrimitiveValueUint4(
void)
const;
477 Int8GetPrimitiveValueInt8(
void)
const;
479 Uint8GetPrimitiveValueUint8(
void)
const;
481 intGetPrimitiveValueInt(
void)
const;
483 unsignedGetPrimitiveValueUInt(
void)
const;
485 longGetPrimitiveValueLong(
void)
const;
487 unsigned longGetPrimitiveValueULong(
void)
const;
490 doubleGetPrimitiveValueDouble(
void)
const;
493 voidGetPrimitiveValueString(
string&
value)
const;
495 stringGetPrimitiveValueString(
void)
const;
498 voidGetPrimitiveValueOctetString(vector<char>&
value)
const;
554 TMemberIndexGetCurrentChoiceVariantIndex(
void)
const;
626pair<TObjectPtr, TTypeInfo>
GetPair(
void)
const;
634 voidSetPrimitiveValueBool(
bool value);
635 voidSetPrimitiveValueChar(
char value);
637 voidSetPrimitiveValueInt4(
Int4 value);
639 voidSetPrimitiveValueInt8(
Int8 value);
641 voidSetPrimitiveValueInt(
int value);
642 voidSetPrimitiveValueUInt(
unsigned value);
643 voidSetPrimitiveValueLong(
long value);
644 voidSetPrimitiveValueULong(
unsigned long value);
646 voidSetPrimitiveValueDouble(
double value);
648 voidSetPrimitiveValueString(
const string&
value);
650 voidSetPrimitiveValueOctetString(
constvector<char>&
value);
757 returnC::GetTypeInfo();
764 returnpair<TObjectPtr, TTypeInfo>(&obj, C::GetTypeInfo());
772 returnpair<TConstObjectPtr, TTypeInfo>(&obj, C::GetTypeInfo());
779 returnpair<TConstObjectPtr, TTypeInfo>(&obj, C::GetTypeInfo());
786 returnpair<TObjectPtr, TTypeInfo>(&obj, C::GetRefChoiceTypeInfo());
793 returnpair<TConstObjectPtr, TTypeInfo>(&obj, C::GetRefChoiceTypeInfo());
CNcbiIstream & ReadContainer(CNcbiIstream &is, TCont &cont)
Read a container from a stream.
Serializable object that stores any combination of parsable data.
Copy hook for a standalone object.
CObjectIStreamAsnBinary â.
Read hook for a container element (SEQUENCE OF)
Read hook for a standalone object.
Skip hook for a standalone object.
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
Write hook for a standalone object.
Include a standard set of the NCBI C++ Toolkit most basic headers.
static unsigned char depth[2 *(256+1+29)+1]
size_t TMemberIndex
Type used for indexing class members and choice variants.
const void * TConstObjectPtr
EPrimitiveValueType
Primitive value type.
CMemberIterator FindClassMemberByTag(int memberTag) const
Find class member by its numerical tag.
pair< TConstObjectPtr, TTypeInfo > GetPair(void) const
CMemberIterator GetMember(CObjectTypeInfo::CMemberIterator m) const
Find class member by type iterator.
CObjectInfoEI CElementIterator
CTypeInfo * GetNCTypeInfo(void) const
CVariantIterator BeginVariants(void) const
Create choice variant iterator.
CMemberIterator GetMember(CObjectTypeInfo::CMemberIterator m) const
Find class member by type iterator.
pair< TObjectPtr, TTypeInfo > GetPair(void) const
CObjectTypeInfoCV CChoiceVariant
CObjectInfo(TTypeInfo typeInfo)
Create CObjectInfo with new object.
CConstObjectInfo(TConstObjectPtr objectPtr, TTypeInfo typeInfo)
Initialize CObjectInfo.
bool operator!=(const CObjectTypeInfo &type) const
CConstObjectInfo(void)
Create empty CObjectInfo.
CConstObjectInfoEI CElementIterator
CMemberIterator BeginMembers(void) const
Create class member iterator.
CElementIterator BeginElements(void) const
Create container elements iterator.
CMemberIterator GetClassMemberIterator(TMemberIndex index) const
Create class member iterator that initially points to specified member.
CObjectInfo(TObjectPtr objectPtr, TTypeInfo typeInfo, ENonCObject nonCObject)
Initialize CObjectInfo when we are sure that object is not inherited from CObject (for efficiency)
void CheckTypeFamily(ETypeFamily family) const
void Set(TConstObjectPtr objectPtr, TTypeInfo typeInfo)
pair< TObjectPtr, TTypeInfo > ObjectInfo(C &obj)
CObjectTypeInfo(TTypeInfo typeinfo=0)
bool Valid(void) const
Check if object is valid.
TConstObjectPtr m_ObjectPtr
bool operator==(const CObjectTypeInfo &type) const
bool operator==(const CConstObjectInfo &obj) const
CMemberIterator BeginMembers(void) const
Create class member iterator.
CConstObjectInfo(pair< TObjectPtr, TTypeInfo > object)
TObjectPtr GetObjectPtr(void) const
Get pointer to object.
CMemberIterator FindMember(const string &memberName) const
Find class member by its name.
void ResetObjectPtr(void)
pair< TConstObjectPtr, TTypeInfo > ConstRefChoiceInfo(const CRef< C > &obj)
CChoiceVariant GetCurrentChoiceVariant(void) const
Get data and type information of selected choice variant.
TConstObjectPtr TObjectPtrType
bool operator!=(const CConstObjectInfo &obj) const
CChoiceVariant GetCurrentChoiceVariant(void) const
Get data and type information of selected choice variant.
CMemberIterator FindClassMember(const string &memberName) const
Find class member by its name.
CObjectInfo(pair< TObjectPtr, TTypeInfo > object)
CConstObjectInfoCV CChoiceVariant
CVariantIterator FindVariant(const string &memberName) const
Find choice variant by its name.
CObjectInfo(const CObjectTypeInfo &type)
TTypeInfo GetTypeInfo(void) const
pair< TConstObjectPtr, TTypeInfo > ConstObjectInfo(const C &obj)
CMemberIterator FindClassMemberByTag(int memberTag) const
Find class member by its numerical tag.
CObjectInfo(void)
Create empty CObjectInfo.
CObjectInfo(TObjectPtr objectPtr, TTypeInfo typeInfo)
Initialize CObjectInfo.
void Reset(void)
Reset CObjectInfo to empty state.
CMemberIterator GetClassMemberIterator(TMemberIndex index) const
Create class member iterator that initially points to specified member.
CConstObjectInfo(TConstObjectPtr objectPtr, TTypeInfo typeInfo, ENonCObject nonCObject)
Initialize CObjectInfo when we are sure that object is not inherited from CObject (for efficiency)
TObjectPtr TObjectPtrType
CMemberIterator GetMemberIterator(TMemberIndex index) const
CMemberIterator BeginMembers(void) const
Create class member iterator.
ETypeFamily GetTypeFamily(void) const
Get data type family.
CObjectTypeInfoVI CVariantIterator
TTypeInfo ObjectType(const C &)
CMemberIterator FindClassMember(const string &memberName) const
Find class member by its name.
CObjectInfo & operator=(pair< TObjectPtr, TTypeInfo > object)
Set CObjectInfo to point to another object.
void SetTypeInfo(TTypeInfo typeinfo)
CElementIterator BeginElements(void) const
Create container elements iterator.
CObjectInfoMI CMemberIterator
CMemberIterator FindMemberByTag(int memberTag) const
Find class member by its numerical tag.
CConstObjectInfo & operator=(pair< TConstObjectPtr, TTypeInfo > object)
Set CObjectInfo.
CObjectTypeInfoMI CMemberIterator
const string & GetName(void) const
Get type name.
CObjectInfoCV CChoiceVariant
TConstObjectPtr GetObjectPtr(void) const
Get pointer to object.
pair< TObjectPtr, TTypeInfo > RefChoiceInfo(CRef< C > &obj)
DECLARE_OPERATOR_BOOL_PTR(m_TypeInfo)
CConstObjectInfoMI CMemberIterator
CConstObjectInfo(pair< TConstObjectPtr, TTypeInfo > object)
CVariantIterator FindVariantByTag(int memberTag) const
Find choice variant by its numerical tag.
CConstRef< CObject > m_Ref
CConstObjectInfo & operator=(pair< TObjectPtr, TTypeInfo > object)
CVariantIterator GetVariantIterator(TMemberIndex index) const
int32_t Int4
4-byte (32-bit) signed integer
uint32_t Uint4
4-byte (32-bit) unsigned integer
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XSERIAL_EXPORT
const GenericPointer< typename T::ValueType > T2 value
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
std::istream & in(std::istream &in_, double &x_)
void SetLocalCopyHook(const CObjectTypeInfo &obj_type_info, CObjectStreamCopier &copier, _Func _func)
void SetLocalSkipHook(const CObjectTypeInfo &obj_type_info, CObjectIStream &istr, _Func _func)
void SetLocalWriteHook(const CObjectTypeInfo &obj_type_info, CObjectOStream &ostr, _Func _func)
void SetLocalReadHook(const CObjectTypeInfo &obj_type_info, CObjectIStream &ostr, _Func _func)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4