n-Dimensional Fast Methods  0.7
 All Classes Functions Variables Typedefs Pages
Cell Class Reference

#include <cell.h>

Inheritance diagram for Cell:

Public Member Functions

 Cell ()
 Default constructor: sets value_ to -1 and occupancy_ to true (clear cell, not occupied).
 
 Cell (double v, double o=1)
 
virtual void setValue (double v)
 
virtual void setOccupancy (double o)
 
virtual std::string type ()
 
virtual void setIndex (int i)
 
virtual void setDefault ()
 Sets default values for the cell. Concretely, restarts value_ = -1 but occupancy_ is not modified.
 
virtual double getValue () const
 
virtual double getOccupancy () const
 
virtual unsigned int getIndex () const
 
virtual bool isOccupied () const
 

Protected Attributes

double value_
 Value of the cell.
 
double occupancy_
 Binary occupancy, true means clear, false occupied.
 
unsigned int index_
 

Friends

std::ostream & operator<< (std::ostream &os, Cell &c)
 

Detailed Description

Todo:
No checks are done (out of bounds, etc) to improve efficienty. Overload functions to add optional input checking.

Definition at line 34 of file cell.h.

Member Data Documentation

unsigned int Cell::index_
protected

within the grid. Useful when used in heaps.

Definition at line 71 of file cell.h.


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