Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Friends | List of all members
G4AnyType Class Reference

#include <G4AnyType.hh>

Public Member Functions

 G4AnyType ()
 
template<typename ValueType >
 G4AnyType (ValueType &value)
 
 G4AnyType (const G4AnyType &other)
 
 ~G4AnyType ()
 
 operator bool ()
 
G4AnyTypeSwap (G4AnyType &rhs)
 
template<typename ValueType >
G4AnyTypeoperator= (const ValueType &rhs)
 
G4AnyTypeoperator= (const G4AnyType &rhs)
 
bool Empty () const
 
const std::type_info & TypeInfo () const
 
voidAddress () const
 
std::string ToString () const
 
void FromString (const std::string &val)
 

Friends

template<typename ValueType >
ValueType * any_cast (G4AnyType *)
 

Detailed Description

This class represents any data type. The class only holds a reference to the type and not the value.

Definition at line 61 of file G4AnyType.hh.

Constructor & Destructor Documentation

G4AnyType::G4AnyType ( )
inline

Constructor

Definition at line 64 of file G4AnyType.hh.

Here is the caller graph for this function:

template<typename ValueType >
G4AnyType::G4AnyType ( ValueType &  value)
inline

Constructor

Definition at line 68 of file G4AnyType.hh.

G4AnyType::G4AnyType ( const G4AnyType other)
inline

Copy Constructor

Definition at line 72 of file G4AnyType.hh.

G4AnyType::~G4AnyType ( )
inline

Dtor

Definition at line 76 of file G4AnyType.hh.

Member Function Documentation

void* G4AnyType::Address ( ) const
inline

Adress

Definition at line 108 of file G4AnyType.hh.

bool G4AnyType::Empty ( ) const
inline

Query

Definition at line 100 of file G4AnyType.hh.

Here is the caller graph for this function:

void G4AnyType::FromString ( const std::string &  val)
inline

String conversion

Definition at line 116 of file G4AnyType.hh.

Here is the caller graph for this function:

G4AnyType::operator bool ( )
inline

bool operator

Definition at line 81 of file G4AnyType.hh.

Here is the call graph for this function:

template<typename ValueType >
G4AnyType& G4AnyType::operator= ( const ValueType &  rhs)
inline

Modifier

Definition at line 90 of file G4AnyType.hh.

Here is the call graph for this function:

G4AnyType& G4AnyType::operator= ( const G4AnyType rhs)
inline

Modifier

Definition at line 95 of file G4AnyType.hh.

Here is the call graph for this function:

G4AnyType& G4AnyType::Swap ( G4AnyType rhs)
inline

Modifier

Definition at line 85 of file G4AnyType.hh.

Here is the call graph for this function:

std::string G4AnyType::ToString ( ) const
inline

String conversion

Definition at line 112 of file G4AnyType.hh.

Here is the caller graph for this function:

const std::type_info& G4AnyType::TypeInfo ( ) const
inline

Query

Definition at line 104 of file G4AnyType.hh.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

template<typename ValueType >
ValueType* any_cast ( G4AnyType operand)
friend

representation

value

Definition at line 201 of file G4AnyType.hh.


The documentation for this class was generated from the following file: