Public Member Functions | Protected Attributes | List of all members
Stringlet Class Reference

A helper class for StringMapper. More...

#include <StringMapper.h>

Inheritance diagram for Stringlet:
Inheritance graph
[legend]
Collaboration diagram for Stringlet:
Collaboration graph
[legend]

Public Member Functions

 Stringlet (const std::string &s="", bool isVariable=false)
 
 Stringlet (const Stringlet &s)
 Copy constructor.
 
bool isVariable () const
 
void setVariable (bool isVariable=true)
 
void setLiteral (const std::string &s)
 

Protected Attributes

bool isVar
 

Detailed Description

A helper class for StringMapper.

Stringlet is a std::string that is used literally or as a variable, ie. a key pointing to a map. When a StringMapper parses a given std::string, it splits the std::string to segments containing literals and variables, in turn. The result is stored in a list.


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