Puma Reference Manual Puma: Puma::CTypeList Class Reference



Puma::CTypeList Class Reference

List of types. More...

#include <Puma/CTypeList.h>

List of all members.

Public Member Functions

 CTypeList (int len=3)
 Constructor.
 ~CTypeList ()
 Destructor.
unsigned Entries () const
 Get the number of types in the list.
CTypeInfoEntry (unsigned n) const
 Get the n-th type.
void ReplaceEntry (unsigned n, CTypeInfo *type)
 Replace the n-th type in the list by the given type.
CT_ArgDeclListArgumentList () const
 Get the argument declaration list for K&R functions.
void ArgumentList (CT_ArgDeclList *args)
 Set the argument declaration list for K&R functions.
void AddEntry (CTypeInfo *type)
 Add a type to the list.
bool isDependent () const
 Check if one of the types in the list depends on a template parameter.

Detailed Description

List of types.

Used for instance for the list of function parameter types.


Constructor & Destructor Documentation

Puma::CTypeList::CTypeList ( int  len = 3  )  [inline]

Constructor.

Parameters:
len The initial length of the list.
Puma::CTypeList::~CTypeList (  )  [inline]

Destructor.


Member Function Documentation

void Puma::CTypeList::AddEntry ( CTypeInfo type  )  [inline]

Add a type to the list.

Parameters:
type The type to add.
void Puma::CTypeList::ArgumentList ( CT_ArgDeclList args  )  [inline]

Set the argument declaration list for K&R functions.

Parameters:
args The argument declaration list.
CT_ArgDeclList * Puma::CTypeList::ArgumentList (  )  const [inline]

Get the argument declaration list for K&R functions.

unsigned Puma::CTypeList::Entries (  )  const [inline]

Get the number of types in the list.

CTypeInfo * Puma::CTypeList::Entry ( unsigned  n  )  const [inline]

Get the n-th type.

Parameters:
n The index of the type.
bool Puma::CTypeList::isDependent (  )  const

Check if one of the types in the list depends on a template parameter.

void Puma::CTypeList::ReplaceEntry ( unsigned  n,
CTypeInfo type 
) [inline]

Replace the n-th type in the list by the given type.

Parameters:
n The index of the type to replace.
type The new type.



Puma Reference Manual. Created on 11 Sep 2009.