Canola
0.8.D001
|
#include <opcode.h>
Public Types | |
typedef boost::shared_ptr < lexer_functor_opcode > | pointer |
Public Member Functions | |
virtual | ~lexer_functor_opcode () |
void | do_it (const location::pointer &where) |
Static Public Member Functions | |
static pointer | create (calculator &subject, opcode_t op) |
Private Member Functions | |
lexer_functor_opcode (calculator &subject, opcode_t op) | |
lexer_functor_opcode () | |
lexer_functor_opcode (const lexer_functor_opcode &rhs) | |
lexer_functor_opcode & | operator= (const lexer_functor_opcode &rhs) |
Private Attributes | |
calculator & | subject |
opcode_t | op |
The lexer_functor_opcode class is used to represent the processing required when the lexer sees a keyword that matches an opcode name. It is passed to the calculator::on_opcode method.
typedef boost::shared_ptr<lexer_functor_opcode> lexer_functor_opcode::pointer |
Reimplemented from lexer_functor.
lexer_functor_opcode::~lexer_functor_opcode | ( | ) | [virtual] |
lexer_functor_opcode::lexer_functor_opcode | ( | calculator & | subject, |
opcode_t | op | ||
) | [private] |
lexer_functor_opcode::lexer_functor_opcode | ( | ) | [private] |
The default constructor. Do not use.
lexer_functor_opcode::lexer_functor_opcode | ( | const lexer_functor_opcode & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
lexer_functor_opcode::pointer lexer_functor_opcode::create | ( | calculator & | subject, |
opcode_t | op | ||
) | [static] |
void lexer_functor_opcode::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.
lexer_functor_opcode& lexer_functor_opcode::operator= | ( | const lexer_functor_opcode & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
opcode_t lexer_functor_opcode::op [private] |
calculator& lexer_functor_opcode::subject [private] |