#include <functors.h>
|
virtual void * | Call (std::vector< std::string > &d, int &sock_in, bool *isDown) |
|
void | nullify () |
|
| Functor (TClass *_pt2Object, void(TClass::*_fpt)()) |
|
| Functor (TClass *_pt2Object, void(TClass::*_fpt)(std::string &)) |
|
| Functor (TClass *_pt2Object, void(TClass::*_fpt)(const char *)) |
|
| Functor (TClass *_pt2Object, void(TClass::*_fpt)(const char *array[])) |
|
| Functor (TClass *_Obj, void(TClass::*_fpt)(const char *, const char *)) |
|
| Functor (TClass *_Obj, void(TClass::*_fpt)(bool *)) |
|
| Functor (TClass *_Obj, void(TClass::*_fpt)(int)) |
|
| Functor (TClass *_Obj, void(TClass::*_fpt)(char)) |
|
| Functor (TClass *_Obj, void(TClass::*_fpt)(std::vector< std::string * > *d)) |
|
| Functor (TClass *_Obj, void(TClass::*_fpt)(std::vector< std::string * > *d, int &)) |
|
| Functor (TClass *_pt2Object, void(TClass::*_fpt)(std::string &, int &)) |
|
| Functor (TClass *_Obj, void(TClass::*_fpt)(std::vector< std::string * > *d, int &, bool)) |
|
virtual | ~Functor () |
|
virtual | ~TFunctor () |
|
template<class TClass>
class Functor< TClass >
Definition at line 58 of file functors.h.
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_pt2Object, |
|
|
void(TClass::*)() |
_fpt |
|
) |
| |
|
inline |
Definition at line 210 of file functors.h.
213 pt2Object = _pt2Object;
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_pt2Object, |
|
|
void(TClass::*)(std::string &) |
_fpt |
|
) |
| |
|
inline |
Definition at line 217 of file functors.h.
220 pt2Object = _pt2Object;
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_pt2Object, |
|
|
void(TClass::*)(const char *) |
_fpt |
|
) |
| |
|
inline |
Definition at line 224 of file functors.h.
227 pt2Object = _pt2Object;
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_pt2Object, |
|
|
void(TClass::*)(const char *array[]) |
_fpt |
|
) |
| |
|
inline |
Definition at line 230 of file functors.h.
233 pt2Object = _pt2Object;
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_Obj, |
|
|
void(TClass::*)(const char *, const char *) |
_fpt |
|
) |
| |
|
inline |
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_Obj, |
|
|
void(TClass::*)(char) |
_fpt |
|
) |
| |
|
inline |
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_Obj, |
|
|
void(TClass::*)(std::vector< std::string * > *d) |
_fpt |
|
) |
| |
|
inline |
Definition at line 265 of file functors.h.
268 pt2Object = _Obj, fpt9 = _fpt;
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_Obj, |
|
|
void(TClass::*)(std::vector< std::string * > *d, int &) |
_fpt |
|
) |
| |
|
inline |
Definition at line 271 of file functors.h.
274 pt2Object = _Obj, fpt10 = _fpt;
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_pt2Object, |
|
|
void(TClass::*)(std::string &, int &) |
_fpt |
|
) |
| |
|
inline |
Definition at line 277 of file functors.h.
280 pt2Object = _pt2Object;
template<class TClass>
Functor< TClass >::Functor |
( |
TClass * |
_Obj, |
|
|
void(TClass::*)(std::vector< std::string * > *d, int &, bool) |
_fpt |
|
) |
| |
|
inline |
Definition at line 284 of file functors.h.
287 pt2Object = _Obj, fpt12 = _fpt;
template<class TClass>
virtual void* Functor< TClass >::Call |
( |
std::vector< std::string > & |
d, |
|
|
int & |
sock_in, |
|
|
bool * |
isDown |
|
) |
| |
|
inlinevirtual |
Implements TFunctor.
Definition at line 79 of file functors.h.
92 else if (fpt2 != NULL) {
96 for (x = 0; x <
d.size(); x++) {
100 (*pt2Object.*fpt2)( a );
102 }
else if (fpt3 != NULL) {
105 (*pt2Object.*fpt3)(
d[1].c_str() );
106 else (*pt2Object.*fpt3)( (
const char*) NULL );
108 }
else if (fpt4 != NULL) {
110 std::vector< const char* >buf;
111 for (
unsigned int c = 0;
c <
d.size();) {
112 buf.push_back( d[
c].c_str() );
114 if ( !(
c <
d.size() ) )
115 buf.push_back(
" " );
117 (*pt2Object.*fpt4)( &buf[0] );
119 }
else if (fpt5 != NULL) {
122 (*pt2Object.*fpt5)( (
const char*) NULL, (
const char*) NULL );
123 else if (
d.size() < 3)
124 (*pt2Object.*fpt5)(
d[1].c_str(), (
const char*) NULL );
126 (*pt2Object.*fpt5)(
d[1].c_str(),
d[2].c_str() );
128 }
else if (fpt6 != NULL) {
130 (*pt2Object.*fpt6)( isDown );
133 else if (fpt7 != NULL) {
136 (*pt2Object.*fpt7)( 0 );
138 (*pt2Object.*fpt7)( atoi( d[1].c_str() ) );
140 }
else if (fpt8 != NULL) {
144 (*pt2Object.*fpt8)( err );
146 (*pt2Object.*fpt8)( d[1][0] );
149 }
else if (fpt9 != NULL) {
151 std::vector< std::string* >dup;
152 std::vector< std::string >::iterator ptr =
d.begin();
153 while ( ptr <
d.end() ) {
154 dup.push_back( &( *(ptr) ) );
157 (*pt2Object.*fpt9)( &dup );
159 }
else if (fpt10 != NULL) {
161 std::vector< std::string* >dup;
162 std::vector< std::string >::iterator ptr =
d.begin();
163 while ( ptr <
d.end() ) {
164 dup.push_back( &( *(ptr) ) );
167 (*pt2Object.*fpt10)( &dup, sock_in );
169 }
else if (fpt11 != NULL) {
173 for (x = 0; x <
d.size(); x++) {
177 (*pt2Object.*fpt11)( a, sock_in );
179 }
else if (fpt12 != NULL) {
181 std::vector< std::string* >dup;
182 std::vector< std::string >::iterator ptr =
d.begin();
183 while ( ptr <
d.end() ) {
184 dup.push_back( &( *(ptr) ) );
187 (*pt2Object.*fpt12)( &dup, sock_in,
false );
template<class TClass>
void Functor< TClass >::nullify |
( |
) | |
|
|
inline |
The documentation for this class was generated from the following file: