#include <G4AnyMethod.hh>
|
| 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) |
|
G4bool | Empty () const |
|
void | operator() (void *obj) |
|
void | operator() (void *obj, const std::string &a0) |
|
std::size_t | NArg () const |
|
const std::type_info & | ArgType (size_t n=0) const |
|
Definition at line 67 of file G4AnyMethod.hh.
◆ G4AnyMethod() [1/5]
G4AnyMethod::G4AnyMethod |
( |
| ) |
|
|
inline |
◆ G4AnyMethod() [2/5]
template<class
S , class T >
G4AnyMethod::G4AnyMethod |
( |
S(T::*)() |
f | ) |
|
|
inline |
Definition at line 77 of file G4AnyMethod.hh.
78 {
79 fContent = new FuncRef<S, T>(f);
80 }
◆ G4AnyMethod() [3/5]
template<class
S , class T , class A0 >
G4AnyMethod::G4AnyMethod |
( |
S(T::*)(A0) |
f | ) |
|
|
inline |
Definition at line 83 of file G4AnyMethod.hh.
84 : narg(1)
85 {
86 fContent = new FuncRef1<S, T, A0>(f);
87 }
◆ G4AnyMethod() [4/5]
template<class
S , class T , class A0 , class A1 >
G4AnyMethod::G4AnyMethod |
( |
S(T::*)(A0, A1) |
f | ) |
|
|
inline |
Definition at line 90 of file G4AnyMethod.hh.
91 : narg(2)
92 {
93 fContent = new FuncRef2<S, T, A0, A1>(f);
94 }
◆ G4AnyMethod() [5/5]
Definition at line 96 of file G4AnyMethod.hh.
97 : fContent(other.fContent ? other.fContent->Clone() : nullptr)
98 , narg(other.narg)
99 {}
◆ ~G4AnyMethod()
G4AnyMethod::~G4AnyMethod |
( |
| ) |
|
|
inline |
◆ ArgType()
const std::type_info & G4AnyMethod::ArgType |
( |
size_t |
n = 0 | ) |
const |
|
inline |
Definition at line 160 of file G4AnyMethod.hh.
161 {
162 return fContent ? fContent->ArgType(n) : typeid(void);
163 }
◆ Empty()
G4bool G4AnyMethod::Empty |
( |
| ) |
const |
|
inline |
◆ NArg()
std::size_t G4AnyMethod::NArg |
( |
| ) |
const |
|
inline |
◆ operator()() [1/2]
void G4AnyMethod::operator() |
( |
void * |
obj | ) |
|
|
inline |
call operators
Definition at line 150 of file G4AnyMethod.hh.
150{ fContent->operator()(obj); }
◆ operator()() [2/2]
void G4AnyMethod::operator() |
( |
void * |
obj, |
|
|
const std::string & |
a0 |
|
) |
| |
|
inline |
◆ operator=() [1/4]
Definition at line 137 of file G4AnyMethod.hh.
138 {
140 narg = rhs.narg;
141 return *this;
142 }
◆ operator=() [2/4]
template<class
S , class T >
Assignment operators
Definition at line 115 of file G4AnyMethod.hh.
116 {
118 narg = 0;
119 return *this;
120 }
◆ operator=() [3/4]
template<class
S , class T , class A0 >
Definition at line 123 of file G4AnyMethod.hh.
124 {
126 narg = 1;
127 return *this;
128 }
◆ operator=() [4/4]
template<class
S , class T , class A0 , class A1 >
Definition at line 130 of file G4AnyMethod.hh.
131 {
133 narg = 1;
134 return *this;
135 }
◆ Swap()
Definition at line 105 of file G4AnyMethod.hh.
106 {
107 std::swap(fContent, rhs.fContent);
108 std::swap(narg, rhs.narg);
109 return *this;
110 }
The documentation for this class was generated from the following file: