BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
PlainPtrStorage< STORABLE > Class Template Reference

#include <PlainPtrStorage.h>

Inheritance diagram for PlainPtrStorage< STORABLE >:

Public Types

typedef NullType ID_type
typedef STORABLE value_type
typedef STORABLE * pointer
typedef const STORABLE * const_pointer
typedef STORABLE & reference
typedef const STORABLE & const_reference
typedef NullType ID_type
typedef STORABLE value_type
typedef STORABLE * pointer
typedef const STORABLE * const_pointer
typedef STORABLE & reference
typedef const STORABLE & const_reference
typedef NullType ID_type
typedef STORABLE value_type
typedef STORABLE * pointer
typedef const STORABLE * const_pointer
typedef STORABLE & reference
typedef const STORABLE & const_reference

Public Member Functions

template<class OS>
bool dataPut (OS &) const
template<class IS>
bool dataGet (IS &)
template<class OS>
bool dataPut (OS &) const
template<class IS>
bool dataGet (IS &)
template<class OS>
bool dataPut (OS &) const
template<class IS>
bool dataGet (IS &)

Protected Member Functions

 ~PlainPtrStorage ()
 PlainPtrStorage ()
 PlainPtrStorage (IProxyDict *)
 PlainPtrStorage (const_pointer pdata, IProxyDict *)
 PlainPtrStorage (const_reference rdata, IProxyDict *)
 PlainPtrStorage (const ID_type, IProxyDict *)
void setDataSource (IProxyDict *)
bool isValid () const
void setData (const_reference data)
void setData (const_pointer pdata)
pointer getDataPtr ()
const_pointer getDataPtr () const
reference getDataRef ()
const_reference getDataRef () const
void clear ()
void reset ()
 ~PlainPtrStorage ()
 PlainPtrStorage ()
 PlainPtrStorage (IProxyDict *)
 PlainPtrStorage (const_pointer pdata, IProxyDict *)
 PlainPtrStorage (const_reference rdata, IProxyDict *)
 PlainPtrStorage (const ID_type, IProxyDict *)
void setDataSource (IProxyDict *)
bool isValid () const
void setData (const_reference data)
void setData (const_pointer pdata)
pointer getDataPtr ()
const_pointer getDataPtr () const
reference getDataRef ()
const_reference getDataRef () const
void clear ()
void reset ()
 ~PlainPtrStorage ()
 PlainPtrStorage ()
 PlainPtrStorage (IProxyDict *)
 PlainPtrStorage (const_pointer pdata, IProxyDict *)
 PlainPtrStorage (const_reference rdata, IProxyDict *)
 PlainPtrStorage (const ID_type, IProxyDict *)
void setDataSource (IProxyDict *)
bool isValid () const
void setData (const_reference data)
void setData (const_pointer pdata)
pointer getDataPtr ()
const_pointer getDataPtr () const
reference getDataRef ()
const_reference getDataRef () const
void clear ()
void reset ()

Static Protected Member Functions

static IProxyDict * defaultDataSource ()
static IProxyDict * defaultDataSource ()
static IProxyDict * defaultDataSource ()

Detailed Description

template<typename STORABLE>
class PlainPtrStorage< STORABLE >

Definition at line 25 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

Member Typedef Documentation

◆ const_pointer [1/3]

template<typename STORABLE>
typedef const STORABLE* PlainPtrStorage< STORABLE >::const_pointer

◆ const_pointer [2/3]

template<typename STORABLE>
typedef const STORABLE* PlainPtrStorage< STORABLE >::const_pointer

◆ const_pointer [3/3]

template<typename STORABLE>
typedef const STORABLE* PlainPtrStorage< STORABLE >::const_pointer

◆ const_reference [1/3]

template<typename STORABLE>
typedef const STORABLE& PlainPtrStorage< STORABLE >::const_reference

◆ const_reference [2/3]

template<typename STORABLE>
typedef const STORABLE& PlainPtrStorage< STORABLE >::const_reference

◆ const_reference [3/3]

template<typename STORABLE>
typedef const STORABLE& PlainPtrStorage< STORABLE >::const_reference

◆ ID_type [1/3]

template<typename STORABLE>
typedef NullType PlainPtrStorage< STORABLE >::ID_type

◆ ID_type [2/3]

template<typename STORABLE>
typedef NullType PlainPtrStorage< STORABLE >::ID_type

◆ ID_type [3/3]

template<typename STORABLE>
typedef NullType PlainPtrStorage< STORABLE >::ID_type

◆ pointer [1/3]

template<typename STORABLE>
typedef STORABLE* PlainPtrStorage< STORABLE >::pointer

◆ pointer [2/3]

template<typename STORABLE>
typedef STORABLE* PlainPtrStorage< STORABLE >::pointer

◆ pointer [3/3]

template<typename STORABLE>
typedef STORABLE* PlainPtrStorage< STORABLE >::pointer

◆ reference [1/3]

template<typename STORABLE>
typedef STORABLE& PlainPtrStorage< STORABLE >::reference

◆ reference [2/3]

template<typename STORABLE>
typedef STORABLE& PlainPtrStorage< STORABLE >::reference

◆ reference [3/3]

template<typename STORABLE>
typedef STORABLE& PlainPtrStorage< STORABLE >::reference

◆ value_type [1/3]

template<typename STORABLE>
typedef STORABLE PlainPtrStorage< STORABLE >::value_type

◆ value_type [2/3]

template<typename STORABLE>
typedef STORABLE PlainPtrStorage< STORABLE >::value_type

◆ value_type [3/3]

template<typename STORABLE>
typedef STORABLE PlainPtrStorage< STORABLE >::value_type

Constructor & Destructor Documentation

◆ ~PlainPtrStorage() [1/3]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::~PlainPtrStorage ( )
inlineprotected

Definition at line 41 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

41{} // disallow accidental base class deletion

◆ PlainPtrStorage() [1/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( )
inlineprotected

Definition at line 42 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

42{} // FIXME

◆ PlainPtrStorage() [2/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( IProxyDict * )
inlineprotected

◆ PlainPtrStorage() [3/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const_pointer pdata,
IProxyDict *  )
inlineprotected

◆ PlainPtrStorage() [4/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const_reference rdata,
IProxyDict *  )
inlineprotected

◆ PlainPtrStorage() [5/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const ID_type ,
IProxyDict *  )
protected

◆ ~PlainPtrStorage() [2/3]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::~PlainPtrStorage ( )
inlineprotected

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

41{} // disallow accidental base class deletion

◆ PlainPtrStorage() [6/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( )
inlineprotected

◆ PlainPtrStorage() [7/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( IProxyDict * )
inlineprotected

◆ PlainPtrStorage() [8/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const_pointer pdata,
IProxyDict *  )
inlineprotected

◆ PlainPtrStorage() [9/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const_reference rdata,
IProxyDict *  )
inlineprotected

◆ PlainPtrStorage() [10/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const ID_type ,
IProxyDict *  )
protected

◆ ~PlainPtrStorage() [3/3]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::~PlainPtrStorage ( )
inlineprotected

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

41{} // disallow accidental base class deletion

◆ PlainPtrStorage() [11/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( )
inlineprotected

◆ PlainPtrStorage() [12/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( IProxyDict * )
inlineprotected

◆ PlainPtrStorage() [13/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const_pointer pdata,
IProxyDict *  )
inlineprotected

◆ PlainPtrStorage() [14/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const_reference rdata,
IProxyDict *  )
inlineprotected

◆ PlainPtrStorage() [15/15]

template<typename STORABLE>
PlainPtrStorage< STORABLE >::PlainPtrStorage ( const ID_type ,
IProxyDict *  )
protected

Member Function Documentation

◆ clear() [1/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::clear ( )
inlineprotected

Definition at line 71 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

71{ p_data = 0; }

◆ clear() [2/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::clear ( )
inlineprotected

◆ clear() [3/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::clear ( )
inlineprotected

◆ dataGet() [1/3]

template<typename STORABLE>
template<class IS>
bool PlainPtrStorage< STORABLE >::dataGet ( IS & )
inline

Definition at line 38 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

38{ return false; }

◆ dataGet() [2/3]

template<typename STORABLE>
template<class IS>
bool PlainPtrStorage< STORABLE >::dataGet ( IS & )
inline

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

38{ return false; }

◆ dataGet() [3/3]

template<typename STORABLE>
template<class IS>
bool PlainPtrStorage< STORABLE >::dataGet ( IS & )
inline

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

38{ return false; }

◆ dataPut() [1/3]

template<typename STORABLE>
template<class OS>
bool PlainPtrStorage< STORABLE >::dataPut ( OS & ) const
inline

Definition at line 37 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

37{ return false; }

◆ dataPut() [2/3]

template<typename STORABLE>
template<class OS>
bool PlainPtrStorage< STORABLE >::dataPut ( OS & ) const
inline

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

37{ return false; }

◆ dataPut() [3/3]

template<typename STORABLE>
template<class OS>
bool PlainPtrStorage< STORABLE >::dataPut ( OS & ) const
inline

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

37{ return false; }

◆ defaultDataSource() [1/3]

template<typename STORABLE>
IProxyDict * PlainPtrStorage< STORABLE >::defaultDataSource ( )
inlinestaticprotected

Definition at line 48 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

48{ return 0; }

◆ defaultDataSource() [2/3]

template<typename STORABLE>
IProxyDict * PlainPtrStorage< STORABLE >::defaultDataSource ( )
inlinestaticprotected

◆ defaultDataSource() [3/3]

template<typename STORABLE>
IProxyDict * PlainPtrStorage< STORABLE >::defaultDataSource ( )
inlinestaticprotected

◆ getDataPtr() [1/6]

template<typename STORABLE>
pointer PlainPtrStorage< STORABLE >::getDataPtr ( )
inlineprotected

Definition at line 66 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

66{ return p_data; }

Referenced by getDataRef(), and getDataRef().

◆ getDataPtr() [2/6]

template<typename STORABLE>
pointer PlainPtrStorage< STORABLE >::getDataPtr ( )
inlineprotected

Definition at line 66 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

66{ return p_data; }

◆ getDataPtr() [3/6]

template<typename STORABLE>
pointer PlainPtrStorage< STORABLE >::getDataPtr ( )
inlineprotected

Definition at line 66 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

66{ return p_data; }

◆ getDataPtr() [4/6]

template<typename STORABLE>
const_pointer PlainPtrStorage< STORABLE >::getDataPtr ( ) const
inlineprotected

Definition at line 67 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

67{ return p_data; }

◆ getDataPtr() [5/6]

template<typename STORABLE>
const_pointer PlainPtrStorage< STORABLE >::getDataPtr ( ) const
inlineprotected

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

67{ return p_data; }

◆ getDataPtr() [6/6]

template<typename STORABLE>
const_pointer PlainPtrStorage< STORABLE >::getDataPtr ( ) const
inlineprotected

Definition at line 67 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

67{ return p_data; }

◆ getDataRef() [1/6]

template<typename STORABLE>
reference PlainPtrStorage< STORABLE >::getDataRef ( )
inlineprotected

◆ getDataRef() [2/6]

template<typename STORABLE>
reference PlainPtrStorage< STORABLE >::getDataRef ( )
inlineprotected

◆ getDataRef() [3/6]

template<typename STORABLE>
reference PlainPtrStorage< STORABLE >::getDataRef ( )
inlineprotected

◆ getDataRef() [4/6]

template<typename STORABLE>
const_reference PlainPtrStorage< STORABLE >::getDataRef ( ) const
inlineprotected

◆ getDataRef() [5/6]

template<typename STORABLE>
const_reference PlainPtrStorage< STORABLE >::getDataRef ( ) const
inlineprotected

◆ getDataRef() [6/6]

template<typename STORABLE>
const_reference PlainPtrStorage< STORABLE >::getDataRef ( ) const
inlineprotected

◆ isValid() [1/3]

template<typename STORABLE>
bool PlainPtrStorage< STORABLE >::isValid ( ) const
inlineprotected

Definition at line 51 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

51{ return 0 != p_data; } // FIXME p_data storage_type

◆ isValid() [2/3]

template<typename STORABLE>
bool PlainPtrStorage< STORABLE >::isValid ( ) const
inlineprotected

Definition at line 51 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

51{ return 0 != p_data; } // FIXME p_data storage_type

◆ isValid() [3/3]

template<typename STORABLE>
bool PlainPtrStorage< STORABLE >::isValid ( ) const
inlineprotected

Definition at line 51 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

51{ return 0 != p_data; } // FIXME p_data storage_type

◆ reset() [1/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::reset ( )
inlineprotected

Definition at line 72 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

72{ p_data = 0; }

◆ reset() [2/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::reset ( )
inlineprotected

◆ reset() [3/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::reset ( )
inlineprotected

◆ setData() [1/6]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setData ( const_pointer pdata)
inlineprotected

Definition at line 55 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

55 {
56#ifndef NDEBUG
57 if ( 0 == pdata )
58 {
59 std::cerr << __FILE__ << ':' << __LINE__ << ": ERROR"
60 << " initializing a link with a NULL data ptr " << std::endl;
61 }
62#endif
63 p_data = const_cast<pointer>( pdata );
64 }

◆ setData() [2/6]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setData ( const_pointer pdata)
inlineprotected

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

55 {
56#ifndef NDEBUG
57 if ( 0 == pdata )
58 {
59 std::cerr << __FILE__ << ':' << __LINE__ << ": ERROR"
60 << " initializing a link with a NULL data ptr " << std::endl;
61 }
62#endif
63 p_data = const_cast<pointer>( pdata );
64 }

◆ setData() [3/6]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setData ( const_pointer pdata)
inlineprotected

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

55 {
56#ifndef NDEBUG
57 if ( 0 == pdata )
58 {
59 std::cerr << __FILE__ << ':' << __LINE__ << ": ERROR"
60 << " initializing a link with a NULL data ptr " << std::endl;
61 }
62#endif
63 p_data = const_cast<pointer>( pdata );
64 }

◆ setData() [4/6]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setData ( const_reference data)
inlineprotected

Definition at line 53 of file Event/GeneratorObject/include/DataModel/tools/PlainPtrStorage.h.

53{ p_data = const_cast<pointer>( &data ); }

Referenced by PlainPtrStorage(), and PlainPtrStorage().

◆ setData() [5/6]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setData ( const_reference data)
inlineprotected

Definition at line 53 of file InstallArea/x86_64-el9-gcc13-dbg/include/DataModel/tools/PlainPtrStorage.h.

53{ p_data = const_cast<pointer>( &data ); }

◆ setData() [6/6]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setData ( const_reference data)
inlineprotected

Definition at line 53 of file InstallArea/x86_64-el9-gcc13-opt/include/DataModel/tools/PlainPtrStorage.h.

53{ p_data = const_cast<pointer>( &data ); }

◆ setDataSource() [1/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setDataSource ( IProxyDict * )
inlineprotected

◆ setDataSource() [2/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setDataSource ( IProxyDict * )
inlineprotected

◆ setDataSource() [3/3]

template<typename STORABLE>
void PlainPtrStorage< STORABLE >::setDataSource ( IProxyDict * )
inlineprotected

The documentation for this class was generated from the following files: