BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
DChain::DCSimpleSelector< Arg > Class Template Reference

#include <DCSimpleSelector.h>

+ Inheritance diagram for DChain::DCSimpleSelector< Arg >:

Public Member Functions

 DCSimpleSelector ()
 
template<class T >
 DCSimpleSelector (const T &iMethod)
 
 DCSimpleSelector (const DChain::MethodBase< Arg > &iMethod)
 
virtual ~DCSimpleSelector ()
 
virtual bool operator() (Arg &iArg)
 
 DCSimpleSelector (const DCSimpleSelector< Arg > &iCopy)
 
const DCSimpleSelector< Arg > & operator= (const DCSimpleSelector< Arg > &iRHS)
 
- Public Member Functions inherited from DCSelectionFunction< Arg >
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual bool operator() (Arg &)=0
 
bool operator() (Arg &iArg) const
 

Detailed Description

template<class Arg>
class DChain::DCSimpleSelector< Arg >

Definition at line 305 of file DCSimpleSelector.h.

Constructor & Destructor Documentation

◆ DCSimpleSelector() [1/4]

template<class Arg >
DChain::DCSimpleSelector< Arg >::DCSimpleSelector ( )
inline

Definition at line 313 of file DCSimpleSelector.h.

313: m_method(0) {}

◆ DCSimpleSelector() [2/4]

template<class Arg >
template<class T >
DChain::DCSimpleSelector< Arg >::DCSimpleSelector ( const T &  iMethod)
inline

Definition at line 315 of file DCSimpleSelector.h.

315 :
316 m_method( new DChain::MethodAdapter<T,Arg>(iMethod) ) {}

◆ DCSimpleSelector() [3/4]

template<class Arg >
DChain::DCSimpleSelector< Arg >::DCSimpleSelector ( const DChain::MethodBase< Arg > &  iMethod)
inline

Definition at line 318 of file DCSimpleSelector.h.

318 :
319 m_method( iMethod.clone() ) {}
virtual MethodBase * clone() const =0

◆ ~DCSimpleSelector()

template<class Arg >
virtual DChain::DCSimpleSelector< Arg >::~DCSimpleSelector ( )
inlinevirtual

Definition at line 320 of file DCSimpleSelector.h.

320 {
321 delete m_method;
322 }

◆ DCSimpleSelector() [4/4]

template<class Arg >
DChain::DCSimpleSelector< Arg >::DCSimpleSelector ( const DCSimpleSelector< Arg > &  iCopy)
inline

Definition at line 332 of file DCSimpleSelector.h.

332 : m_method(0) {
333 if( 0 != iCopy.m_method) {
334 m_method = iCopy.m_method->clone();
335 }
336 }

Member Function Documentation

◆ operator()()

template<class Arg >
virtual bool DChain::DCSimpleSelector< Arg >::operator() ( Arg &  iArg)
inlinevirtual

Implements DCSelectionFunction< Arg >.

Definition at line 325 of file DCSimpleSelector.h.

325 {
326 if( 0 != m_method ) {
327 return m_method->select(iArg);
328 }
329 return true;
330 }

◆ operator=()

template<class Arg >
const DCSimpleSelector< Arg > & DChain::DCSimpleSelector< Arg >::operator= ( const DCSimpleSelector< Arg > &  iRHS)
inline

Definition at line 338 of file DCSimpleSelector.h.

338 {
339 DCSimpleSelector<Arg> temp(iRHS);
340 swap(temp);
341 return *this;
342 }

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