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

CPPTemplateParameterList Class Reference

#include <cppTemplateParameterList.h>

List of all members.

Public Types

typedef vector< CPPDeclaration * > Parameters

Public Member Functions

 CPPTemplateParameterList ()
string get_string () const
void build_subst_decl (const CPPTemplateParameterList &formal_params, CPPDeclaration::SubstDecl &subst, CPPScope *current_scope, CPPScope *global_scope) const
bool is_fully_specified () const
bool is_tbd () const
bool operator== (const CPPTemplateParameterList &other) const
bool operator!= (const CPPTemplateParameterList &other) const
bool operator< (const CPPTemplateParameterList &other) const
CPPTemplateParameterList * substitute_decl (CPPDeclaration::SubstDecl &subst, CPPScope *current_scope, CPPScope *global_scope)
void output (ostream &out, CPPScope *scope) const
void write_formal (ostream &out, CPPScope *scope) const

Public Attributes

Parameters _parameters


Member Typedef Documentation

typedef vector<CPPDeclaration *> CPPTemplateParameterList::Parameters
 

Definition at line 62 of file cppTemplateParameterList.h.


Constructor & Destructor Documentation

CPPTemplateParameterList::CPPTemplateParameterList  ) 
 

Definition at line 31 of file cppTemplateParameterList.cxx.

Referenced by substitute_decl().


Member Function Documentation

void CPPTemplateParameterList::build_subst_decl const CPPTemplateParameterList &  formal_params,
CPPDeclaration::SubstDecl subst,
CPPScope current_scope,
CPPScope global_scope
const
 

Definition at line 56 of file cppTemplateParameterList.cxx.

References CPPClassTemplateParameter::_default_type, CPPInstance::_initializer, _parameters, CPPDeclaration::as_class_template_parameter(), CPPDeclaration::as_instance(), CPPDeclaration::as_type(), current_scope, global_scope, NULL, CPPType::resolve_type(), CPPDeclaration::substitute_decl(), and CPPExpression::substitute_decl().

Referenced by CPPScope::instantiate(), and CPPInstance::instantiate().

string CPPTemplateParameterList::get_string  )  const
 

Definition at line 40 of file cppTemplateParameterList.cxx.

References ostringstream::str().

bool CPPTemplateParameterList::is_fully_specified  )  const
 

Definition at line 119 of file cppTemplateParameterList.cxx.

References _parameters.

bool CPPTemplateParameterList::is_tbd  )  const
 

Definition at line 136 of file cppTemplateParameterList.cxx.

References _parameters, CPPDeclaration::as_expression(), CPPExpression::is_tbd(), NULL, and type.

Referenced by CPPNameComponent::is_tbd().

bool CPPTemplateParameterList::operator!= const CPPTemplateParameterList &  other  )  const
 

Definition at line 175 of file cppTemplateParameterList.cxx.

bool CPPTemplateParameterList::operator< const CPPTemplateParameterList &  other  )  const
 

Definition at line 185 of file cppTemplateParameterList.cxx.

References _parameters.

bool CPPTemplateParameterList::operator== const CPPTemplateParameterList &  other  )  const
 

Definition at line 157 of file cppTemplateParameterList.cxx.

References _parameters.

void CPPTemplateParameterList::output ostream out,
CPPScope scope
const
 

Definition at line 230 of file cppTemplateParameterList.cxx.

References _parameters.

Referenced by CPPNameComponent::get_name_with_templ(), operator<<(), CPPTemplateScope::output(), and CPPStructType::output().

CPPTemplateParameterList * CPPTemplateParameterList::substitute_decl CPPDeclaration::SubstDecl subst,
CPPScope current_scope,
CPPScope global_scope
 

Definition at line 203 of file cppTemplateParameterList.cxx.

References _parameters, CPPTemplateParameterList(), current_scope, and global_scope.

void CPPTemplateParameterList::write_formal ostream out,
CPPScope scope
const
 

Definition at line 252 of file cppTemplateParameterList.cxx.

References _parameters.

Referenced by CPPStructType::output(), and CPPInstance::output().


Member Data Documentation

Parameters CPPTemplateParameterList::_parameters
 

Definition at line 63 of file cppTemplateParameterList.h.

Referenced by CPPTemplateScope::add_template_parameter(), build_subst_decl(), CPPScope::instantiate(), is_fully_specified(), is_tbd(), CPPPreprocessor::nested_parse_template_instantiation(), operator<(), operator==(), output(), substitute_decl(), and write_formal().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:34:53 2003 for DTool by doxygen1.3