#include <G4AnyMethod.hh>
|
| G4AnyMethod ()=default |
|
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 |
( |
| ) |
|
|
default |
◆ G4AnyMethod() [2/5]
template<class
S , class T >
G4AnyMethod::G4AnyMethod |
( |
S(T::*)() |
f | ) |
|
|
inline |
Definition at line 76 of file G4AnyMethod.hh.
77 {
78 fContent = new FuncRef<S, T>(f);
79 }
◆ G4AnyMethod() [3/5]
template<class
S , class T , class A0 >
G4AnyMethod::G4AnyMethod |
( |
S(T::*)(A0) |
f | ) |
|
|
inline |
Definition at line 82 of file G4AnyMethod.hh.
83 : narg(1)
84 {
85 fContent = new FuncRef1<S, T, A0>(f);
86 }
◆ G4AnyMethod() [4/5]
template<class
S , class T , class A0 , class A1 >
G4AnyMethod::G4AnyMethod |
( |
S(T::*)(A0, A1) |
f | ) |
|
|
inline |
Definition at line 89 of file G4AnyMethod.hh.
90 : narg(2)
91 {
92 fContent = new FuncRef2<S, T, A0, A1>(f);
93 }
◆ G4AnyMethod() [5/5]
Definition at line 95 of file G4AnyMethod.hh.
96 : fContent(other.fContent != nullptr ? other.fContent->Clone() : nullptr)
97 , narg(other.narg)
98 {}
◆ ~G4AnyMethod()
G4AnyMethod::~G4AnyMethod |
( |
| ) |
|
|
inline |
◆ ArgType()
const std::type_info & G4AnyMethod::ArgType |
( |
size_t |
n = 0 | ) |
const |
|
inline |
◆ Empty()
G4bool G4AnyMethod::Empty |
( |
| ) |
const |
|
inline |
Query
Definition at line 145 of file G4AnyMethod.hh.
145{ return fContent == nullptr; }
◆ NArg()
std::size_t G4AnyMethod::NArg |
( |
| ) |
const |
|
inline |
◆ operator()() [1/2]
void G4AnyMethod::operator() |
( |
void * |
obj | ) |
|
|
inline |
call operators
Definition at line 149 of file G4AnyMethod.hh.
149{ fContent->operator()(obj); }
◆ operator()() [2/2]
void G4AnyMethod::operator() |
( |
void * |
obj, |
|
|
const std::string & |
a0 |
|
) |
| |
|
inline |
◆ operator=() [1/4]
Definition at line 136 of file G4AnyMethod.hh.
137 {
139 narg = rhs.narg;
140 return *this;
141 }
◆ operator=() [2/4]
template<class
S , class T >
Assignment operators
Definition at line 114 of file G4AnyMethod.hh.
115 {
117 narg = 0;
118 return *this;
119 }
◆ operator=() [3/4]
template<class
S , class T , class A0 >
Definition at line 122 of file G4AnyMethod.hh.
123 {
125 narg = 1;
126 return *this;
127 }
◆ operator=() [4/4]
template<class
S , class T , class A0 , class A1 >
Definition at line 129 of file G4AnyMethod.hh.
130 {
132 narg = 1;
133 return *this;
134 }
◆ Swap()
Definition at line 104 of file G4AnyMethod.hh.
105 {
106 std::swap(fContent, rhs.fContent);
107 std::swap(narg, rhs.narg);
108 return *this;
109 }
The documentation for this class was generated from the following file: