Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Template_thing Class Reference

#include <template.h>

Collaboration diagram for Template_thing:

Collaboration graph
[legend]
List of all members.

Public Methods

 Template_thing ()
void add_args_from_ptree (Ptree *list, Abstract_scope *scope)
void add_type_arg (std::string name)
int get_num_args () const
std::string get_type_arg (int i) const
void set_tree (Ptree *tree)
Ptreeget_tree () const

Private Attributes

std::vector< std::string > arg_names
Ptreetree

Constructor & Destructor Documentation

Template_thing::Template_thing  
 

Definition at line 12 of file template.cc.


Member Function Documentation

void Template_thing::add_args_from_ptree Ptree   list,
Abstract_scope   scope
 

Definition at line 19 of file template.cc.

References add_type_arg(), Ptree::Car(), Ptree::Cdr(), compile_error(), Ptree::Eq(), Ptree::IsLeaf(), Ptree::Second(), and Ptree::ToString().

Referenced by visit_template().

void Template_thing::add_type_arg std::string    name
 

Definition at line 37 of file template.cc.

References arg_names.

Referenced by add_args_from_ptree().

int Template_thing::get_num_args   const
 

Definition at line 45 of file template.cc.

References arg_names.

Referenced by Template_defn_scope::Template_defn_scope().

Ptree * Template_thing::get_tree   const
 

Definition at line 70 of file template.cc.

References tree.

Referenced by Template_class_symbol::get_specialisation().

std::string Template_thing::get_type_arg int    i const
 

Definition at line 53 of file template.cc.

References arg_names.

Referenced by Template_defn_scope::Template_defn_scope().

void Template_thing::set_tree Ptree   tree
 

Definition at line 62 of file template.cc.

Referenced by Template_visitor::declare_class(), and Template_visitor::declare_name().


Member Data Documentation

std::vector<std::string> Template_thing::arg_names [private]
 

Definition at line 24 of file template.h.

Referenced by add_type_arg(), get_num_args(), and get_type_arg().

Ptree* Template_thing::tree [private]
 

Definition at line 25 of file template.h.

Referenced by get_tree().


The documentation for this class was generated from the following files:
Generated on Mon Feb 10 17:36:42 2003 for VFiasco Semantics Compiler by doxygen1.2.15