class STable : public Table

Data type STable

Inheritance:


Public Methods

STable(int dim, int connections_per_row = 3)
Creates table with fixed number of connections.
STable(int dim, const int *connections_per_row)
Creates table with variable number of connections.
int operator) (int i, int j) const
Returns index of the connection between element i of TYPE I and element j of TYPE II
int Push( int i, int j )
Establish connection between element i and element j in the table
~STable()
Destroys STable.

Inherited from Table:

Public Methods

void SetSize(int dim, int connections_per_row)
inline int Size() const
inline int Size_of_connections() const
void GetRow(int i, Array<int> &row) const
void Finalize()
void Print(ostream & out = cout, int width = 4)

Protected Fields

int size
int* I

Documentation

Data type STable. STable is similar to Table, but it's for symmetric connectivity, i.e. TYPE I is equivalent to TYPE II. In the first dimension we put the elements with smaller index. *
STable(int dim, int connections_per_row = 3)
Creates table with fixed number of connections.

STable(int dim, const int *connections_per_row)
Creates table with variable number of connections.

int operator) (int i, int j) const
Returns index of the connection between element i of TYPE I and element j of TYPE II. If there is no connection between element i and element j established in the table, then the return value is -1. *

int Push( int i, int j )
Establish connection between element i and element j in the table. The return value is the index of the connection. It returns -1 if it fails to establish the connection. Possibilities are there is not enough memory on row i to establish connection to j, an attempt to establish new connection after calling Finalize(). *

~STable()
Destroys STable.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de