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

CPPParameterList Class Reference

#include <cppParameterList.h>

List of all members.

Public Types

typedef vector< CPPInstance * > Parameters

Public Member Functions

 CPPParameterList ()
bool is_equivalent (const CPPParameterList &other) const
 This is similar to operator == except it is more forgiving: it is true if only the length and order of types is the same, never minding the instance names or initial values.

bool operator== (const CPPParameterList &other) const
bool operator!= (const CPPParameterList &other) const
bool operator< (const CPPParameterList &other) const
bool is_tbd () const
 Returns true if any of the types in the parameter list are base on CPPTBDType.

bool is_fully_specified () const
 Returns true if this declaration is an actual, factual declaration, or false if some part of the declaration depends on a template parameter which has not yet been instantiated.

CPPParameterList * substitute_decl (CPPDeclaration::SubstDecl &subst, CPPScope *current_scope, CPPScope *global_scope)
CPPParameterList * resolve_type (CPPScope *current_scope, CPPScope *global_scope)
 Returns an equivalent CPPParameterList, in which all of the individual types have been resolved.

void output (ostream &out, CPPScope *scope, bool parameter_names, int num_default_parameters=-1) const
 If num_default_parameters is >= 0, it indicates the number of default parameter values to show on output.


Public Attributes

Parameters _parameters
bool _includes_ellipsis


Member Typedef Documentation

typedef vector<CPPInstance *> CPPParameterList::Parameters
 

Definition at line 62 of file cppParameterList.h.


Constructor & Destructor Documentation

CPPParameterList::CPPParameterList  ) 
 

Definition at line 34 of file cppParameterList.cxx.

References _includes_ellipsis, and _parameters.


Member Function Documentation

bool CPPParameterList::is_equivalent const CPPParameterList &  other  )  const
 

This is similar to operator == except it is more forgiving: it is true if only the length and order of types is the same, never minding the instance names or initial values.

Definition at line 53 of file cppParameterList.cxx.

bool CPPParameterList::is_fully_specified  )  const
 

Returns true if this declaration is an actual, factual declaration, or false if some part of the declaration depends on a template parameter which has not yet been instantiated.

Definition at line 161 of file cppParameterList.cxx.

Referenced by CPPFunctionType::operator=().

bool CPPParameterList::is_tbd  )  const
 

Returns true if any of the types in the parameter list are base on CPPTBDType.

Definition at line 137 of file cppParameterList.cxx.

Referenced by CPPFunctionType::resolve_type().

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

Definition at line 99 of file cppParameterList.cxx.

References _parameters.

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

Definition at line 111 of file cppParameterList.cxx.

References _parameters.

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

Definition at line 76 of file cppParameterList.cxx.

void CPPParameterList::output ostream &  out,
CPPScope scope,
bool  parameter_names,
int  num_default_parameters = -1
const
 

If num_default_parameters is >= 0, it indicates the number of default parameter values to show on output.

Otherwise, all parameter values are shown.

Definition at line 252 of file cppParameterList.cxx.

Referenced by CPPFunctionType::is_tbd(), and CPPFunctionType::output().

CPPParameterList * CPPParameterList::resolve_type CPPScope current_scope,
CPPScope global_scope
 

Returns an equivalent CPPParameterList, in which all of the individual types have been resolved.

Definition at line 212 of file cppParameterList.cxx.

References _parameters, CPPExpression::_type, NULL, and CPPExpression::output().

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

Definition at line 179 of file cppParameterList.cxx.

References _parameters, CPPInstance::_type, current_scope, global_scope, CPPType::is_tbd(), and CPPType::resolve_type().


Member Data Documentation

bool CPPParameterList::_includes_ellipsis
 

Definition at line 64 of file cppParameterList.h.

Referenced by CPPParameterList().

Parameters CPPParameterList::_parameters
 

Definition at line 63 of file cppParameterList.h.

Referenced by CPPFunctionType::CPPFunctionType(), CPPParameterList(), InterrogateBuilder::get_getter(), TypeManager::is_const_pointer_to_base(), operator!=(), operator<(), CPPFunctionType::output_instance(), resolve_type(), and substitute_decl().


The documentation for this class was generated from the following files:
Generated on Thu May 1 22:13:23 2003 for DTool by doxygen1.3