<<typeInfo->
GetName()<<
") size: "<<typeInfo->
GetSize()<<
82 if(
info.GetObjectRef() ) {
84 if(
info.GetObjectRef()->ReferencedOnlyOnce() ) {
88pair<TObjectsByPtr::iterator, bool> ins =
94 "double write of CObject with counter == 1");
101 else if(
info.GetObjectRef()->Referenced() ) {
107 "registering non referenced CObject");
111pair<TObjectsByPtr::iterator, bool> ins =
138 if(
EndOf(
object, typeInfo) >
check->first )
155 info.ResetObjectPtr();
Root class for all serialization exceptions.
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
container_type::iterator iterator
const_iterator begin() const
const_iterator end() const
iterator_bool insert(const value_type &val)
container_type::value_type value_type
Include a standard set of the NCBI C++ Toolkit most basic headers.
static void * Add(void *object, ssize_t offset)
add offset to object reference (to get object's member)
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
const void * TConstObjectPtr
ssize_t TPointerOffsetType
void RegisterObject(TTypeInfo typeInfo)
TObjectIndex GetObjectCount(void) const
const CReadObjectInfo & GetRegisteredObject(TObjectIndex index) const
TTypeInfo GetTypeInfo(void) const
TObjectIndex GetObjectCount(void) const
CReadObjectInfo::TObjectIndex TObjectIndex
void ForgetObjects(TObjectIndex from, TObjectIndex to)
void ForgetObjects(TObjectIndex from, TObjectIndex to)
vector< CReadObjectInfo > m_Objects
void RegisterObject(TTypeInfo typeInfo)
TObjectsByPtr m_ObjectsByPtr
TObjectIndex NextObjectIndex(void) const
CWriteObjectInfo::TObjectIndex TObjectIndex
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static void PtrToString(string &out_str, const void *ptr)
Convert pointer to string.
const string & GetName(void) const
Get name of this type.
size_t GetSize(void) const
Get size of data object in memory (like sizeof in C)
static TConstObjectPtr EndOf(TConstObjectPtr objectPtr, TTypeInfo objectType)
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