| The Gaudi Framework v30r0 (c919700c)

- 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 {
48 using TYPE_ = std::decay_t<TYPE>;
49 using CTYPE = std::add_const_t<TYPE_>;
50 using cptr = std::add_pointer_t<CTYPE>;
51 return dynamic_cast<cptr>( a );
52 }
std::type_info

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

- GaudiAlg/GaudiAlg/GetAlg.h