Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsCodingStateMachine Class Reference

#include <nsCodingStateMachine.h>

Collaboration diagram for nsCodingStateMachine:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsCodingStateMachine (SMModel *sm)
nsSMState NextState (char c)
PRUint32 GetCurrentCharLen (void)
void Reset (void)
const char * GetCodingStateMachine ()

Protected Attributes

nsSMState mCurrentState
PRUint32 mCurrentCharLen
PRUint32 mCurrentBytePos
SMModelmModel

Detailed Description

Definition at line 60 of file nsCodingStateMachine.h.


Constructor & Destructor Documentation

Definition at line 62 of file nsCodingStateMachine.h.

                                   {
          mCurrentState = eStart;
          mModel = sm;
        };

Member Function Documentation

Definition at line 82 of file nsCodingStateMachine.h.

{return mModel->name;};

Here is the caller graph for this function:

Definition at line 80 of file nsCodingStateMachine.h.

{return mCurrentCharLen;};

Here is the caller graph for this function:

Definition at line 66 of file nsCodingStateMachine.h.

                             {
    //for each byte we get its class , if it is first byte, we also get byte length
    PRUint32 byteCls = GETCLASS(c);
    if (mCurrentState == eStart)
    { 
      mCurrentBytePos = 0; 
      mCurrentCharLen = mModel->charLenTable[byteCls];
    }
    //from byte's class and stateTable, we get its next state
    mCurrentState=(nsSMState)GETFROMPCK(mCurrentState*(mModel->classFactor)+byteCls,
                                       mModel->stateTable);
    mCurrentBytePos++;
    return mCurrentState;
  };

Here is the caller graph for this function:

Definition at line 81 of file nsCodingStateMachine.h.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 87 of file nsCodingStateMachine.h.

Definition at line 86 of file nsCodingStateMachine.h.

Definition at line 82 of file nsCodingStateMachine.h.

Definition at line 89 of file nsCodingStateMachine.h.


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