#include <G4AnyType.hh>
Definition at line 63 of file G4AnyType.hh.
◆ G4AnyType() [1/3]
◆ G4AnyType() [2/3]
template<typename ValueType >
G4AnyType::G4AnyType |
( |
ValueType & |
value | ) |
|
|
inline |
Definition at line 73 of file G4AnyType.hh.
74 : fContent(new Ref<ValueType>(value))
75 {}
◆ G4AnyType() [3/3]
G4AnyType::G4AnyType |
( |
const G4AnyType & |
other | ) |
|
|
inline |
Copy Constructor
Definition at line 79 of file G4AnyType.hh.
80 : fContent(other.fContent ? other.fContent->Clone() : 0)
81 {}
◆ ~G4AnyType()
G4AnyType::~G4AnyType |
( |
| ) |
|
|
inline |
◆ Address()
void * G4AnyType::Address |
( |
| ) |
const |
|
inline |
Address
Definition at line 123 of file G4AnyType.hh.
123{ return fContent ? fContent->Address() : 0; }
◆ Empty()
G4bool G4AnyType::Empty |
( |
| ) |
const |
|
inline |
◆ FromString()
void G4AnyType::FromString |
( |
const std::string & |
val | ) |
|
|
inline |
◆ operator bool()
G4AnyType::operator bool |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
template<typename ValueType >
G4AnyType & G4AnyType::operator= |
( |
const ValueType & |
rhs | ) |
|
|
inline |
◆ Swap()
Modifiers
Definition at line 93 of file G4AnyType.hh.
94 {
95 std::swap(fContent, rhs.fContent);
96 return *this;
97 }
◆ ToString()
std::string G4AnyType::ToString |
( |
| ) |
const |
|
inline |
◆ TypeInfo()
const std::type_info & G4AnyType::TypeInfo |
( |
| ) |
const |
|
inline |
◆ any_cast
template<typename ValueType >
representation
value
Definition at line 256 of file G4AnyType.hh.
257{
258 return operand && operand->
TypeInfo() ==
typeid(ValueType)
259 ? &static_cast<G4AnyType::Ref<ValueType>*>(operand->fContent)->fRef
260 : nullptr;
261}
const std::type_info & TypeInfo() const
The documentation for this class was generated from the following file: