| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

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

the template specialization for ranges More...

`#include <GetData.h>`

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

List of all members.

## Public Member Functions
bool | operator() (IDataProviderSvc *service, const std::string &location) const
| the only one essential method
## Protected Member Functions
DataObject * | getData (IDataProviderSvc *service, const std::string &location) const
| get the data form transient store

## Detailed Description

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

the template specialization for ranges

Definition at line 314 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 342 of file GetData.h.

    00344       {
    00346         SmartDataObjectPtr getter
    00347           ( SmartDataObjectPtr::ObjectLoader::access() ,
    00348             service , 0 , location ) ;
    00349         return getter.accessData () ;
    00350       }

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 325 of file GetData.h.

    00327       {
    00328         DataObject* object = this->getData( service , location ) ;
    00329         if ( 0 == object ) { return false ; }
    00330         return
    00331           0 != dynamic_cast<typename TYPE::Selection*> ( object ) ||
    00332           0 != dynamic_cast<typename TYPE::Container*> ( object ) ;
    00333       }

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiAlg/GaudiAlg/GetData.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines