NCBI C++ ToolKit
ptrinfo.inl
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #if defined(PTRINFO__HPP) && !defined(PTRINFO__INL)
2 #define PTRINFO__INL
3 
4 /* $Id: ptrinfo.inl 33815 2007-05-04 17:18:18Z kazimird $
5 * ===========================================================================
6 *
7 * PUBLIC DOMAIN NOTICE
8 * National Center for Biotechnology Information
9 *
10 * This software/database is a "United States Government Work" under the
11 * terms of the United States Copyright Act. It was written as part of
12 * the author's official duties as a United States Government employee and
13 * thus cannot be copyrighted. This software/database is freely available
14 * to the public for use. The National Library of Medicine and the U.S.
15 * Government have not placed any restriction on its use or reproduction.
16 *
17 * Although all reasonable efforts have been taken to ensure the accuracy
18 * and reliability of the software and data, the NLM and the U.S.
19 * Government do not and cannot warrant the performance or results that
20 * may be obtained by using this software or data. The NLM and the U.S.
21 * Government disclaim all warranties, express or implied, including
22 * warranties of performance, merchantability or fitness for any particular
23 * purpose.
24 *
25 * Please cite the author in any work or product based on this material.
26 *
27 * ===========================================================================
28 *
29 * Author: Eugene Vasilchenko
30 *
31 * File Description:
32 * !!! PUT YOUR DESCRIPTION HERE !!!
33 */
34 
35 inline
37 {
38  return m_DataTypeRef.Get();
39 }
40 
41 inline
43 {
44  return m_GetData(this, const_cast<TObjectPtr>(object));
45 }
46 
47 inline
49 {
50  return m_GetData(this, object);
51 }
52 
53 inline
55  TObjectPtr data) const
56 {
57  m_SetData(this, object, data);
58 }
59 
60 #endif /* def PTRINFO__HPP && ndef PTRINFO__INL */
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
Definition: typeinfo.hpp:76
char data[12]
Definition: iconv.c:80
void * TObjectPtr
Definition: serialdef.hpp:55
const void * TConstObjectPtr
Definition: serialdef.hpp:59
TTypeInfo Get(void) const
void SetObjectPointer(TObjectPtr object, TObjectPtr pointer) const
CTypeRef m_DataTypeRef
Definition: ptrinfo.hpp:112
TTypeInfo GetPointedType(void) const
TSetDataFunction m_SetData
Definition: ptrinfo.hpp:114
TGetDataFunction m_GetData
Definition: ptrinfo.hpp:113
TConstObjectPtr GetObjectPointer(TConstObjectPtr object) const
Modified on Wed Sep 04 15:03:13 2024 by modify_doxy.py rev. 669887