enum.h File Reference

Contains the definition of the Enum and EnumType. More...

#include "vector.h"
Include dependency graph for enum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  EnumType
 Structure that contains an item of the enumeration. More...
 
struct  Enum
 Structure that defines the enumeration type. More...
 

Typedefs

typedef struct EnumType EnumType
 Structure that contains an item of the enumeration. More...
 
typedef struct Enum Enum
 Structure that defines the enumeration type.
 

Functions

void freeEnumType (EnumType *enuty, int freeItself)
 Free the EnumType. More...
 
void freeEnum (Enum *enu, int freeItself)
 Free the Enum. More...
 

Detailed Description

Contains the definition of the Enum and EnumType.

Author
Bastien Philip (ebatsin)
Gaël Foppolo (gaelfoppolo)

Typedef Documentation

typedef struct EnumType EnumType

Structure that contains an item of the enumeration.

Enumerations are arrays of EnumType, each of which contain an item of the enumeration, caracterized by a unique identifier and his name as a string

Function Documentation

void freeEnum ( Enum enu,
int  freeItself 
)

Free the Enum.

Parameters
enuA pointer to the Enum to be freed
freeItselfBoolean to know whether the Enum is to be freed or not

Here is the call graph for this function:

Here is the caller graph for this function:

void freeEnumType ( EnumType enuty,
int  freeItself 
)

Free the EnumType.

Parameters
enutyA pointer to the EnumType to be freed
freeItselfBoolean to know whether the EnumType is to be freed or not
Author
Bastien Philip (ebatsin)
Gaël Foppolo (gaelfoppolo)

Here is the caller graph for this function: