#include <vsrl_token.h>
Inheritance diagram for vsrl_token:

Definition at line 15 of file vsrl_token.h.
Public Member Functions | |
| vsrl_token () | |
| virtual | ~vsrl_token () |
| virtual bool | null_token () |
| does this token represent a null assignment?. | |
| virtual bool | intensity_token () |
| is this token an intensity token ?. | |
| virtual double | cost (vsrl_token *) |
| what is the direct cost of assigning this token to tok. | |
| virtual double | incremental_cost (vsrl_token *, vsrl_token *, vsrl_token *) |
| what is the incremental cost of going from from this to tok2 given the assignment going from tok_p to tok_2p. | |
| int | get_index () const |
| get the index of this token. | |
| void | set_index (int index) |
| set the index of this token. | |
| vsrl_token * | get_assigned_token () |
| get the assigned token. | |
| void | set_assigned_token (vsrl_token *tok) |
| set the assigned token. | |
| void | set_position (double x, double y) |
| set the x and y position. | |
| void | get_position (double &x, double &y) |
| get the x and y position. | |
| double | get_x () const |
| double | get_y () const |
Private Attributes | |
| int | index_ |
| vsrl_token * | assigned_token_ |
| double | x_ |
| the x position | |
| double | y_ |
| the y position | |
| vsrl_token::vsrl_token | ( | ) | [inline] |
Definition at line 26 of file vsrl_token.h.
| virtual vsrl_token::~vsrl_token | ( | ) | [inline, virtual] |
Definition at line 29 of file vsrl_token.h.
| virtual bool vsrl_token::null_token | ( | ) | [inline, virtual] |
does this token represent a null assignment?.
Reimplemented in vsrl_null_token.
Definition at line 32 of file vsrl_token.h.
| virtual bool vsrl_token::intensity_token | ( | ) | [inline, virtual] |
is this token an intensity token ?.
Reimplemented in vsrl_intensity_token.
Definition at line 35 of file vsrl_token.h.
| virtual double vsrl_token::cost | ( | vsrl_token * | ) | [inline, virtual] |
what is the direct cost of assigning this token to tok.
Reimplemented in vsrl_intensity_token, and vsrl_null_token.
Definition at line 38 of file vsrl_token.h.
| virtual double vsrl_token::incremental_cost | ( | vsrl_token * | , | |
| vsrl_token * | , | |||
| vsrl_token * | ||||
| ) | [inline, virtual] |
what is the incremental cost of going from from this to tok2 given the assignment going from tok_p to tok_2p.
Definition at line 41 of file vsrl_token.h.
| int vsrl_token::get_index | ( | ) | const [inline] |
| void vsrl_token::set_index | ( | int | index | ) | [inline] |
| vsrl_token* vsrl_token::get_assigned_token | ( | ) | [inline] |
| void vsrl_token::set_assigned_token | ( | vsrl_token * | tok | ) | [inline] |
| void vsrl_token::set_position | ( | double | x, | |
| double | y | |||
| ) | [inline] |
| void vsrl_token::get_position | ( | double & | x, | |
| double & | y | |||
| ) | [inline] |
| double vsrl_token::get_x | ( | ) | const [inline] |
Definition at line 61 of file vsrl_token.h.
| double vsrl_token::get_y | ( | ) | const [inline] |
Definition at line 62 of file vsrl_token.h.
int vsrl_token::index_ [private] |
Definition at line 17 of file vsrl_token.h.
vsrl_token* vsrl_token::assigned_token_ [private] |
Definition at line 18 of file vsrl_token.h.
double vsrl_token::x_ [private] |
double vsrl_token::y_ [private] |
1.5.1