variant.hpp File Reference

#include <boost/shared_ptr.hpp>
#include <string>
#include <map>
#include <vector>

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.

Namespaces

namespace  game_logic

Classes

struct  call_stack_manager
struct  type_error
class  variant

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  )  [inline]

Definition at line 136 of file variant.hpp.

References variant::mutable_callable().

std::string get_call_stack (  ) 

Definition at line 51 of file variant.cpp.

References call_stack.

Referenced by type_error::type_error().

void pop_call_stack (  ) 

Definition at line 46 of file variant.cpp.

References call_stack.

Referenced by call_stack_manager::~call_stack_manager().

void push_call_stack ( const char *  str  ) 

Definition at line 41 of file variant.cpp.

References call_stack.

Referenced by call_stack_manager::call_stack_manager().

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

Definition at line 146 of file variant.hpp.

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


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs