The Original CHomP Software
|
A class for storing tabulated configurations of neighbors for various dimensions. More...
#include <tabulate.h>
Public Member Functions | |
Tabulated () | |
The default constructor. More... | |
~Tabulated () | |
The destructor. More... | |
int | read (int dim, const char *filename) |
Reads tabulated configurations from a file. More... | |
int | write (int dim, const char *filename) const |
Writes tabulated configurations to a file. More... | |
int | compute (int dim) |
Computes tabulated configurations for a specific dimension. More... | |
int | define (int dim, char *buffer) |
Sets tabulated configuration bits to a given table. More... | |
const char * | operator[] (int dim) const |
Retrieves the buffer allocated for the specific dimension or returns the null pointer if none. More... | |
Static Public Member Functions | |
static int | get (const char *table, int_t bitnumber) |
Retrieve the given bit from the given table. More... | |
static void | set (char *table, int_t bitnumber) |
Sets the given bit in the given table. More... | |
Private Attributes | |
char * | tables [maxdim] |
The tabulated configurations. More... | |
bool | deallocate [maxdim] |
Should the configuration tables be deallocated? More... | |
int | size [maxdim] |
The size of the table in bytes for each dimension. More... | |
Static Private Attributes | |
static const int | maxdim = 8 |
The strict upper bound for the supported dimensions. More... | |
A class for storing tabulated configurations of neighbors for various dimensions.
Definition at line 50 of file tabulate.h.
chomp::homology::Tabulated::Tabulated | ( | ) |
The default constructor.
chomp::homology::Tabulated::~Tabulated | ( | ) |
The destructor.
int chomp::homology::Tabulated::compute | ( | int | dim | ) |
Computes tabulated configurations for a specific dimension.
|
inline |
Sets tabulated configuration bits to a given table.
Note: This buffer will not be deallocated automatically. Call this function with the null pointer to disable the table.
Definition at line 100 of file tabulate.h.
References deallocate, maxdim, and tables.
|
inlinestatic |
Retrieve the given bit from the given table.
Definition at line 121 of file tabulate.h.
Referenced by chomp::homology::acyclic().
|
inline |
int chomp::homology::Tabulated::read | ( | int | dim, |
const char * | filename | ||
) |
Reads tabulated configurations from a file.
|
inlinestatic |
Sets the given bit in the given table.
Definition at line 129 of file tabulate.h.
int chomp::homology::Tabulated::write | ( | int | dim, |
const char * | filename | ||
) | const |
Writes tabulated configurations to a file.
|
private |
Should the configuration tables be deallocated?
Definition at line 91 of file tabulate.h.
Referenced by define().
|
staticprivate |
The strict upper bound for the supported dimensions.
Definition at line 85 of file tabulate.h.
Referenced by define(), and operator[]().
|
private |
The size of the table in bytes for each dimension.
Definition at line 94 of file tabulate.h.
|
private |
The tabulated configurations.
Definition at line 88 of file tabulate.h.
Referenced by define(), and operator[]().