Canola
0.8.D001
|
#include <program_mode.h>
Public Types | |
typedef boost::shared_ptr < lexer_functor_program_mode > | pointer |
Public Member Functions | |
virtual | ~lexer_functor_program_mode () |
void | do_it (const location::pointer &where) |
Static Public Member Functions | |
static pointer | create (calculator &subject, calculator::program_mode_t program_mode) |
Private Member Functions | |
lexer_functor_program_mode (calculator &subject, calculator::program_mode_t program_mode) | |
lexer_functor_program_mode () | |
lexer_functor_program_mode (const lexer_functor_program_mode &rhs) | |
lexer_functor_program_mode & | operator= (const lexer_functor_program_mode &rhs) |
Private Attributes | |
calculator & | subject |
calculator::program_mode_t | program_mode |
The lexer_functor_program_mode class is used to represent sending program mode setting from keywords seen by the lexer.
Definition at line 28 of file program_mode.h.
typedef boost::shared_ptr<lexer_functor_program_mode> lexer_functor_program_mode::pointer |
Reimplemented from lexer_functor.
Definition at line 32 of file program_mode.h.
lexer_functor_program_mode::~lexer_functor_program_mode | ( | ) | [virtual] |
The destructor.
Definition at line 21 of file program_mode.cc.
lexer_functor_program_mode::lexer_functor_program_mode | ( | calculator & | subject, |
calculator::program_mode_t | program_mode | ||
) | [private] |
The constructor. It is private on purpose, use the create class method instead.
subject | The calculator object to operate upon. |
program_mode | The program mode to switched to. |
Definition at line 26 of file program_mode.cc.
lexer_functor_program_mode::lexer_functor_program_mode | ( | ) | [private] |
The default constructor. Do not use.
lexer_functor_program_mode::lexer_functor_program_mode | ( | const lexer_functor_program_mode & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
lexer_functor_program_mode::pointer lexer_functor_program_mode::create | ( | calculator & | subject, |
calculator::program_mode_t | program_mode | ||
) | [static] |
The create class method is used to create new dynamically allocated instance of this class.
subject | The claculkator object to operate upon. |
program_mode | The program mode to switched to. |
Definition at line 37 of file program_mode.cc.
void lexer_functor_program_mode::do_it | ( | const location::pointer & | where | ) | [virtual] |
The do_it method is provided by each derived class, to actually perform the actions of the functor.
Implements lexer_functor.
Definition at line 45 of file program_mode.cc.
lexer_functor_program_mode& lexer_functor_program_mode::operator= | ( | const lexer_functor_program_mode & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
The fubar instance variable is used to remember the program mode to switched to.
Definition at line 77 of file program_mode.h.
calculator& lexer_functor_program_mode::subject [private] |
The subject instance variable is used to remember the calculator object to operate upon.
Definition at line 71 of file program_mode.h.