| # Gaudi Framework, version v21r8 |

Home |  | Generated: 17 Mar 2010

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

the template specialization for ranges More...

`#include <GetData.h>`

List of all members.

## Public Types
typedef Gaudi::Range_ < std::vector< const TYPE * > > | Type
| the actual return type
typedef _GetType< Type > ::return_type | return_type
## Public Member Functions
template<class COMMON>
return_type | operator() (const COMMON &common, IDataProviderSvc *service, const std::string &location) const
| the only one essential method
template<class TYPE3>
return_type | make_range (const TYPE3 *obj) const
DataObject * | getData (IDataProviderSvc *service, const std::string &location) const
| get the data form transient store
## Private Member Functions
template<class ITERATOR>
return_type | make_range (ITERATOR first, ITERATOR last) const

## Detailed Description

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

the template specialization for ranges

Definition at line 107 of file GetData.h.

## Member Typedef Documentation

template<class TYPE>

typedef Gaudi::Range_<std::vector<const TYPE*> > Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::Type

the actual return type

Definition at line 112 of file GetData.h.

template<class TYPE>

typedef _GetType<Type>::return_type Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::return_type

Definition at line 113 of file GetData.h.

## Member Function Documentation

template<class TYPE>
template<class COMMON>

return_type Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::operator() | ( | const COMMON & | common,
|  | 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:
  the data

try to be efficient: 1. load object only once:

2. try to get the selection

3. try to get the container

Definition at line 125 of file GetData.h.

    00128       {
    00131         DataObject* object = this -> getData ( service , location ) ;
    00132         if ( 0 != object )
    00133         {
    00135           typedef typename TYPE::Selection Selection_;
    00136           const Selection_* sel = dynamic_cast<Selection_*> ( object ) ;
    00137           if ( 0 != sel )
    00138           {
    00139             if ( common.msgLevel ( MSG::DEBUG ) )
    00140             { common.debug() << "The object of type '"
    00141                              << System::typeinfoName(typeid(*object))
    00142                              << "' has been retrieved from TS at address '"
    00143                              << location << "'" << endmsg ; }
    00144             return make_range ( sel ) ;
    00145           }
    00147           typedef typename TYPE::Container  Container_ ;
    00148           const Container_* cnt = dynamic_cast<Container_*> ( object ) ;
    00149           if ( 0 != cnt )
    00150           {
    00151             if ( common.msgLevel ( MSG::DEBUG ) )
    00152             { common.debug() << "The object of type '"
    00153                              << System::typeinfoName(typeid(*object))
    00154                              << "' has been retrieved from TS at address '"
    00155                              << location << "'" << endmsg ; }
    00156             return make_range ( cnt ) ;
    00157           }
    00158           // no valid data
    00159           common.Assert ( false , "get():: No valid data at '" + location + "'"  ) ;
    00160         }
    00161         // no valid data
    00162         common.Assert ( false , "get():: No data at '" + location + "'"  ) ;
    00163         // the fictive return
    00164         return return_type () ;
    00165       }

template<class TYPE>
template<class TYPE3>

return_type Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::make_range | ( | const TYPE3 * | obj | ) | const`[inline]`

Definition at line 170 of file GetData.h.

    00171       { return this->make_range ( obj->begin() , obj->end() ) ; }

template<class TYPE>

DataObject* Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::getData | ( | IDataProviderSvc * | service,
|  | const std::string & | location |
| ) |  |  | const`[inline]`

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

    00180       {
    00182         SmartDataObjectPtr getter
    00183           ( SmartDataObjectPtr::ObjectLoader::access() ,
    00184             service , 0 , location ) ;
    00185         return getter.accessData () ;
    00186       }

template<class TYPE>
template<class ITERATOR>

return_type Gaudi::Utils::GetData< Gaudi::Range_< std::vector< const TYPE * > > >::make_range | ( | ITERATOR | first,
|  | ITERATOR | last |
| ) |  |  | const`[inline, private]`

Definition at line 192 of file GetData.h.

    00194       {
    00195         typename return_type::const_iterator* _begin = reinterpret_cast<typename return_type::const_iterator*>(&first);
    00196         typename return_type::const_iterator* _end   = reinterpret_cast<typename return_type::const_iterator*>(&last);
    00197         return return_type(*_begin, *_end);
    00198       }

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

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