Canola  0.8.D001
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
lexer_functor_program_mode Class Reference

#include <program_mode.h>

Inheritance diagram for lexer_functor_program_mode:
lexer_functor

List of all members.

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_modeoperator= (const lexer_functor_program_mode &rhs)

Private Attributes

calculatorsubject
calculator::program_mode_t program_mode

Detailed Description

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.


Member Typedef Documentation

Reimplemented from lexer_functor.

Definition at line 32 of file program_mode.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 21 of file program_mode.cc.

The constructor. It is private on purpose, use the create class method instead.

Parameters:
subjectThe calculator object to operate upon.
program_modeThe program mode to switched to.

Definition at line 26 of file program_mode.cc.

The default constructor. Do not use.

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

The create class method is used to create new dynamically allocated instance of this class.

Parameters:
subjectThe claculkator object to operate upon.
program_modeThe 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.

Parameters:
rhsThe right hand side of the assignment.

Member Data Documentation

The fubar instance variable is used to remember the program mode to switched to.

Definition at line 77 of file program_mode.h.

The subject instance variable is used to remember the calculator object to operate upon.

Definition at line 71 of file program_mode.h.


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