Util::DG< T > Class Template Reference

Debug global variables storage - Very ugly but so useful! More...

#include <DebugGlobals.h>

Inheritance diagram for Util::DG< T >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

void add (const std::string &name, T v)
T & operator() (const std::string &name)
template<class U >
getAs (const std::string &name)
 Convinience methot for getting an object downcast into type U.
template<class U >
reinterpretAs (const std::string &name)
 Convinience methot for getting an object reinterpreted into type U.

Protected Types

typedef std::pair< std::string, T > Pair
typedef std::map< std::string, T > Map

Protected Attributes

Map map


Detailed Description

template<typename T>
class Util::DG< T >

Debug global variables storage - Very ugly but so useful!

Version:
1 - Very basic & under dev

Definition at line 45 of file DebugGlobals.h.


Member Typedef Documentation

template<typename T >
typedef std::map<std::string, T> Util::DG< T >::Map [protected]

Definition at line 65 of file DebugGlobals.h.

template<typename T >
typedef std::pair<std::string, T> Util::DG< T >::Pair [protected]

Definition at line 64 of file DebugGlobals.h.


Member Function Documentation

template<typename T >
void Util::DG< T >::add ( const std::string &  name,
v 
) [inline]

Definition at line 47 of file DebugGlobals.h.

template<typename T >
template<class U >
U Util::DG< T >::getAs ( const std::string &  name  )  [inline]

Convinience methot for getting an object downcast into type U.

Definition at line 57 of file DebugGlobals.h.

template<typename T >
T& Util::DG< T >::operator() ( const std::string &  name  )  [inline]

Definition at line 49 of file DebugGlobals.h.

References THROW_TRACED_FMT_EXCEPTION.

template<typename T >
template<class U >
U Util::DG< T >::reinterpretAs ( const std::string &  name  )  [inline]

Convinience methot for getting an object reinterpreted into type U.

Definition at line 61 of file DebugGlobals.h.


Member Data Documentation

template<typename T >
Map Util::DG< T >::map [protected]

Definition at line 66 of file DebugGlobals.h.


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

Generated on Sun Jan 17 11:39:37 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9