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

default storable object storage policy: using a DataProxy More...

#include <DataProxyStorage.h>

Inheritance diagram for DataProxyStorage< STORABLE >:

Public Types

typedef STORABLE value_type
typedef STORABLE * pointer
typedef const STORABLE * const_pointer
typedef STORABLE & reference
typedef const STORABLE & const_reference
typedef IStoragePolicy::ID_type ID_type
typedef STORABLE value_type
typedef STORABLE * pointer
typedef const STORABLE * const_pointer
typedef STORABLE & reference
typedef const STORABLE & const_reference
typedef IStoragePolicy::ID_type ID_type
typedef STORABLE value_type
typedef STORABLE * pointer
typedef const STORABLE * const_pointer
typedef STORABLE & reference
typedef const STORABLE & const_reference
typedef IStoragePolicy::ID_type ID_type
Public Types inherited from IStoragePolicy
typedef std::string ID_type
typedef std::string ID_type
typedef std::string ID_type

Public Member Functions

bool isValid () const
const ID_typedataID () const
pointer getDataPtr () const
reference getDataRef () const
template<class OS>
bool dataPut (OS &os)
template<class IS>
bool dataGet (IS &is)
bool isValid () const
const ID_typedataID () const
pointer getDataPtr () const
reference getDataRef () const
template<class OS>
bool dataPut (OS &os)
template<class IS>
bool dataGet (IS &is)
bool isValid () const
const ID_typedataID () const
pointer getDataPtr () const
reference getDataRef () const
template<class OS>
bool dataPut (OS &os)
template<class IS>
bool dataGet (IS &is)

Static Public Member Functions

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

Protected Member Functions

bool setDataSource (IProxyDict *sg)
virtual ~DataProxyStorage ()
 DataProxyStorage (IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const_reference rdata, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const_pointer pdata, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const ID_type &dataID, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (SG::DataProxy *proxy, IProxyDict *sg=defaultDataSource())
void reset ()
void clear ()
void setData (const_reference rdata)
void setData (const_pointer pdata)
virtual void setData (DataObject *rdata)
virtual void setData (const ID_type &dataID)
virtual void setData (SG::DataProxy *proxy)
void changeState ()
virtual void * storable () const
virtual SG::DataProxy * proxy () const
virtual ID_type ID () const
virtual const CLID classID () const
virtual IProxyDict * source () const
bool setDataSource (IProxyDict *sg)
virtual ~DataProxyStorage ()
 DataProxyStorage (IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const_reference rdata, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const_pointer pdata, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const ID_type &dataID, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (SG::DataProxy *proxy, IProxyDict *sg=defaultDataSource())
void reset ()
void clear ()
void setData (const_reference rdata)
void setData (const_pointer pdata)
virtual void setData (DataObject *rdata)
virtual void setData (const ID_type &dataID)
virtual void setData (SG::DataProxy *proxy)
void changeState ()
virtual void * storable () const
virtual SG::DataProxy * proxy () const
virtual ID_type ID () const
virtual const CLID classID () const
virtual IProxyDict * source () const
bool setDataSource (IProxyDict *sg)
virtual ~DataProxyStorage ()
 DataProxyStorage (IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const_reference rdata, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const_pointer pdata, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (const ID_type &dataID, IProxyDict *sg=defaultDataSource())
 DataProxyStorage (SG::DataProxy *proxy, IProxyDict *sg=defaultDataSource())
void reset ()
void clear ()
void setData (const_reference rdata)
void setData (const_pointer pdata)
virtual void setData (DataObject *rdata)
virtual void setData (const ID_type &dataID)
virtual void setData (SG::DataProxy *proxy)
void changeState ()
virtual void * storable () const
virtual SG::DataProxy * proxy () const
virtual ID_type ID () const
virtual const CLID classID () const
virtual IProxyDict * source () const

Static Protected Member Functions

static IProxyDict * getDataSource (std::string storeName)
static IProxyDict * getDataSource (std::string storeName)
static IProxyDict * getDataSource (std::string storeName)

Detailed Description

template<typename STORABLE>
class DataProxyStorage< STORABLE >

default storable object storage policy: using a DataProxy

Id
DataProxyStorage.h,v 1.2 2003/04/16 01:32:53 calaf Exp

Definition at line 74 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

Member Typedef Documentation

◆ const_pointer [1/3]

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

◆ const_pointer [2/3]

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

◆ const_pointer [3/3]

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

◆ const_reference [1/3]

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

◆ const_reference [2/3]

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

◆ const_reference [3/3]

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

◆ ID_type [1/3]

template<typename STORABLE>
typedef IStoragePolicy::ID_type DataProxyStorage< STORABLE >::ID_type

◆ ID_type [2/3]

template<typename STORABLE>
typedef IStoragePolicy::ID_type DataProxyStorage< STORABLE >::ID_type

◆ ID_type [3/3]

template<typename STORABLE>
typedef IStoragePolicy::ID_type DataProxyStorage< STORABLE >::ID_type

◆ pointer [1/3]

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

◆ pointer [2/3]

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

◆ pointer [3/3]

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

◆ reference [1/3]

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

◆ reference [2/3]

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

◆ reference [3/3]

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

◆ value_type [1/3]

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

◆ value_type [2/3]

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

◆ value_type [3/3]

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

Constructor & Destructor Documentation

◆ ~DataProxyStorage() [1/3]

template<typename STORABLE>
virtual DataProxyStorage< STORABLE >::~DataProxyStorage ( )
inlineprotectedvirtual

Definition at line 167 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

167{} // disallow accidental base class deletion

◆ DataProxyStorage() [1/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( IProxyDict * sg = defaultDataSource())
inlineprotected

◆ DataProxyStorage() [2/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const_reference rdata,
IProxyDict * sg = defaultDataSource() )
inlineprotected

Definition at line 173 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

174 : p_sg( sg ), p_data( 0 ), m_id() {
175 setData( rdata );
176 }

◆ DataProxyStorage() [3/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const_pointer pdata,
IProxyDict * sg = defaultDataSource() )
inlineprotected

Definition at line 179 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

180 : p_sg( sg ), p_data( 0 ), m_id() {
181 setData( pdata );
182 }

◆ DataProxyStorage() [4/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const ID_type & dataID,
IProxyDict * sg = defaultDataSource() )
inlineprotected

Definition at line 185 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

186 : p_sg( sg ), p_storable( 0 ), p_data( 0 ) {
187 setData( dataID );
188 }

◆ DataProxyStorage() [5/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( SG::DataProxy * proxy,
IProxyDict * sg = defaultDataSource() )
inlineprotected

Definition at line 191 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

192 : p_sg( sg ), p_storable( 0 ), m_id() {
193 setData( proxy );
194 }

◆ ~DataProxyStorage() [2/3]

template<typename STORABLE>
virtual DataProxyStorage< STORABLE >::~DataProxyStorage ( )
inlineprotectedvirtual

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

167{} // disallow accidental base class deletion

◆ DataProxyStorage() [6/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( IProxyDict * sg = defaultDataSource())
inlineprotected

◆ DataProxyStorage() [7/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const_reference rdata,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

174 : p_sg( sg ), p_data( 0 ), m_id() {
175 setData( rdata );
176 }

◆ DataProxyStorage() [8/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const_pointer pdata,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

180 : p_sg( sg ), p_data( 0 ), m_id() {
181 setData( pdata );
182 }

◆ DataProxyStorage() [9/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const ID_type & dataID,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

186 : p_sg( sg ), p_storable( 0 ), p_data( 0 ) {
187 setData( dataID );
188 }

◆ DataProxyStorage() [10/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( SG::DataProxy * proxy,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

192 : p_sg( sg ), p_storable( 0 ), m_id() {
193 setData( proxy );
194 }

◆ ~DataProxyStorage() [3/3]

template<typename STORABLE>
virtual DataProxyStorage< STORABLE >::~DataProxyStorage ( )
inlineprotectedvirtual

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

167{} // disallow accidental base class deletion

◆ DataProxyStorage() [11/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( IProxyDict * sg = defaultDataSource())
inlineprotected

◆ DataProxyStorage() [12/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const_reference rdata,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

174 : p_sg( sg ), p_data( 0 ), m_id() {
175 setData( rdata );
176 }

◆ DataProxyStorage() [13/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const_pointer pdata,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

180 : p_sg( sg ), p_data( 0 ), m_id() {
181 setData( pdata );
182 }

◆ DataProxyStorage() [14/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( const ID_type & dataID,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

186 : p_sg( sg ), p_storable( 0 ), p_data( 0 ) {
187 setData( dataID );
188 }

◆ DataProxyStorage() [15/15]

template<typename STORABLE>
DataProxyStorage< STORABLE >::DataProxyStorage ( SG::DataProxy * proxy,
IProxyDict * sg = defaultDataSource() )
inlineprotected

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

192 : p_sg( sg ), p_storable( 0 ), m_id() {
193 setData( proxy );
194 }

Member Function Documentation

◆ changeState() [1/3]

template<typename STORABLE>
void DataProxyStorage< STORABLE >::changeState ( )
inlineprotected

Definition at line 245 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

245 {
246 if ( PersistentState::valid( this ) ) { p_state = PersistentState::instance(); }
247 else if ( ProxyState::valid( this ) ) { p_state = ProxyState::instance(); }
248 else if ( AccessibleState::valid( this ) ) { p_state = AccessibleState::instance(); }
249 else if ( IdentifiedState::valid( this ) ) { p_state = IdentifiedState::instance(); }
250 else if ( DefaultState::valid( this ) ) { p_state = DefaultState::instance(); }
251 else
252 {
253 p_state = 0; // invalid state
254 }
255 }
static IStorageState * instance(void)
static IStorageState * instance(void)
static IStorageState * instance(void)
static IStorageState * instance(void)
static IStorageState * instance(void)

Referenced by clear(), reset(), setData(), setData(), setData(), setData(), and setData().

◆ changeState() [2/3]

template<typename STORABLE>
void DataProxyStorage< STORABLE >::changeState ( )
inlineprotected

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

245 {
246 if ( PersistentState::valid( this ) ) { p_state = PersistentState::instance(); }
247 else if ( ProxyState::valid( this ) ) { p_state = ProxyState::instance(); }
248 else if ( AccessibleState::valid( this ) ) { p_state = AccessibleState::instance(); }
249 else if ( IdentifiedState::valid( this ) ) { p_state = IdentifiedState::instance(); }
250 else if ( DefaultState::valid( this ) ) { p_state = DefaultState::instance(); }
251 else
252 {
253 p_state = 0; // invalid state
254 }
255 }

◆ changeState() [3/3]

template<typename STORABLE>
void DataProxyStorage< STORABLE >::changeState ( )
inlineprotected

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

245 {
246 if ( PersistentState::valid( this ) ) { p_state = PersistentState::instance(); }
247 else if ( ProxyState::valid( this ) ) { p_state = ProxyState::instance(); }
248 else if ( AccessibleState::valid( this ) ) { p_state = AccessibleState::instance(); }
249 else if ( IdentifiedState::valid( this ) ) { p_state = IdentifiedState::instance(); }
250 else if ( DefaultState::valid( this ) ) { p_state = DefaultState::instance(); }
251 else
252 {
253 p_state = 0; // invalid state
254 }
255 }

◆ classID() [1/3]

template<typename STORABLE>
virtual const CLID DataProxyStorage< STORABLE >::classID ( ) const
inlineprotectedvirtual

◆ classID() [2/3]

template<typename STORABLE>
virtual const CLID DataProxyStorage< STORABLE >::classID ( ) const
inlineprotectedvirtual

◆ classID() [3/3]

template<typename STORABLE>
virtual const CLID DataProxyStorage< STORABLE >::classID ( ) const
inlineprotectedvirtual

◆ clear() [1/3]

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

Definition at line 205 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

205 {
206 // set everything to NULL and hence will move it to Default state
207 p_storable = 0;
208 p_data = 0;
209 m_id = "";
210 changeState();
211 }

Referenced by DataProxyStorage(), and DataLink< STORABLE, PlainPtrStorage< STORABLE > >::toDefaultObject().

◆ clear() [2/3]

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

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

205 {
206 // set everything to NULL and hence will move it to Default state
207 p_storable = 0;
208 p_data = 0;
209 m_id = "";
210 changeState();
211 }

◆ clear() [3/3]

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

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

205 {
206 // set everything to NULL and hence will move it to Default state
207 p_storable = 0;
208 p_data = 0;
209 m_id = "";
210 changeState();
211 }

◆ dataGet() [1/3]

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

Definition at line 124 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

124 {
125 // boost::function_requires<isStreamable<IS, index_type> > ();
127 is >> temp;
128 if ( is.good() || is.eof() )
129 {
130 // split the slash-separated string in one or two words: m_id and sgName
135 if ( token == tokens.end() ) return false; // at least 1 word
136 setData( *( token++ ) ); // set m_id
137 if ( token != tokens.end() )
138 {
139 p_sg = getDataSource( *token ); // 2nd word if there is sgName
140 }
141 return ( 0 != p_sg );
142 }
143 else return false;
144 }
static IProxyDict * getDataSource(std::string storeName)

◆ dataGet() [2/3]

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

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

124 {
125 // boost::function_requires<isStreamable<IS, index_type> > ();
127 is >> temp;
128 if ( is.good() || is.eof() )
129 {
130 // split the slash-separated string in one or two words: m_id and sgName
135 if ( token == tokens.end() ) return false; // at least 1 word
136 setData( *( token++ ) ); // set m_id
137 if ( token != tokens.end() )
138 {
139 p_sg = getDataSource( *token ); // 2nd word if there is sgName
140 }
141 return ( 0 != p_sg );
142 }
143 else return false;
144 }

◆ dataGet() [3/3]

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

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

124 {
125 // boost::function_requires<isStreamable<IS, index_type> > ();
127 is >> temp;
128 if ( is.good() || is.eof() )
129 {
130 // split the slash-separated string in one or two words: m_id and sgName
135 if ( token == tokens.end() ) return false; // at least 1 word
136 setData( *( token++ ) ); // set m_id
137 if ( token != tokens.end() )
138 {
139 p_sg = getDataSource( *token ); // 2nd word if there is sgName
140 }
141 return ( 0 != p_sg );
142 }
143 else return false;
144 }

◆ dataID() [1/3]

template<typename STORABLE>
const ID_type & DataProxyStorage< STORABLE >::dataID ( ) const
inline

Definition at line 89 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

90 {
91 assert( p_state );
92 p_state->toIdentified( const_cast<DataProxyStorage*>( this ) );
93 return m_id;
94 }

Referenced by DataProxyStorage(), dataPut(), setData(), and DataLink< STORABLE, PlainPtrStorage< STORABLE > >::toIdentifiedObject().

◆ dataID() [2/3]

template<typename STORABLE>
const ID_type & DataProxyStorage< STORABLE >::dataID ( ) const
inline

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

90 {
91 assert( p_state );
92 p_state->toIdentified( const_cast<DataProxyStorage*>( this ) );
93 return m_id;
94 }

◆ dataID() [3/3]

template<typename STORABLE>
const ID_type & DataProxyStorage< STORABLE >::dataID ( ) const
inline

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

90 {
91 assert( p_state );
92 p_state->toIdentified( const_cast<DataProxyStorage*>( this ) );
93 return m_id;
94 }

◆ dataPut() [1/3]

template<typename STORABLE>
template<class OS>
bool DataProxyStorage< STORABLE >::dataPut ( OS & os)
inline

Definition at line 116 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

116 {
117 // boost::function_requires<isStreamable<OS, index_type> > ();
118 // FIXME
119 os << dataID();
120 if ( p_sg->name() != "StoreGateSvc" ) os << "/" << p_sg->name();
121 return os.good();
122 }

◆ dataPut() [2/3]

template<typename STORABLE>
template<class OS>
bool DataProxyStorage< STORABLE >::dataPut ( OS & os)
inline

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

116 {
117 // boost::function_requires<isStreamable<OS, index_type> > ();
118 // FIXME
119 os << dataID();
120 if ( p_sg->name() != "StoreGateSvc" ) os << "/" << p_sg->name();
121 return os.good();
122 }

◆ dataPut() [3/3]

template<typename STORABLE>
template<class OS>
bool DataProxyStorage< STORABLE >::dataPut ( OS & os)
inline

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

116 {
117 // boost::function_requires<isStreamable<OS, index_type> > ();
118 // FIXME
119 os << dataID();
120 if ( p_sg->name() != "StoreGateSvc" ) os << "/" << p_sg->name();
121 return os.good();
122 }

◆ defaultDataSource() [1/3]

template<typename STORABLE>
IProxyDict * DataProxyStorage< STORABLE >::defaultDataSource ( )
inlinestatic

Definition at line 149 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

150 {
151 return getDataSource( "StoreGateSvc" );
152 }

◆ defaultDataSource() [2/3]

template<typename STORABLE>
IProxyDict * DataProxyStorage< STORABLE >::defaultDataSource ( )
inlinestatic

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

150 {
151 return getDataSource( "StoreGateSvc" );
152 }

◆ defaultDataSource() [3/3]

template<typename STORABLE>
IProxyDict * DataProxyStorage< STORABLE >::defaultDataSource ( )
inlinestatic

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

150 {
151 return getDataSource( "StoreGateSvc" );
152 }

◆ getDataPtr() [1/3]

template<typename STORABLE>
pointer DataProxyStorage< STORABLE >::getDataPtr ( ) const
inline

Definition at line 98 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

98 {
99 assert( p_state );
100 p_state->toAccessible( const_cast<DataProxyStorage*>( this ) );
101 return p_storable;
102 }

Referenced by getDataRef().

◆ getDataPtr() [2/3]

template<typename STORABLE>
pointer DataProxyStorage< STORABLE >::getDataPtr ( ) const
inline

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

98 {
99 assert( p_state );
100 p_state->toAccessible( const_cast<DataProxyStorage*>( this ) );
101 return p_storable;
102 }

◆ getDataPtr() [3/3]

template<typename STORABLE>
pointer DataProxyStorage< STORABLE >::getDataPtr ( ) const
inline

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

98 {
99 assert( p_state );
100 p_state->toAccessible( const_cast<DataProxyStorage*>( this ) );
101 return p_storable;
102 }

◆ getDataRef() [1/3]

template<typename STORABLE>
reference DataProxyStorage< STORABLE >::getDataRef ( ) const
inline

Definition at line 106 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

106 {
108#ifndef NDEBUG
109 if ( !pStorable ) throw std::runtime_error( "derefencing invalid DataLink" );
110#endif
111 return *pStorable;
112 }

◆ getDataRef() [2/3]

template<typename STORABLE>
reference DataProxyStorage< STORABLE >::getDataRef ( ) const
inline

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

106 {
108#ifndef NDEBUG
109 if ( !pStorable ) throw std::runtime_error( "derefencing invalid DataLink" );
110#endif
111 return *pStorable;
112 }

◆ getDataRef() [3/3]

template<typename STORABLE>
reference DataProxyStorage< STORABLE >::getDataRef ( ) const
inline

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

106 {
108#ifndef NDEBUG
109 if ( !pStorable ) throw std::runtime_error( "derefencing invalid DataLink" );
110#endif
111 return *pStorable;
112 }

◆ getDataSource() [1/3]

template<typename STORABLE>
IProxyDict * DataProxyStorage< STORABLE >::getDataSource ( std::string storeName)
inlinestaticprotected

Definition at line 156 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

157 {
158 IProxyDict* pStore( 0 );
159 const bool CREATEIF( true );
161 { throw std::runtime_error( "cant get store " + storeName ); }
162 return pStore;
163 }

Referenced by dataGet(), and defaultDataSource().

◆ getDataSource() [2/3]

template<typename STORABLE>
IProxyDict * DataProxyStorage< STORABLE >::getDataSource ( std::string storeName)
inlinestaticprotected

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

157 {
158 IProxyDict* pStore( 0 );
159 const bool CREATEIF( true );
161 { throw std::runtime_error( "cant get store " + storeName ); }
162 return pStore;
163 }

◆ getDataSource() [3/3]

template<typename STORABLE>
IProxyDict * DataProxyStorage< STORABLE >::getDataSource ( std::string storeName)
inlinestaticprotected

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

157 {
158 IProxyDict* pStore( 0 );
159 const bool CREATEIF( true );
161 { throw std::runtime_error( "cant get store " + storeName ); }
162 return pStore;
163 }

◆ ID() [1/3]

template<typename STORABLE>
virtual ID_type DataProxyStorage< STORABLE >::ID ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

Definition at line 260 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

260{ return m_id; }

◆ ID() [2/3]

template<typename STORABLE>
virtual ID_type DataProxyStorage< STORABLE >::ID ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

260{ return m_id; }

◆ ID() [3/3]

template<typename STORABLE>
virtual ID_type DataProxyStorage< STORABLE >::ID ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

260{ return m_id; }

◆ isValid() [1/3]

template<typename STORABLE>
bool DataProxyStorage< STORABLE >::isValid ( ) const
inline

Definition at line 85 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

85{ return 0 != p_state && p_state->isValid( this ); }

◆ isValid() [2/3]

template<typename STORABLE>
bool DataProxyStorage< STORABLE >::isValid ( ) const
inline

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

85{ return 0 != p_state && p_state->isValid( this ); }

◆ isValid() [3/3]

template<typename STORABLE>
bool DataProxyStorage< STORABLE >::isValid ( ) const
inline

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

85{ return 0 != p_state && p_state->isValid( this ); }

◆ proxy() [1/3]

template<typename STORABLE>
virtual SG::DataProxy * DataProxyStorage< STORABLE >::proxy ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

Definition at line 259 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

259{ return p_data; }

Referenced by DataProxyStorage(), and setData().

◆ proxy() [2/3]

template<typename STORABLE>
virtual SG::DataProxy * DataProxyStorage< STORABLE >::proxy ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

259{ return p_data; }

◆ proxy() [3/3]

template<typename STORABLE>
virtual SG::DataProxy * DataProxyStorage< STORABLE >::proxy ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

259{ return p_data; }

◆ reset() [1/3]

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

Definition at line 198 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

198 {
199 // set pointer to 0, other stay as they are.
200 // this will move it to whatever state after pointer is set to 0.
201 p_storable = 0;
202 changeState(); // this will move it to whateve
203 }

◆ reset() [2/3]

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

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

198 {
199 // set pointer to 0, other stay as they are.
200 // this will move it to whatever state after pointer is set to 0.
201 p_storable = 0;
202 changeState(); // this will move it to whateve
203 }

◆ reset() [3/3]

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

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

198 {
199 // set pointer to 0, other stay as they are.
200 // this will move it to whatever state after pointer is set to 0.
201 p_storable = 0;
202 changeState(); // this will move it to whateve
203 }

◆ setData() [1/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( const ID_type & dataID)
inlineprotectedvirtual

Implements IStoragePolicy.

Definition at line 234 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

234 {
235 m_id = dataID;
236 changeState();
237 }

◆ setData() [2/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( const ID_type & dataID)
inlineprotectedvirtual

Implements IStoragePolicy.

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

234 {
235 m_id = dataID;
236 changeState();
237 }

◆ setData() [3/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( const ID_type & dataID)
inlineprotectedvirtual

Implements IStoragePolicy.

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

234 {
235 m_id = dataID;
236 changeState();
237 }

◆ setData() [4/15]

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

Definition at line 217 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

217 {
218 if ( 0 == pdata )
219 {
220#ifndef NDEBUG
221 std::cerr << __FILE__ << ':' << __LINE__ << ": ERROR"
222 << " initializing a link with a NULL data ptr " << std::endl;
223#endif
224 p_storable = 0;
225 }
226 else { p_storable = const_cast<pointer>( pdata ); }
227 changeState();
228 }

◆ setData() [5/15]

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

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

217 {
218 if ( 0 == pdata )
219 {
220#ifndef NDEBUG
221 std::cerr << __FILE__ << ':' << __LINE__ << ": ERROR"
222 << " initializing a link with a NULL data ptr " << std::endl;
223#endif
224 p_storable = 0;
225 }
226 else { p_storable = const_cast<pointer>( pdata ); }
227 changeState();
228 }

◆ setData() [6/15]

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

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

217 {
218 if ( 0 == pdata )
219 {
220#ifndef NDEBUG
221 std::cerr << __FILE__ << ':' << __LINE__ << ": ERROR"
222 << " initializing a link with a NULL data ptr " << std::endl;
223#endif
224 p_storable = 0;
225 }
226 else { p_storable = const_cast<pointer>( pdata ); }
227 changeState();
228 }

◆ setData() [7/15]

template<typename STORABLE>
void DataProxyStorage< STORABLE >::setData ( const_reference rdata)
inlineprotected

Definition at line 213 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

213 {
214 p_storable = const_cast<pointer>( &rdata );
215 changeState();
216 }

Referenced by dataGet(), DataProxyStorage(), DataProxyStorage(), DataProxyStorage(), and DataProxyStorage().

◆ setData() [8/15]

template<typename STORABLE>
void DataProxyStorage< STORABLE >::setData ( const_reference rdata)
inlineprotected

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

213 {
214 p_storable = const_cast<pointer>( &rdata );
215 changeState();
216 }

◆ setData() [9/15]

template<typename STORABLE>
void DataProxyStorage< STORABLE >::setData ( const_reference rdata)
inlineprotected

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

213 {
214 p_storable = const_cast<pointer>( &rdata );
215 changeState();
216 }

◆ setData() [10/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( DataObject * rdata)
inlineprotectedvirtual

Implements IStoragePolicy.

Definition at line 229 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

229 {
230 if ( 0 != p_data && 0 != rdata ) { p_storable = SG::DataProxy_cast<STORABLE>( p_data ); }
231 changeState();
232 }

◆ setData() [11/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( DataObject * rdata)
inlineprotectedvirtual

Implements IStoragePolicy.

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

229 {
230 if ( 0 != p_data && 0 != rdata ) { p_storable = SG::DataProxy_cast<STORABLE>( p_data ); }
231 changeState();
232 }

◆ setData() [12/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( DataObject * rdata)
inlineprotectedvirtual

Implements IStoragePolicy.

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

229 {
230 if ( 0 != p_data && 0 != rdata ) { p_storable = SG::DataProxy_cast<STORABLE>( p_data ); }
231 changeState();
232 }

◆ setData() [13/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( SG::DataProxy * proxy)
inlineprotectedvirtual

Implements IStoragePolicy.

Definition at line 239 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

239 {
240 p_data = proxy;
241 m_id = proxy->name();
242 changeState();
243 }

◆ setData() [14/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( SG::DataProxy * proxy)
inlineprotectedvirtual

Implements IStoragePolicy.

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

239 {
240 p_data = proxy;
241 m_id = proxy->name();
242 changeState();
243 }

◆ setData() [15/15]

template<typename STORABLE>
virtual void DataProxyStorage< STORABLE >::setData ( SG::DataProxy * proxy)
inlineprotectedvirtual

Implements IStoragePolicy.

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

239 {
240 p_data = proxy;
241 m_id = proxy->name();
242 changeState();
243 }

◆ setDataSource() [1/3]

template<typename STORABLE>
bool DataProxyStorage< STORABLE >::setDataSource ( IProxyDict * sg)
inlineprotected

Definition at line 165 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

165{ return ( 0 != ( p_sg = sg ) ); }

◆ setDataSource() [2/3]

template<typename STORABLE>
bool DataProxyStorage< STORABLE >::setDataSource ( IProxyDict * sg)
inlineprotected

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

165{ return ( 0 != ( p_sg = sg ) ); }

◆ setDataSource() [3/3]

template<typename STORABLE>
bool DataProxyStorage< STORABLE >::setDataSource ( IProxyDict * sg)
inlineprotected

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

165{ return ( 0 != ( p_sg = sg ) ); }

◆ source() [1/3]

template<typename STORABLE>
virtual IProxyDict * DataProxyStorage< STORABLE >::source ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

Definition at line 262 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

262{ return p_sg; }

◆ source() [2/3]

template<typename STORABLE>
virtual IProxyDict * DataProxyStorage< STORABLE >::source ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

262{ return p_sg; }

◆ source() [3/3]

template<typename STORABLE>
virtual IProxyDict * DataProxyStorage< STORABLE >::source ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

262{ return p_sg; }

◆ storable() [1/3]

template<typename STORABLE>
virtual void * DataProxyStorage< STORABLE >::storable ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

Definition at line 258 of file Event/GeneratorObject/include/DataModel/tools/DataProxyStorage.h.

258{ return p_storable; }

◆ storable() [2/3]

template<typename STORABLE>
virtual void * DataProxyStorage< STORABLE >::storable ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

258{ return p_storable; }

◆ storable() [3/3]

template<typename STORABLE>
virtual void * DataProxyStorage< STORABLE >::storable ( ) const
inlineprotectedvirtual

Implements IStoragePolicy.

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

258{ return p_storable; }

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