PUMA Library Reference Manual
Puma::CTypeList Class Reference

#include <Puma/CTypeList.h>

Description

List of types. Used for instance for the list of function parameter types.

Public Member Functions

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

Constructor & Destructor Documentation

◆ CTypeList()

Puma::CTypeList::CTypeList ( int  len = 1)
inline

Constructor.

Parameters
lenThe initial length of the list.

◆ ~CTypeList()

Puma::CTypeList::~CTypeList ( )
inline

Destructor.

Member Function Documentation

◆ AddEntry()

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

Add a type to the list.

Parameters
typeThe type to add.

◆ ArgumentList() [1/2]

CT_ArgDeclList * Puma::CTypeList::ArgumentList ( ) const
inline

Get the argument declaration list for K&R functions.

◆ ArgumentList() [2/2]

void Puma::CTypeList::ArgumentList ( CT_ArgDeclList args)
inline

Set the argument declaration list for K&R functions.

Parameters
argsThe argument declaration list.

◆ Entries()

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

Get the number of types in the list.

◆ Entry()

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

Get the n-th type.

Parameters
nThe index of the type.

◆ isDependent()

bool Puma::CTypeList::isDependent ( ) const

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

◆ ReplaceEntry()

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

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

Parameters
nThe index of the type to replace.
typeThe new type.