#include <stack.h>
Public Member Functions | |
virtual | ~sub_diversion_stack () |
sub_diversion_stack () | |
void | push_back (const wstring &s, bool resub) |
void | pop_back () |
bool | resub_both () const |
wchar_t | getch () |
void | ungetch (wchar_t c) |
bool | empty () const |
Private Member Functions | |
sub_diversion_stack (const sub_diversion_stack &) | |
sub_diversion_stack & | operator= (const sub_diversion_stack &) |
Private Attributes | |
size_t | top |
size_t | max |
sub_diversion * | stack |
Definition at line 30 of file stack.h.
virtual sub_diversion_stack::~sub_diversion_stack | ( | ) | [virtual] |
The destructor.
sub_diversion_stack::sub_diversion_stack | ( | ) |
The default constructor.
sub_diversion_stack::sub_diversion_stack | ( | const sub_diversion_stack & | ) | [private] |
The copy constructor. Do not use.
void sub_diversion_stack::push_back | ( | const wstring & | s, | |
bool | resub | |||
) |
The push_back method is sued to push another string onto the context stack.
s | The wide string to be pushed onto the diversion stack. | |
resub | Whether or nmot to resubstitute tinto the text of this diversion. |
void sub_diversion_stack::pop_back | ( | ) |
The pop_back method is used to discard to top element of the stack.
bool sub_diversion_stack::resub_both | ( | ) | const |
The resub moth method is used to determine whether ot not to resubstitute into the text of the diversion on the top of the stack.
wchar_t sub_diversion_stack::getch | ( | ) |
The getch method is used to get the next character from the top-most diversion on the stack.
void sub_diversion_stack::ungetch | ( | wchar_t | c | ) |
The ungetch method is used to return a character to the top-most diversion on the stack.
bool sub_diversion_stack::empty | ( | ) | const [inline] |
sub_diversion_stack& sub_diversion_stack::operator= | ( | const sub_diversion_stack & | ) | [private] |
The assignment operator. Do not use.
size_t sub_diversion_stack::top [private] |
size_t sub_diversion_stack::max [private] |
sub_diversion* sub_diversion_stack::stack [private] |