CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CACellStatus Class Reference

#include <CACell.h>

Public Member Functions

unsigned char getCAState () const
 
bool isRootCell (const unsigned int minimumCAState) const
 
void updateState ()
 

Public Attributes

unsigned char hasSameStateNeighbors =0
 
unsigned char theCAState =0
 

Detailed Description

Definition at line 12 of file CACell.h.

Member Function Documentation

unsigned char CACellStatus::getCAState ( ) const
inline

Definition at line 16 of file CACell.h.

References theCAState.

Referenced by CACell::evolve().

16  {
17  return theCAState;
18  }
unsigned char theCAState
Definition: CACell.h:30
bool CACellStatus::isRootCell ( const unsigned int  minimumCAState) const
inline

Definition at line 25 of file CACell.h.

References theCAState.

25  {
26  return (theCAState >= minimumCAState);
27  }
unsigned char theCAState
Definition: CACell.h:30
void CACellStatus::updateState ( )
inline

Definition at line 21 of file CACell.h.

References hasSameStateNeighbors, and theCAState.

21  {
23  }
unsigned char theCAState
Definition: CACell.h:30
unsigned char hasSameStateNeighbors
Definition: CACell.h:31

Member Data Documentation

unsigned char CACellStatus::hasSameStateNeighbors =0

Definition at line 31 of file CACell.h.

Referenced by updateState().

unsigned char CACellStatus::theCAState =0

Definition at line 30 of file CACell.h.

Referenced by getCAState(), isRootCell(), and updateState().