#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 64 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 70 of file G4AnyMethod.hh.
71 {
72 fContent = new FuncRef<S, T>(f);
73 }
◆ G4AnyMethod() [3/5]
template<class
S , class T , class A0 >
G4AnyMethod::G4AnyMethod |
( |
S(T::* | f )(A0) | ) |
|
|
inline |
Definition at line 76 of file G4AnyMethod.hh.
76 : narg(1)
77 {
78 fContent = new FuncRef1<S, T, A0>(f);
79 }
◆ G4AnyMethod() [4/5]
template<class
S , class T , class A0 , class A1 >
G4AnyMethod::G4AnyMethod |
( |
S(T::* | f )(A0, A1) | ) |
|
|
inline |
Definition at line 82 of file G4AnyMethod.hh.
82 : narg(2)
83 {
84 fContent = new FuncRef2<S, T, A0, A1>(f);
85 }
◆ G4AnyMethod() [5/5]
Definition at line 87 of file G4AnyMethod.hh.
88 : fContent(other.fContent != nullptr ? other.fContent->Clone() : nullptr), narg(other.narg)
89 {}
◆ ~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 132 of file G4AnyMethod.hh.
132{ 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 136 of file G4AnyMethod.hh.
136{ fContent->operator()(obj); }
◆ operator()() [2/2]
void G4AnyMethod::operator() |
( |
void * | obj, |
|
|
const std::string & | a0 ) |
|
inline |
◆ operator=() [1/4]
Definition at line 123 of file G4AnyMethod.hh.
124 {
126 narg = rhs.narg;
127 return *this;
128 }
◆ operator=() [2/4]
template<class
S , class T >
Definition at line 101 of file G4AnyMethod.hh.
102 {
104 narg = 0;
105 return *this;
106 }
◆ operator=() [3/4]
template<class
S , class T , class A0 >
Definition at line 109 of file G4AnyMethod.hh.
110 {
112 narg = 1;
113 return *this;
114 }
◆ operator=() [4/4]
template<class
S , class T , class A0 , class A1 >
Definition at line 116 of file G4AnyMethod.hh.
117 {
119 narg = 1;
120 return *this;
121 }
◆ Swap()
The documentation for this class was generated from the following file: