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 13 of file CACell.h.

Member Function Documentation

◆ getCAState()

unsigned char CACellStatus::getCAState ( ) const
inline

Definition at line 15 of file CACell.h.

15 { return theCAState; }

References theCAState.

◆ isRootCell()

bool CACellStatus::isRootCell ( const unsigned int  minimumCAState) const
inline

Definition at line 20 of file CACell.h.

20 { return (theCAState >= minimumCAState); }

References theCAState.

◆ updateState()

void CACellStatus::updateState ( )
inline

Definition at line 18 of file CACell.h.

References hasSameStateNeighbors, and theCAState.

Member Data Documentation

◆ hasSameStateNeighbors

unsigned char CACellStatus::hasSameStateNeighbors = 0

Definition at line 24 of file CACell.h.

Referenced by updateState().

◆ theCAState

unsigned char CACellStatus::theCAState = 0

Definition at line 23 of file CACell.h.

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

CACellStatus::hasSameStateNeighbors
unsigned char hasSameStateNeighbors
Definition: CACell.h:24
CACellStatus::theCAState
unsigned char theCAState
Definition: CACell.h:23