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

Cstmt Class Reference

The Cstmt State: inside a routine. More...

#include <state.h>

Inheritance diagram for Cstmt:

Inheritance graph
Collaboration diagram for Cstmt:

Collaboration graph
List of all members.

Public Member Functions

 ~Cstmt ()
 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

 Cstmt ()
 Set the name for this class.

Static Private Attributes

static Statemsp_instance = 0
 Singleton data pointer.

Detailed Description

The Cstmt State: inside a routine.

Here we are just inside a routine. Here is where we call RplPattern::replace to insert the traceString into the code.
This class is a singleton. In this way we only construct one Cstmt object, no matter how many times we switch to the Cstmt 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