Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DChain::DCSimpleSelector< Arg > Class Template Reference

#include <DCSimpleSelector.h>

Inheritance diagram for DChain::DCSimpleSelector< Arg >:

DCSelectionFunction< Arg > DCSelectionFunction< Arg > List of all members.

Public Member Functions

 DCSimpleSelector (const DCSimpleSelector< Arg > &iCopy)
 DCSimpleSelector (const DChain::MethodBase< Arg > &iMethod)
template<class T>
 DCSimpleSelector (const T &iMethod)
 DCSimpleSelector ()
 DCSimpleSelector (const DCSimpleSelector< Arg > &iCopy)
 DCSimpleSelector (const DChain::MethodBase< Arg > &iMethod)
template<class T>
 DCSimpleSelector (const T &iMethod)
 DCSimpleSelector ()
bool operator() (Arg &iArg) const
virtual bool operator() (Arg &iArg)
virtual bool operator() (Arg &iArg)
const DCSimpleSelector< Arg > & operator= (const DCSimpleSelector< Arg > &iRHS)
const DCSimpleSelector< Arg > & operator= (const DCSimpleSelector< Arg > &iRHS)
virtual ~DCSimpleSelector ()
virtual ~DCSimpleSelector ()

Private Member Functions

void swap (DCSimpleSelector< Arg > &iOther)
void swap (DCSimpleSelector< Arg > &iOther)

Private Attributes

DChain::MethodBase< Arg > * m_method
DChain::MethodBase< Arg > * m_method

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


Constructor & Destructor Documentation

template<class Arg>
DChain::DCSimpleSelector< Arg >::DCSimpleSelector  )  [inline]
 

00313 : m_method(0) {}

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

00315                                           :
00316          m_method( new DChain::MethodAdapter<T,Arg>(iMethod) ) {}
           

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

00318                                                               :
00319          m_method( iMethod.clone() ) {}
      virtual ~DCSimpleSelector() {

template<class Arg>
virtual DChain::DCSimpleSelector< Arg >::~DCSimpleSelector  )  [inline, virtual]
 

00320                                   {
00321          delete m_method;
00322       }

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

00332                                                              : m_method(0) {
00333          if( 0 != iCopy.m_method) {
00334             m_method = iCopy.m_method->clone();
00335          }
00336       }

template<class Arg>
DChain::DCSimpleSelector< Arg >::DCSimpleSelector  )  [inline]
 

00313 : m_method(0) {}

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

00315                                           :
00316          m_method( new DChain::MethodAdapter<T,Arg>(iMethod) ) {}
           

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

00318                                                               :
00319          m_method( iMethod.clone() ) {}
      virtual ~DCSimpleSelector() {

template<class Arg>
virtual DChain::DCSimpleSelector< Arg >::~DCSimpleSelector  )  [inline, virtual]
 

00320                                   {
00321          delete m_method;
00322       }

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

00332                                                              : m_method(0) {
00333          if( 0 != iCopy.m_method) {
00334             m_method = iCopy.m_method->clone();
00335          }
00336       }


Member Function Documentation

template<class Arg>
bool DCSelectionFunction< Arg >::operator() Arg &  iArg  )  const [inline, inherited]
 

00078                                        {
00079          return const_cast<DCSelectionFunction<Arg> *>(this)->operator()(iArg);
00080       }

template<class Arg>
virtual bool DChain::DCSimpleSelector< Arg >::operator() Arg &  iArg  )  [inline, virtual]
 

Implements DCSelectionFunction< Arg >.

00325                                           {
00326          if( 0 != m_method ) {
00327             return m_method->select(iArg);
00328          }
00329          return true;
00330       }

template<class Arg>
virtual bool DChain::DCSimpleSelector< Arg >::operator() Arg &  iArg  )  [inline, virtual]
 

Implements DCSelectionFunction< Arg >.

00325                                           {
00326          if( 0 != m_method ) {
00327             return m_method->select(iArg);
00328          }
00329          return true;
00330       }

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

00338                                                                                  {
00339          DCSimpleSelector<Arg> temp(iRHS);
00340          swap(temp);
00341          return *this;
00342       }

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

00338                                                                                  {
00339          DCSimpleSelector<Arg> temp(iRHS);
00340          swap(temp);
00341          return *this;
00342       }

template<class Arg>
void DChain::DCSimpleSelector< Arg >::swap DCSimpleSelector< Arg > &  iOther  )  [inline, private]
 

00346                                                  {
00347          DChain::MethodBase<Arg>* temp = m_method;
00348          m_method = iOther.m_method;
00349          iOther.m_method = temp;
00350       }

template<class Arg>
void DChain::DCSimpleSelector< Arg >::swap DCSimpleSelector< Arg > &  iOther  )  [inline, private]
 

00346                                                  {
00347          DChain::MethodBase<Arg>* temp = m_method;
00348          m_method = iOther.m_method;
00349          iOther.m_method = temp;
00350       }


Member Data Documentation

template<class Arg>
DChain::MethodBase<Arg>* DChain::DCSimpleSelector< Arg >::m_method [private]
 

template<class Arg>
DChain::MethodBase<Arg>* DChain::DCSimpleSelector< Arg >::m_method [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:16:22 2011 for BOSS6.5.5 by  doxygen 1.3.9.1