Main Page | Modules | Alphabetical List | Compound List | File List | Compound Members | Related Pages

state< T >::transition_struct Struct Reference

structure to hold transition. More...

#include <state.hpp>

List of all members.

Public Member Functions

 transition_struct ()
 default constructor.

 transition_struct (T new_write, typename std::vector< state< T > >::size_type new_next_state, typename infinite_tape< T >::direction new_move)
 construct a transition_struct from the proper data members

void print (std::ostream &out) const
 displays a transition.


Public Attributes

write
std::vector< state< T
> >::size_type 
next_state
infinite_tape< T >::direction move


Detailed Description

template<typename T>
struct state< T >::transition_struct

structure to hold transition.

Definition at line 214 of file state.hpp.


Constructor & Destructor Documentation

template<typename T>
state< T >::transition_struct::transition_struct  )  [inline]
 

default constructor.

Author:
Kyle Ross

Definition at line 220 of file state.hpp.

template<typename T>
state< T >::transition_struct::transition_struct new_write,
typename std::vector< state< T > >::size_type  new_next_state,
typename infinite_tape< T >::direction  new_move
[inline]
 

construct a transition_struct from the proper data members

Parameters:
new_write write symbol
new_next_state next state to transition to
new_move direction to move
Author:
Kyle Ross

Definition at line 230 of file state.hpp.


Member Function Documentation

template<typename T>
void state< T >::transition_struct::print std::ostream &  out  )  const [inline]
 

displays a transition.

Precondition:
the state has printable values
Postcondition:
the state has been displayed in the format "write("<write-value>") move("<left-or-right-or-do_nothing>") nextstate("<next-state-ID-num>")"
Author:
Kyle Ross

Definition at line 240 of file state.hpp.


The documentation for this struct was generated from the following file:
Generated on Thu Nov 20 00:17:33 2003 for BusyBeaver by doxygen 1.3.3