#include <G4AnyMethod.hh>
Public Member Functions | |
| G4AnyMethod () | |
| template<class S, class T> | |
| G4AnyMethod (S(T::*f)()) | |
| template<class S, class T, class A0> | |
| G4AnyMethod (S(T::*f)(A0)) | |
| template<class S, class T, class A0, class A1> | |
| G4AnyMethod (S(T::*f)(A0, A1)) | |
| G4AnyMethod (const G4AnyMethod &other) | |
| ~G4AnyMethod () | |
| G4AnyMethod & | Swap (G4AnyMethod &rhs) |
| template<class S, class T> | |
| G4AnyMethod & | operator= (S(T::*f)()) |
| template<class S, class T, class A0> | |
| G4AnyMethod & | operator= (S(T::*f)(A0)) |
| template<class S, class T, class A0, class A1> | |
| G4AnyMethod & | operator= (S(T::*f)(A0, A1)) |
| G4AnyMethod & | operator= (const G4AnyMethod &rhs) |
| bool | Empty () const |
| void | operator() (void *obj) |
| void | operator() (void *obj, const std::string &a0) |
| size_t | NArg () const |
| const std::type_info & | ArgType (size_t n=0) const |
Data Structures | |
| struct | FuncRef |
| struct | FuncRef1 |
| struct | FuncRef2 |
| class | Placeholder |
Definition at line 67 of file G4AnyMethod.hh.
| G4AnyMethod::G4AnyMethod | ( | ) | [inline] |
| G4AnyMethod::G4AnyMethod | ( | S(T::*)() | f | ) | [inline] |
| G4AnyMethod::G4AnyMethod | ( | S(T::*)(A0) | f | ) | [inline] |
| G4AnyMethod::G4AnyMethod | ( | S(T::*)(A0, A1) | f | ) | [inline] |
| G4AnyMethod::G4AnyMethod | ( | const G4AnyMethod & | other | ) | [inline] |
| G4AnyMethod::~G4AnyMethod | ( | ) | [inline] |
| const std::type_info& G4AnyMethod::ArgType | ( | size_t | n = 0 |
) | const [inline] |
Definition at line 128 of file G4AnyMethod.hh.
References CLHEP::detail::n.
00128 { 00129 return fContent ? fContent->ArgType(n) : typeid(void); 00130 }
| bool G4AnyMethod::Empty | ( | ) | const [inline] |
| size_t G4AnyMethod::NArg | ( | ) | const [inline] |
Number of arguments
Definition at line 126 of file G4AnyMethod.hh.
Referenced by G4GenericMessenger::DeclareMethod().
| void G4AnyMethod::operator() | ( | void * | obj, | |
| const std::string & | a0 | |||
| ) | [inline] |
| void G4AnyMethod::operator() | ( | void * | obj | ) | [inline] |
| G4AnyMethod& G4AnyMethod::operator= | ( | const G4AnyMethod & | rhs | ) | [inline] |
Asigment operator
Definition at line 109 of file G4AnyMethod.hh.
References G4AnyMethod(), and narg.
00109 { 00110 G4AnyMethod(rhs).Swap(*this); 00111 narg = rhs.narg; 00112 return *this; 00113 }
| G4AnyMethod& G4AnyMethod::operator= | ( | S(T::*)(A0, A1) | f | ) | [inline] |
Definition at line 103 of file G4AnyMethod.hh.
References G4AnyMethod().
00103 { 00104 G4AnyMethod(f).Swap(*this); 00105 narg = 1; 00106 return *this; 00107 }
| G4AnyMethod& G4AnyMethod::operator= | ( | S(T::*)(A0) | f | ) | [inline] |
Definition at line 98 of file G4AnyMethod.hh.
References G4AnyMethod().
00098 { 00099 G4AnyMethod(f).Swap(*this); 00100 narg = 1; 00101 return *this; 00102 }
| G4AnyMethod& G4AnyMethod::operator= | ( | S(T::*)() | f | ) | [inline] |
Asignment operator
Definition at line 93 of file G4AnyMethod.hh.
References G4AnyMethod().
00093 { 00094 G4AnyMethod(f).Swap(*this); 00095 narg = 0; 00096 return *this; 00097 }
| G4AnyMethod& G4AnyMethod::Swap | ( | G4AnyMethod & | rhs | ) | [inline] |
1.4.7