Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simthlib::ShiftRegisterM Class Reference

#include <trellis.h>

Inheritance diagram for simthlib::ShiftRegisterM:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ShiftRegisterM (int symbolsPerStep, int bitsPerSymbol, const simth::checkedVector< int > &octalPolynomials, int recursivePolynomial=0, int inbits=1)
virtual ~ShiftRegisterM ()
virtual int getNextState (int inputPattern, int oldState) const
virtual int getOutput (int input, int state) const
virtual int getRecursive (int newState) const
virtual int tailsteps () const

Protected Member Functions

void binaryState2symbolState (int binState, simth::checkedVector< int > &symbolStates) const
int symbolState2binaryState (const simth::checkedVector< int > &symbolStates) const
void shiftVector (simth::checkedVector< int > &vec, int increment) const
int getRecursive (const simth::checkedVector< int > &symbolStates) const

Detailed Description

This class implements a shift register where the additions are not done modulo 2, but where the additions done modulo M.


Constructor & Destructor Documentation

simthlib::ShiftRegisterM::ShiftRegisterM int  symbolsPerStep,
int  bitsPerSymbol,
const simth::checkedVector< int > &  octalPolynomials,
int  recursivePolynomial = 0,
int  inbits = 1
 

Constructor

virtual simthlib::ShiftRegisterM::~ShiftRegisterM  )  [inline, virtual]
 


Member Function Documentation

void simthlib::ShiftRegisterM::binaryState2symbolState int  binState,
simth::checkedVector< int > &  symbolStates
const [protected]
 

virtual int simthlib::ShiftRegisterM::getNextState int  inputPattern,
int  oldState
const [virtual]
 

Computates the next state of a shift register according to a given input, and a given previous state.

Implements simthlib::ShiftRegister.

virtual int simthlib::ShiftRegisterM::getOutput int  input,
int  state
const [virtual]
 

Computes the output of the shift register according to a given state and input.

Implements simthlib::ShiftRegister.

virtual int simthlib::ShiftRegisterM::getRecursive int  newState  )  const [virtual]
 

Implements simthlib::ShiftRegister.

int simthlib::ShiftRegisterM::getRecursive const simth::checkedVector< int > &  symbolStates  )  const [protected]
 

void simthlib::ShiftRegisterM::shiftVector simth::checkedVector< int > &  vec,
int  increment
const [protected]
 

int simthlib::ShiftRegisterM::symbolState2binaryState const simth::checkedVector< int > &  symbolStates  )  const [protected]
 

virtual int simthlib::ShiftRegisterM::tailsteps  )  const [virtual]
 

Implements simthlib::ShiftRegister.


Generated on Tue Aug 9 14:39:43 2005 for simtheticlib by  doxygen 1.4.1