Geant4
10.02.p02
|
This class represents any data type. More...
#include <G4AnyType.hh>
Classes | |
class | Placeholder |
class | Ref |
Public Member Functions | |
G4AnyType () | |
Constructor. More... | |
template<typename ValueType > | |
G4AnyType (ValueType &value) | |
Constructor. More... | |
G4AnyType (const G4AnyType &other) | |
Copy Constructor. More... | |
~G4AnyType () | |
Dtor. More... | |
operator bool () | |
bool operator More... | |
G4AnyType & | Swap (G4AnyType &rhs) |
Modifier. More... | |
template<typename ValueType > | |
G4AnyType & | operator= (const ValueType &rhs) |
Modifier. More... | |
G4AnyType & | operator= (const G4AnyType &rhs) |
Modifier. More... | |
bool | Empty () const |
Query. More... | |
const std::type_info & | TypeInfo () const |
Query. More... | |
void * | Address () const |
Adress. More... | |
std::string | ToString () const |
String conversion. More... | |
void | FromString (const std::string &val) |
String conversion. More... | |
Private Attributes | |
Placeholder * | fContent |
representation More... | |
Friends | |
template<typename ValueType > | |
ValueType * | any_cast (G4AnyType *) |
representation More... | |
This class represents any data type.
The class only holds a reference to the type and not the value.
Definition at line 63 of file G4AnyType.hh.
|
inline |
Constructor.
Definition at line 66 of file G4AnyType.hh.
Referenced by operator=().
|
inline |
Constructor.
Definition at line 70 of file G4AnyType.hh.
|
inline |
Copy Constructor.
Definition at line 74 of file G4AnyType.hh.
|
inline |
|
inline |
Adress.
Definition at line 110 of file G4AnyType.hh.
References G4AnyType::Placeholder::Address(), and fContent.
|
inline |
Query.
Definition at line 102 of file G4AnyType.hh.
References fContent.
Referenced by operator bool().
|
inline |
String conversion.
Definition at line 118 of file G4AnyType.hh.
References fContent, and G4AnyType::Placeholder::FromString().
Referenced by G4GenericMessenger::SetNewValue().
|
inline |
bool operator
Definition at line 83 of file G4AnyType.hh.
References Empty().
|
inline |
Modifier.
Definition at line 92 of file G4AnyType.hh.
References G4AnyType().
Modifier.
Definition at line 97 of file G4AnyType.hh.
References G4AnyType().
|
inline |
String conversion.
Definition at line 114 of file G4AnyType.hh.
References fContent, and G4AnyType::Placeholder::ToString().
Referenced by G4GenericMessenger::GetCurrentValue().
|
inline |
Query.
Definition at line 106 of file G4AnyType.hh.
References fContent, and G4AnyType::Placeholder::TypeInfo().
Referenced by any_cast(), G4GenericMessenger::DeclareProperty(), and G4GenericMessenger::DeclarePropertyWithUnit().
|
friend |
representation
Definition at line 213 of file G4AnyType.hh.
|
private |
representation
Definition at line 176 of file G4AnyType.hh.
Referenced by Address(), any_cast(), Empty(), FromString(), Swap(), ToString(), TypeInfo(), and ~G4AnyType().