Classes | Namespaces | Functions

variant.hpp File Reference

#include <boost/shared_ptr.hpp>
#include <map>
#include <vector>
#include "exceptions.hpp"
Include dependency graph for variant.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  call_stack_manager
struct  type_error
class  variant
class  variant_iterator
 Iterator class for the variant. More...

Namespaces

namespace  game_logic

Functions

void push_call_stack (const char *str)
void pop_call_stack ()
std::string get_call_stack ()
template<typename T >
T * convert_variant (const variant &v)
template<typename T >
T * try_convert_variant (const variant &v)

Function Documentation

template<typename T >
T* convert_variant ( const variant v  ) 

Definition at line 223 of file variant.hpp.

References variant::mutable_callable().

Here is the call graph for this function:

std::string get_call_stack (  ) 

Definition at line 65 of file variant.cpp.

Referenced by type_error::type_error().

Here is the caller graph for this function:

void pop_call_stack (  ) 

Definition at line 60 of file variant.cpp.

Referenced by call_stack_manager::~call_stack_manager().

Here is the caller graph for this function:

void push_call_stack ( const char *  str  ) 

Definition at line 55 of file variant.cpp.

Referenced by call_stack_manager::call_stack_manager().

Here is the caller graph for this function:

template<typename T >
T* try_convert_variant ( const variant v  ) 

Definition at line 234 of file variant.hpp.

References variant::is_callable(), and variant::mutable_callable().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:07 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs