⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objlist.inl

📁 ncbi源码
💻 INL
字号:
/* * =========================================================================== * PRODUCTION $Log: objlist.inl,v $ * PRODUCTION Revision 1000.0  2003/10/29 17:27:18  gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.6 * PRODUCTION * =========================================================================== */#if defined(OBJLIST__HPP)  &&  !defined(OBJLIST__INL)#define OBJLIST__INL/*  $Id: objlist.inl,v 1000.0 2003/10/29 17:27:18 gouriano Exp $* ===========================================================================**                            PUBLIC DOMAIN NOTICE*               National Center for Biotechnology Information**  This software/database is a "United States Government Work" under the*  terms of the United States Copyright Act.  It was written as part of*  the author's official duties as a United States Government employee and*  thus cannot be copyrighted.  This software/database is freely available*  to the public for use. The National Library of Medicine and the U.S.*  Government have not placed any restriction on its use or reproduction.**  Although all reasonable efforts have been taken to ensure the accuracy*  and reliability of the software and data, the NLM and the U.S.*  Government do not and cannot warrant the performance or results that*  may be obtained by using this software or data. The NLM and the U.S.*  Government disclaim all warranties, express or implied, including*  warranties of performance, merchantability or fitness for any particular*  purpose.**  Please cite the author in any work or product based on this material.** ===========================================================================** Author: Eugene Vasilchenko** File Description:*   !!! PUT YOUR DESCRIPTION HERE !!!*/inlineCReadObjectInfo::CReadObjectInfo(void)    : m_TypeInfo(0), m_ObjectPtr(0){}inlineCReadObjectInfo::CReadObjectInfo(TTypeInfo typeInfo)    : m_TypeInfo(typeInfo), m_ObjectPtr(0){}inlineCReadObjectInfo::CReadObjectInfo(TObjectPtr objectPtr, TTypeInfo typeInfo)    : m_TypeInfo(typeInfo),      m_ObjectPtr(objectPtr), m_ObjectRef(typeInfo->GetCObjectPtr(objectPtr)){}inlineTTypeInfo CReadObjectInfo::GetTypeInfo(void) const{    return m_TypeInfo;}inlineTObjectPtr CReadObjectInfo::GetObjectPtr(void) const{    return m_ObjectPtr;}inlinevoid CReadObjectInfo::ResetObjectPtr(void){    m_ObjectPtr = 0;    m_ObjectRef.Reset();}inlinevoid CReadObjectInfo::Assign(TObjectPtr objectPtr, TTypeInfo typeInfo){    m_TypeInfo = typeInfo;    m_ObjectPtr = objectPtr;    m_ObjectRef.Reset(typeInfo->GetCObjectPtr(objectPtr));}inlineCReadObjectList::TObjectIndex CReadObjectList::GetObjectCount(void) const{    return m_Objects.size();}inlineCWriteObjectInfo::CWriteObjectInfo(void)    : m_TypeInfo(0), m_ObjectPtr(0), m_Index(TObjectIndex(-1)){}inlineCWriteObjectInfo::CWriteObjectInfo(TTypeInfo typeInfo, TObjectIndex index)    : m_TypeInfo(typeInfo), m_ObjectPtr(0),      m_Index(index){}inlineCWriteObjectInfo::CWriteObjectInfo(TConstObjectPtr objectPtr,                                   TTypeInfo typeInfo, TObjectIndex index)    : m_TypeInfo(typeInfo), m_ObjectPtr(objectPtr),      m_ObjectRef(typeInfo->GetCObjectPtr(objectPtr)),      m_Index(index){}inlineCWriteObjectInfo::TObjectIndex CWriteObjectInfo::GetIndex(void) const{    _ASSERT(m_Index != TObjectIndex(-1));    return m_Index;}inlineTTypeInfo CWriteObjectInfo::GetTypeInfo(void) const{    return m_TypeInfo;}inlineTConstObjectPtr CWriteObjectInfo::GetObjectPtr(void) const{    return m_ObjectPtr;}inlineconst CConstRef<CObject>& CWriteObjectInfo::GetObjectRef(void) const{    return m_ObjectRef;}inlinevoid CWriteObjectInfo::ResetObjectPtr(void){    m_ObjectPtr = 0;    m_ObjectRef.Reset();}inlineCWriteObjectList::TObjectIndex CWriteObjectList::GetObjectCount(void) const{    return m_Objects.size();}inlineCWriteObjectList::TObjectIndex CWriteObjectList::NextObjectIndex(void) const{    return GetObjectCount();}#endif /* def OBJLIST__HPP  &&  ndef OBJLIST__INL *//* ---------------------------------------------------------------------------* $Log: objlist.inl,v $* Revision 1000.0  2003/10/29 17:27:18  gouriano* PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.6** Revision 1.6  2002/12/23 18:38:51  dicuccio* Added WIn32 export specifier: NCBI_XSERIAL_EXPORT.* Moved all CVS logs to the end.** Revision 1.5  2000/10/17 18:45:25  vasilche* Added possibility to turn off object cross reference detection in* CObjectIStream and CObjectOStream.** Revision 1.4  2000/08/15 19:44:41  vasilche* Added Read/Write hooks:* CReadObjectHook/CWriteObjectHook for objects of specified type.* CReadClassMemberHook/CWriteClassMemberHook for specified members.* CReadChoiceVariantHook/CWriteChoiceVariant for specified choice variants.* CReadContainerElementHook/CWriteContainerElementsHook for containers.** Revision 1.3  2000/04/06 16:10:51  vasilche* Fixed bug with iterators in choices.* Removed unneeded calls to ReadExternalObject/WriteExternalObject.* Added output buffering to text ASN.1 data.** Revision 1.2  1999/06/07 20:42:58  vasilche* Fixed compilation under MS VS** Revision 1.1  1999/06/04 20:51:33  vasilche* First compilable version of serialization.** ===========================================================================*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -