DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | Private Member Functions | List of all members
dd4hep::ByName< T > Class Template Reference

Helper functor to select elements by name (using name() member method) More...

#include <Operators.h>

Public Member Functions

 ByName (const std::string &nam)
 Standard constructor. More...
 
 ByName (const ByName &copy)
 Copy constructor. More...
 
bool operator() (const T &entry) const
 Operator to select from object containers. More...
 
bool operator() (const T *entry) const
 Operator to select from pointer containers. More...
 

Public Attributes

const std::string & name
 Reference name. More...
 

Private Member Functions

template<typename Q >
ByName< T > & operator= (const ByName< Q > &)
 Assignment operator. More...
 

Detailed Description

template<typename T>
class dd4hep::ByName< T >

Helper functor to select elements by name (using name() member method)

Definition at line 24 of file Operators.h.

Constructor & Destructor Documentation

◆ ByName() [1/2]

template<typename T >
dd4hep::ByName< T >::ByName ( const std::string &  nam)
inline

Standard constructor.

Definition at line 32 of file Operators.h.

◆ ByName() [2/2]

template<typename T >
dd4hep::ByName< T >::ByName ( const ByName< T > &  copy)
inline

Copy constructor.

Definition at line 34 of file Operators.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
bool dd4hep::ByName< T >::operator() ( const T &  entry) const
inline

Operator to select from object containers.

Definition at line 36 of file Operators.h.

◆ operator()() [2/2]

template<typename T >
bool dd4hep::ByName< T >::operator() ( const T *  entry) const
inline

Operator to select from pointer containers.

Definition at line 38 of file Operators.h.

◆ operator=()

template<typename T >
template<typename Q >
ByName<T>& dd4hep::ByName< T >::operator= ( const ByName< Q > &  )
inlineprivate

Assignment operator.

Definition at line 27 of file Operators.h.

Member Data Documentation

◆ name

template<typename T >
const std::string& dd4hep::ByName< T >::name

Reference name.

Definition at line 30 of file Operators.h.


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