KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
semantics::Cell Class Referenceabstract

#include <Cell_base_classes.h>

Inheritance diagram for semantics::Cell:
semantics::Context_cell_base semantics::Marginal_cell_base semantics::Context_cell< T, N > semantics::Marginal_cell< T, N > semantics::Prior_cell< T >

Public Types

typedef boost::shared_ptr< CellSelf_ptr
 
typedef std::vector< size_t > Step_sizes
 

Public Member Functions

const size_t & count () const
 get current count in this cell More...
 
const size_t & table_count () const
 get number of "tables" in this cell More...
 
virtual const
Categorical_event_base
key () const =0
 return variable values in this cell More...
 
virtual void increment ()
 increment count More...
 
virtual void decrement ()
 decrement count More...
 
virtual void increment_table_count ()
 increment table count More...
 
virtual void decrement_table_count ()
 decrement table count More...
 

Static Public Attributes

static bool VERBOSE = false
 

Protected Member Functions

 Cell ()
 default ctor More...
 
virtual ~Cell ()
 virtual destructor More...
 

Protected Attributes

size_t count_
 
size_t table_count_
 

Member Typedef Documentation

typedef boost::shared_ptr<Cell> semantics::Cell::Self_ptr
typedef std::vector<size_t> semantics::Cell::Step_sizes

Constructor & Destructor Documentation

semantics::Cell::Cell ( )
inlineprotected

default ctor

virtual semantics::Cell::~Cell ( )
inlineprotectedvirtual

virtual destructor

Member Function Documentation

const size_t& semantics::Cell::count ( ) const
inline

get current count in this cell

virtual void semantics::Cell::decrement ( )
inlinevirtual

decrement count

virtual void semantics::Cell::decrement_table_count ( )
inlinevirtual

decrement table count

Reimplemented in semantics::Marginal_cell< T, N >.

virtual void semantics::Cell::increment ( )
inlinevirtual

increment count

virtual void semantics::Cell::increment_table_count ( )
inlinevirtual

increment table count

Reimplemented in semantics::Marginal_cell< T, N >.

virtual const Categorical_event_base& semantics::Cell::key ( ) const
pure virtual

return variable values in this cell

Implemented in semantics::Context_cell< T, N >, semantics::Marginal_cell< T, N >, and semantics::Prior_cell< T >.

const size_t& semantics::Cell::table_count ( ) const
inline

get number of "tables" in this cell

Member Data Documentation

size_t semantics::Cell::count_
protected
size_t semantics::Cell::table_count_
protected
bool semantics::Cell::VERBOSE = false
static

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