|
Aegis
4.25.D505
|
#include <diversion.h>
Public Member Functions | |
| virtual | ~sub_diversion () |
| sub_diversion () | |
| sub_diversion (const wstring &arg1, bool arg2=false) | |
| sub_diversion (const sub_diversion &) | |
| sub_diversion & | operator= (const sub_diversion &) |
| bool | resub_both () const |
| wchar_t | getch () |
| void | ungetch (wchar_t wc) |
Private Attributes | |
| size_t | pos |
| wstring | text |
| bool | resubstitute |
The sub_diversion class is used to represent the state of a substitution diversion.
Definition at line 31 of file diversion.h.
| virtual sub_diversion::~sub_diversion | ( | ) | [virtual] |
The destructor.
The default constructor.
| sub_diversion::sub_diversion | ( | const wstring & | arg1, |
| bool | arg2 = false |
||
| ) |
The constructor.
| arg1 | The text of this diversion. |
| arg2 | Wether or not to rescan the text of this diversion for more substitutions. |
| sub_diversion::sub_diversion | ( | const sub_diversion & | ) |
The copy constructor.
The getch method is used to get the next character from the diversion.
| sub_diversion& sub_diversion::operator= | ( | const sub_diversion & | ) |
The assignment operator.
| bool sub_diversion::resub_both | ( | ) | const [inline] |
Definition at line 65 of file diversion.h.
| void sub_diversion::ungetch | ( | wchar_t | wc | ) |
The ungetch method is used to return a chaaracter to the diversion, fo re-reading at a later time.
size_t sub_diversion::pos [private] |
The pos instance variable is used to remember where in the "text" the read point is up to.
Definition at line 92 of file diversion.h.
bool sub_diversion::resubstitute [private] |
The resubstitute instance variable is used to remember whether or not this diversion is to be reinterpreted by the scanner.
Definition at line 104 of file diversion.h.
wstring sub_diversion::text [private] |
The text instance variable is used to remember text of this diversion.
Definition at line 98 of file diversion.h.
1.7.6.1