PUMA Library Reference Manual
|
#include <Puma/CTypeList.h>
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. | |
CTypeInfo * | Entry (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_ArgDeclList * | ArgumentList () 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. | |
|
inline |
Constructor.
len | The initial length of the list. |
|
inline |
Destructor.
|
inline |
Add a type to the list.
type | The type to add. |
|
inline |
Get the argument declaration list for K&R functions.
|
inline |
Set the argument declaration list for K&R functions.
args | The argument declaration list. |
|
inline |
Get the number of types in the list.
|
inline |
Get the n-th type.
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.
|
inline |
Replace the n-th type in the list by the given type.
n | The index of the type to replace. |
type | The new type. |