Back to index

Classes | Functions
generic_tree.hpp File Reference
#include "tree.hpp"
#include "blackbox.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  generic_rep
struct  convert_helper< T, F >
struct  convert_helper< tree, F >
struct  convert_helper< T, tree >


blackbox as_blackbox (const tree &t)
template<typename T >
bool is (const tree &t)
template<typename T , typename F >
T as (const F &t)

Function Documentation

template<typename T , typename F >
T as ( const F &  t) [inline]

Definition at line 50 of file generic_tree.hpp.

  return convert_helper<F,T>::op (t); }

Here is the call graph for this function:

blackbox as_blackbox ( const tree t) [inline]

Definition at line 27 of file generic_tree.hpp.

  return ((generic_rep*) t.rep) -> data;

Here is the caller graph for this function:

template<typename T >
bool is ( const tree t) [inline]

Definition at line 48 of file generic_tree.hpp.

  return ((int) L(t)) == type_helper<T>::id; }