Exemple #1
0
 static TObjectPtr CreateAnyTypeClass(TTypeInfo objectType,
                                      CObjectMemoryPool* /*memoryPool*/)
     {
         size_t size = objectType->GetSize();
         TObjectPtr obj = new char[size];
         memset(obj, 0, size);
         return obj;
     }
Exemple #2
0
BEGIN_NCBI_SCOPE


CChoicePointerTypeInfo::CChoicePointerTypeInfo(TTypeInfo pointerType)
    : CParent(pointerType->GetSize(),
              "",
              TConstObjectPtr(0), &CVoidTypeFunctions::Create, typeid(bool),
              &GetPtrIndex, &SetPtrIndex, &ResetPtrIndex)
{
    SetPointerType(pointerType);
}
Exemple #3
0
CAliasTypeInfo::CAliasTypeInfo(const string& name, TTypeInfo type)
    : CParent(name, type->GetSize(), type),
      m_DataOffset(0), m_FullAlias(false)
{
    InitAliasTypeInfoFunctions();
}