| The Gaudi Framework v28r2p1 (f1a77ff4)

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

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

Public Member Functions | List of all members
Gaudi::Utils::AlgTypeSelector< TYPE > Class Template Reference

The trivial selector of algorithm by type. More...

`#include <GaudiAlg/GetAlg.h>`

Inheritance diagram for Gaudi::Utils::AlgTypeSelector< TYPE >:
[legend]
Collaboration diagram for Gaudi::Utils::AlgTypeSelector< TYPE >:
[legend]

## Public Member Functions
bool | operator() (const IAlgorithm *a) const override
| the only one essential method: More...
Public Member Functions inherited from Gaudi::Utils::AlgSelector
virtual | ~AlgSelector ()=default

## Detailed Description

### template<class TYPE>
class Gaudi::Utils::AlgTypeSelector< TYPE >

The trivial selector of algorithm by type.

See also
  Gaudi::Utils::AlgSelector

Author
  Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u

Date
  2007-09-07

Definition at line 42 of file GetAlg.h.

## Member Function Documentation

template<class TYPE>

bool Gaudi::Utils::AlgTypeSelector< TYPE >::operator() | ( | const IAlgorithm * | a | ) | const
| inline override virtual

the only one essential method:

Implements Gaudi::Utils::AlgSelector.

Definition at line 46 of file GetAlg.h.

47 { using TYPE_ = typename std::decay<TYPE>::type;
48 using CTYPE = typename std::add_const<TYPE_>::type;
49 using cptr = typename std::add_pointer<CTYPE>::type;
50 return dynamic_cast<cptr>( a ); }
std::add_pointer
std::type_info
std::add_const
std::decay

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

- GaudiAlg/GaudiAlg/GetAlg.h