| The Gaudi Framework v32r1 (f65d50dc)

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 39 of file GetAlg.h.

## Member Function Documentation

## ◆ operator()()

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 42 of file GetAlg.h.

42 {
43 using TYPE_ = std::decay_t<TYPE>;
44 using CTYPE = std::add_const_t<TYPE_>;
45 using cptr = std::add_pointer_t<CTYPE>;
46 return dynamic_cast<cptr>( a );
47 }
std::type_info

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

- GaudiAlg/GaudiAlg/GetAlg.h