Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Precompiler::Macros Struct Reference

a structure handling the macros. More...

#include <macros.h>

List of all members.

Public Types

typedef std::list< MacroTagmacro_tag_list
typedef std::list< MacroTag
>::iterator 
macro_tag_list_it

Public Methods

 Macros ()
void add (Line &line)
 adds a macro. More...

bool get_soft_definition (std::string name, Macro &macro)
 returns the macros definition. More...

bool get_hard_definition (std::string name, Macro &macro)
 returns the macro definition. More...

bool get_soft (std::string name, Macro &macro)
 returns the soft macro. More...

bool get_definition (std::string name, Macro &macro)
 returns the macro definition or not. More...

void override (Line &line)

Public Attributes

macro_tag_list soft_definitions
macro_tag_list hard_definitions
macro_tag_list soft
int soft_definitions_num
 count the number of soft macros definitions. More...

int hard_definitions_num
 count the number of hard macros definitions. More...

int soft_num
 count the number of soft macros. More...


Detailed Description

a structure handling the macros.


Member Typedef Documentation

typedef std::list<MacroTag> Precompiler::Macros::macro_tag_list
 

typedef std::list<MacroTag>::iterator Precompiler::Macros::macro_tag_list_it
 


Constructor & Destructor Documentation

Macros::Macros   [inline]
 


Member Function Documentation

void Macros::add Line   line
 

adds a macro.

the function function identifies itself to which list a macro should be added

bool Macros::get_definition std::string    name,
Macro   macro
[inline]
 

returns the macro definition or not.

bool Macros::get_hard_definition std::string    name,
Macro   macro
 

returns the macro definition.

bool Macros::get_soft std::string    name,
Macro   macro
 

returns the soft macro.

bool Macros::get_soft_definition std::string    name,
Macro   macro
 

returns the macros definition.

void Macros::override Line   line
 


Member Data Documentation

macro_tag_list Precompiler::Macros::hard_definitions
 

int Precompiler::Macros::hard_definitions_num
 

count the number of hard macros definitions.

macro_tag_list Precompiler::Macros::soft
 

macro_tag_list Precompiler::Macros::soft_definitions
 

int Precompiler::Macros::soft_definitions_num
 

count the number of soft macros definitions.

int Precompiler::Macros::soft_num
 

count the number of soft macros.


The documentation for this struct was generated from the following files:
Generated on Tue Nov 20 02:19:54 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001