vsrl_token Class Reference

#include <vsrl_token.h>

Inheritance diagram for vsrl_token:

vsrl_intensity_token vsrl_null_token List of all members.

Detailed Description

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_tokenget_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_tokenassigned_token_
double x_
 the x position
double y_
 the y position

Constructor & Destructor Documentation

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.


Member Function Documentation

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]

get the index of this token.

Definition at line 44 of file vsrl_token.h.

void vsrl_token::set_index ( int  index  )  [inline]

set the index of this token.

Definition at line 47 of file vsrl_token.h.

vsrl_token* vsrl_token::get_assigned_token (  )  [inline]

get the assigned token.

Definition at line 50 of file vsrl_token.h.

void vsrl_token::set_assigned_token ( vsrl_token tok  )  [inline]

set the assigned token.

Definition at line 53 of file vsrl_token.h.

void vsrl_token::set_position ( double  x,
double  y 
) [inline]

set the x and y position.

Definition at line 56 of file vsrl_token.h.

void vsrl_token::get_position ( double &  x,
double &  y 
) [inline]

get the x and y position.

Definition at line 59 of file vsrl_token.h.

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.


Member Data Documentation

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]

the x position

Definition at line 20 of file vsrl_token.h.

double vsrl_token::y_ [private]

the y position

Definition at line 21 of file vsrl_token.h.


The documentation for this class was generated from the following file:
Generated on Mon Mar 8 05:24:40 2010 for contrib/gel/vsrl by  doxygen 1.5.1