Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > > Struct Template Reference

the template specialization for ranges More...

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

Inheritance diagram for Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > >:

Public Member Functions

bool operator() (IDataProviderSvc *service, const std::string &location) const
 the only one essential method More...
 
bool operator() (IDataProviderSvc *service, const std::string &location) const
 the only one essential method More...
 

Protected Member Functions

DataObjectgetData (IDataProviderSvc *service, const std::string &location) const
 get the data form transient store More...
 
DataObjectgetData (IDataProviderSvc *service, const std::string &location) const
 get the data form transient store More...
 

Detailed Description

template<class TYPE>
struct Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > >

the template specialization for ranges

Definition at line 336 of file GetData.h.

Member Function Documentation

template<class TYPE >
DataObject* Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > >::getData ( IDataProviderSvc service,
const std::string &  location 
) const
inlineprotected

get the data form transient store

Parameters
servicepointer to data provider service
locationthe location
Returns
the object for TES

Try to be efficient

Definition at line 364 of file GetData.h.

366  {
368  SmartDataObjectPtr getter
370  service , nullptr , location ) ;
371  return getter.accessData () ;
372  }
A small class used to access easily (and efficiently) data items residing in data stores...
template<class TYPE >
DataObject* Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > >::getData ( IDataProviderSvc service,
const std::string &  location 
) const
inlineprotected

get the data form transient store

Parameters
servicepointer to data provider service
locationthe location
Returns
the object for TES

Try to be efficient

Definition at line 364 of file GetData.h.

366  {
368  SmartDataObjectPtr getter
370  service , nullptr , location ) ;
371  return getter.accessData () ;
372  }
A small class used to access easily (and efficiently) data items residing in data stores...
template<class TYPE >
bool Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > >::operator() ( IDataProviderSvc service,
const std::string &  location 
) const
inline

the only one essential method

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

Definition at line 347 of file GetData.h.

349  {
350  DataObject* object = this->getData( service , location ) ;
351  if ( !object ) { return false ; }
352  return
353  dynamic_cast<typename TYPE::Selection*> ( object ) ||
354  dynamic_cast<typename TYPE::Container*> ( object ) ;
355  }
DataObject * getData(IDataProviderSvc *service, const std::string &location) const
get the data form transient store
Definition: GetData.h:364
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
template<class TYPE >
bool Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > >::operator() ( IDataProviderSvc service,
const std::string &  location 
) const
inline

the only one essential method

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

Definition at line 347 of file GetData.h.

349  {
350  DataObject* object = this->getData( service , location ) ;
351  if ( !object ) { return false ; }
352  return
353  dynamic_cast<typename TYPE::Selection*> ( object ) ||
354  dynamic_cast<typename TYPE::Container*> ( object ) ;
355  }
DataObject * getData(IDataProviderSvc *service, const std::string &location) const
get the data form transient store
Definition: GetData.h:364
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30

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