The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

 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 238 of file variant.hpp.

References variant::mutable_callable().

std::string get_call_stack ( )

Definition at line 64 of file variant.cpp.

References i.

Referenced by type_error::type_error().

void pop_call_stack ( )

Definition at line 59 of file variant.cpp.

Referenced by call_stack_manager::~call_stack_manager().

void push_call_stack ( const char *  str)

Definition at line 54 of file variant.cpp.

Referenced by call_stack_manager::call_stack_manager().

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

Definition at line 249 of file variant.hpp.

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