Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

Neutral Class Reference

The Neutral State: Outside of a routine. More...

#include <state.h>

Inheritance diagram for Neutral:

Inheritance graph
[legend]
Collaboration diagram for Neutral:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~Neutral ()
 do Nothing.
State_t execute (AddTraceString &ats, CxxScanner &scanner, Token *t)
 See Class description.

Static Public Member Functions

static StateInstance ()
 Return the singleton, uses lazy evaluation.

Protected Member Functions

 Neutral ()
 Set the name for this class.

Static Private Attributes

static Statemsp_instance = 0
 Singleton data pointer.

Detailed Description

The Neutral State: Outside of a routine.

Description
Here we are mostly looking for the start of routines by looking at ID token. We are also looking for operator functions (operator+(), etc) Here is also where we build the function name and look for classes.
This class is a singleton. In this way we only construct one neutral object, no matter how many times we switch to the Neutral state.

There is almost no data assocated with this class, the state context class (in this case AddTraceString) has the data.


The documentation for this class was generated from the following files:



Project Hosted By:
SourceForge.net Logo