Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 > Struct Template Reference

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/825/GAUDI/GAUDI_v26r3/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiAlg/GetData.h>

Public Types

typedef Getter::Type Type
 
typedef Getter::return_type return_type
 the actual return type More...
 
typedef Getter::Type Type
 
typedef Getter::return_type return_type
 the actual return type More...
 

Public Member Functions

template<class COMMON >
return_type operator() (const COMMON &common, IDataProviderSvc *service, const std::string &location, const std::string &location2) const
 the only one essential method More...
 
template<class COMMON >
return_type operator() (const COMMON &common, IDataProviderSvc *service, const std::string &location, const std::string &location2) const
 the only one essential method More...
 

Private Types

typedef Gaudi::Range_< std::vector< const TYPE * > > Range
 
typedef GetData< RangeGetter
 the actual data getter More...
 
typedef CheckData< RangeChecker
 the actual data checker More...
 
typedef Gaudi::Range_< std::vector< const TYPE * > > Range
 
typedef GetData< RangeGetter
 the actual data getter More...
 
typedef CheckData< RangeChecker
 the actual data checker More...
 

Private Attributes

Getter m_getter
 the actual data getter More...
 

Detailed Description

template<class TYPE, class TYPE2>
struct Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >

Definition at line 460 of file GetData.h.

Member Typedef Documentation

template<class TYPE , class TYPE2 >
typedef CheckData<Range> Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Checker
private

the actual data checker

Definition at line 468 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef CheckData<Range> Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Checker
private

the actual data checker

Definition at line 468 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef GetData<Range> Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Getter
private

the actual data getter

Definition at line 466 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef GetData<Range> Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Getter
private

the actual data getter

Definition at line 466 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef Gaudi::Range_<std::vector<const TYPE*> > Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Range
private

Definition at line 464 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef Gaudi::Range_<std::vector<const TYPE*> > Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Range
private

Definition at line 464 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef Getter::return_type Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::return_type

the actual return type

Definition at line 474 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef Getter::return_type Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::return_type

the actual return type

Definition at line 474 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef Getter::Type Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Type

Definition at line 472 of file GetData.h.

template<class TYPE , class TYPE2 >
typedef Getter::Type Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::Type

Definition at line 472 of file GetData.h.

Member Function Documentation

template<class TYPE , class TYPE2 >
template<class COMMON >
return_type Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::operator() ( const COMMON &  common,
IDataProviderSvc service,
const std::string &  location,
const std::string &  location2 
) const
inline

the only one essential method

Parameters
commonthe actual "worker"
servicepointer to Data Provider Service
locationlocation of objects in TES
Returns
the data

Definition at line 486 of file GetData.h.

490  {
491  DataObject* obj = m_getter.getData ( service , location ) ;
492  if ( 0 == obj )
493  {
494  TYPE2* o = new TYPE2() ;
495  common.put ( service , o , location2 ) ;
496  if ( common.msgLevel ( MSG::DEBUG ) )
497  { common.debug() << "The object of type '"
498  << System::typeinfoName(typeid(*o))
499  << "' has been created from TS at address '"
500  << location2 << "'" << endmsg ; }
501  }
502  return m_getter ( common , service , location ) ;
503  // ====================================================================
504  }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:299
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31
template<class TYPE , class TYPE2 >
template<class COMMON >
return_type Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::operator() ( const COMMON &  common,
IDataProviderSvc service,
const std::string &  location,
const std::string &  location2 
) const
inline

the only one essential method

Parameters
commonthe actual "worker"
servicepointer to Data Provider Service
locationlocation of objects in TES
Returns
the data

Definition at line 486 of file GetData.h.

490  {
491  DataObject* obj = m_getter.getData ( service , location ) ;
492  if ( 0 == obj )
493  {
494  TYPE2* o = new TYPE2() ;
495  common.put ( service , o , location2 ) ;
496  if ( common.msgLevel ( MSG::DEBUG ) )
497  { common.debug() << "The object of type '"
498  << System::typeinfoName(typeid(*o))
499  << "' has been created from TS at address '"
500  << location2 << "'" << endmsg ; }
501  }
502  return m_getter ( common , service , location ) ;
503  // ====================================================================
504  }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:299
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31

Member Data Documentation

template<class TYPE , class TYPE2 >
Getter Gaudi::Utils::GetOrCreateData< Gaudi::Range_< std::vector< const TYPE * > >, TYPE2 >::m_getter
private

the actual data getter

Definition at line 509 of file GetData.h.


The documentation for this struct was generated from the following file: