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

StaticVar Class Reference

Inside a Static Variable declaration. More...

#include <state.h>

Inheritance diagram for StaticVar:

Inheritance graph
Collaboration diagram for StaticVar:

Collaboration graph
List of all members.

Public Member Functions

 ~StaticVar ()
 Do nothing Dtor.
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

 StaticVar ()
 Set the name for this class.

Static Private Attributes

static Statemsp_instance = 0
 Singleton data pointer.

Detailed Description

Inside a Static Variable declaration.

We look at each token waiting for the semicolon so we can go back to the neutral state.
This class is a singleton. In this way we only construct one StaticVar object, no matter how many times we switch to the StaticVar 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: Logo