Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages   Examples  

LabelScope Class Reference
[Utilities]

Inherited by DistContext [virtual], and Simulation [virtual].


Detailed Description

LabelScope provides a scope for a label.

Author:
Ralf Gerstenberger

LabelScope guarantees that every Label that is created in the scope is unique (in the scope).

Since:
1.0


Public Member Functions

 LabelScope (const char *defLabel="noname", char defSpace='_')
 Construction.

std::string createLabel (const char *label="")
 create a unique Label


Protected Attributes

const char * def
char spc
std::map< std::string, unsigned
int > 
lookup


Constructor & Destructor Documentation

LabelScope const char *  defLabel = "noname",
char  defSpace = '_'
 

Construction.

Parameters:
defLabel default label
defSpace default fillchar


Member Function Documentation

string createLabel const char *  label = ""  ) 
 

create a unique Label

Parameters:
label basic part of the label, if left blank the default label is used
createLabel builds a unique label. If there is already an equal label in this scope the new label gets a number.


Generated on Mon Aug 11 10:36:07 2003 for ODEMx by doxygen1.3