| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# Gaudi::Utils::AlgNameSelector Class Reference

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

`#include <GetAlg.h>`

Inheritance diagram for Gaudi::Utils::AlgNameSelector:

[legend]
Collaboration diagram for Gaudi::Utils::AlgNameSelector:

[legend]

List of all members.

## Public Member Functions
| AlgNameSelector (const std::string &name)
| constructor form the name
virtual bool | operator() (const IAlgorithm *a) const
| the only one essential method:
## Private Member Functions
| AlgNameSelector ()
## Private Attributes
std::string | m_name
| algorithm name

## Detailed Description

The trivial selector of algorithm by type.

See also:
  Gaudi::Utils::AlgSelector

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2007-09-07

Definition at line 71 of file GetAlg.h.

## Constructor & Destructor Documentation

Gaudi::Utils::AlgNameSelector::AlgNameSelector | ( | const std::string & | name | ) | `[inline]`

constructor form the name

Definition at line 75 of file GetAlg.h.

    00075 : m_name ( name ) {}

Gaudi::Utils::AlgNameSelector::AlgNameSelector | ( |  | ) | `[private]`

## Member Function Documentation

virtual bool Gaudi::Utils::AlgNameSelector::operator() | ( | const IAlgorithm * | a | ) | const`[inline, virtual]`

the only one essential method:

Implements Gaudi::Utils::AlgSelector.

Definition at line 77 of file GetAlg.h.

    00078       { return 0 != a ? a->name() == m_name : false ; }

## Member Data Documentation

std::string Gaudi::Utils::AlgNameSelector::m_name`[private]`

algorithm name

Definition at line 84 of file GetAlg.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r10p1/GaudiAlg/GaudiAlg/GetAlg.h