📄 hookdataimpl.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: hookdataimpl.hpp,v $ * PRODUCTION Revision 1000.0 2003/10/29 17:22:23 gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.7 * PRODUCTION * =========================================================================== */#ifndef HOOKDATAIMPL__HPP#define HOOKDATAIMPL__HPP/* $Id: hookdataimpl.hpp,v 1000.0 2003/10/29 17:22:23 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 !!!*/#include <corelib/ncbistd.hpp>#include <corelib/ncbiobj.hpp>//#include <util/weakmap.hpp>/** @addtogroup HookSupport * * @{ */BEGIN_NCBI_SCOPE/*class NCBI_XSERIAL_EXPORT CHookDataKeyData{public: typedef CRef<CObject> mapped_type; //typedef CWeakMapKey<mapped_type> TKey; CHookDataKeyData(void); ~CHookDataKeyData(void); void Clear(void); TKey m_Key;};class NCBI_XSERIAL_EXPORT CHookDataData : public CObject{public: CHookDataData(void); ~CHookDataData(void); typedef CRef<CObject> mapped_type; //typedef CWeakMap<mapped_type> TMap; bool Empty(void) const; void SetGlobalHook(CObject* hook); void ResetGlobalHook(void); void SetLocalHook(CHookDataKeyData& key, CObject* hook); void ResetLocalHook(CHookDataKeyData& key); CObject* GetHook(CHookDataKeyData& key) const; mutable mapped_type m_GlobalHook; mutable TMap m_LocalHooks;};*//* @} *///#include <serial/hookdataimpl.inl>END_NCBI_SCOPE#endif /* HOOKDATAIMPL__HPP *//* ---------------------------------------------------------------------------* $Log: hookdataimpl.hpp,v $* Revision 1000.0 2003/10/29 17:22:23 gouriano* PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.7** Revision 1.7 2003/07/29 18:47:46 vasilche* Fixed thread safeness of object stream hooks.** Revision 1.6 2003/04/15 14:15:15 siyan* Added doxygen support** Revision 1.5 2002/12/23 18:38:51 dicuccio* Added WIn32 export specifier: NCBI_XSERIAL_EXPORT.* Moved all CVS logs to the end.** Revision 1.4 2002/11/04 21:28:59 grichenk* Fixed usage of const CRef<> and CRef<> constructor** Revision 1.3 2001/01/05 20:10:34 vasilche* CByteSource, CIStrBuffer, COStrBuffer, CLightString, CChecksum, CWeakMap* were moved to util.** Revision 1.2 2000/10/13 16:28:30 vasilche* Reduced header dependency.* Avoid use of templates with virtual methods.* Reduced amount of different maps used.* All this lead to smaller compiled code size (libraries and programs).** Revision 1.1 2000/10/03 17:22:31 vasilche* Reduced header dependency.* Reduced size of debug libraries on WorkShop by 3 times.* Fixed tag allocation for parent classes.* Fixed CObject allocation/deallocation in streams.* Moved instantiation of several templates in separate source file.** ===========================================================================*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -