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

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

#include <Operators.h>

Public Member Functions

 ByNameAttr (const std::string &nam)
 Standard constructor. More...
 
 ByNameAttr (const ByNameAttr &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 >
ByNameAttr< T > & operator= (const ByNameAttr< Q > &)
 Assignment operator. More...
 

Detailed Description

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

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

Definition at line 45 of file Operators.h.

Constructor & Destructor Documentation

◆ ByNameAttr() [1/2]

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

Standard constructor.

Definition at line 53 of file Operators.h.

◆ ByNameAttr() [2/2]

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

Copy constructor.

Definition at line 55 of file Operators.h.

Member Function Documentation

◆ operator()() [1/2]

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

Operator to select from object containers.

Definition at line 57 of file Operators.h.

◆ operator()() [2/2]

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

Operator to select from pointer containers.

Definition at line 59 of file Operators.h.

◆ operator=()

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

Assignment operator.

Definition at line 48 of file Operators.h.

Member Data Documentation

◆ name

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

Reference name.

Definition at line 51 of file Operators.h.


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