📄 typeref.inl
字号:
/* * =========================================================================== * PRODUCTION $Log: typeref.inl,v $ * PRODUCTION Revision 1000.0 2003/10/29 17:32:58 gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.6 * PRODUCTION * =========================================================================== */#if defined(TYPEREF__HPP) && !defined(TYPEREF__INL)#define TYPEREF__INL/* $Id: typeref.inl,v 1000.0 2003/10/29 17:32:58 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 !!!*/inlineCTypeRef::CTypeRef(void) : m_Getter(sx_GetAbort), m_ReturnData(0){}inlineCTypeRef::CTypeRef(TTypeInfo typeInfo) : m_Getter(sx_GetReturn), m_ReturnData(typeInfo){}inlineCTypeRef::CTypeRef(TGetProc getProc) : m_Getter(sx_GetProc), m_ReturnData(0){ m_GetProcData = getProc;}inlineCTypeRef::CTypeRef(CTypeInfoSource* source) : m_Getter(sx_GetResolve), m_ReturnData(0){ m_ResolveData = source;}inlineCTypeRef::CTypeRef(const CTypeRef& typeRef) : m_Getter(sx_GetAbort), m_ReturnData(0){ Assign(typeRef);}inlineCTypeRef::~CTypeRef(void){ Unref();}inlineTTypeInfo CTypeRef::Get(void) const{ TTypeInfo ret = m_ReturnData; return ret? ret: m_Getter(*this);}inlineCTypeRef::operator bool(void) const{ return m_Getter != sx_GetAbort;}inlinebool CTypeRef::operator!(void) const{ return m_Getter == sx_GetAbort;}#endif /* def TYPEREF__HPP && ndef TYPEREF__INL *//* ---------------------------------------------------------------------------* $Log: typeref.inl,v $* Revision 1000.0 2003/10/29 17:32:58 gouriano* PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.6** Revision 1.6 2002/12/23 18:38:52 dicuccio* Added WIn32 export specifier: NCBI_XSERIAL_EXPORT.* Moved all CVS logs to the end.** Revision 1.5 2002/08/30 16:18:25 vasilche* Avoid MT lock in CTypeRef::Get()** Revision 1.4 1999/12/17 19:04:55 vasilche* Simplified generation of GetTypeInfo methods.** Revision 1.3 1999/08/13 15:53:46 vasilche* C++ analog of asntool: datatool** Revision 1.2 1999/07/13 20:18:13 vasilche* Changed types naming.** Revision 1.1 1999/06/24 14:44:48 vasilche* Added binary ASN.1 output.** ===========================================================================*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -