PUMA Library Reference Manual
Loading...
Searching...
No Matches
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.
 
 ~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.
 

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.