| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions | List of all members
Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > > Struct Template Reference

the template specialization for ranges More...

`#include <GaudiAlg/GetData.h>`

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

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

## Protected Member Functions
DataObject * | getData (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
| inline protected

get the data form transient store

Parameters

  service | pointer to data provider service
  location | the location

Returns
  the object for TES

Try to be efficient

Definition at line 364 of file GetData.h.

366 {
368 SmartDataObjectPtr getter
369 ( SmartDataObjectPtr::ObjectLoader::access() ,
370 service , nullptr , location ) ;
371 return getter.accessData () ;
372 }
SmartDataObjectPtr
A small class used to access easily (and efficiently) data items residing in data stores...
Definition: SmartDataObjectPtr.h:32
SmartDataObjectPtr::ObjectLoader::access
static AccessFunction access()
Definition: SmartDataObjectPtr.cpp:17
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

  common | the actual "worker"
  service | pointer to Data Provider Service
  location | location 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 }
Gaudi::Utils::CheckData< Gaudi::Range_< std::vector< const TYPE * > > >::getData
DataObject * getData(IDataProviderSvc *service, const std::string &location) const
get the data form transient store
Definition: GetData.h:364
DataObject
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:

- GaudiAlg/GaudiAlg/GetData.h