#include <DCSimpleSelector.h>
Inheritance diagram for DChain::DCSimpleSelector< Arg >:
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 |
|
00313 : m_method(0) {}
|
|
00315 : 00316 m_method( new DChain::MethodAdapter<T,Arg>(iMethod) ) {}
|
|
00318 : 00319 m_method( iMethod.clone() ) {} virtual ~DCSimpleSelector() {
|
|
00320 {
00321 delete m_method;
00322 }
|
|
00332 : m_method(0) { 00333 if( 0 != iCopy.m_method) { 00334 m_method = iCopy.m_method->clone(); 00335 } 00336 }
|
|
00313 : m_method(0) {}
|
|
00315 : 00316 m_method( new DChain::MethodAdapter<T,Arg>(iMethod) ) {}
|
|
00318 : 00319 m_method( iMethod.clone() ) {} virtual ~DCSimpleSelector() {
|
|
00320 {
00321 delete m_method;
00322 }
|
|
00332 : m_method(0) { 00333 if( 0 != iCopy.m_method) { 00334 m_method = iCopy.m_method->clone(); 00335 } 00336 }
|
|
00078 { 00079 return const_cast<DCSelectionFunction<Arg> *>(this)->operator()(iArg); 00080 }
|
|
Implements DCSelectionFunction< Arg >. 00325 { 00326 if( 0 != m_method ) { 00327 return m_method->select(iArg); 00328 } 00329 return true; 00330 }
|
|
Implements DCSelectionFunction< Arg >. 00325 { 00326 if( 0 != m_method ) { 00327 return m_method->select(iArg); 00328 } 00329 return true; 00330 }
|
|
00338 { 00339 DCSimpleSelector<Arg> temp(iRHS); 00340 swap(temp); 00341 return *this; 00342 }
|
|
00338 { 00339 DCSimpleSelector<Arg> temp(iRHS); 00340 swap(temp); 00341 return *this; 00342 }
|
|
00346 { 00347 DChain::MethodBase<Arg>* temp = m_method; 00348 m_method = iOther.m_method; 00349 iOther.m_method = temp; 00350 }
|
|
00346 { 00347 DChain::MethodBase<Arg>* temp = m_method; 00348 m_method = iOther.m_method; 00349 iOther.m_method = temp; 00350 }
|
|
|
|
|