Jive reference manual
|
#include <jive/util/Table.h>
Public Member Functions | |
virtual String | getContext () const |
virtual idx_t | size () const =0 |
idx_t | rowCount () const |
virtual idx_t | columnCount () const =0 |
bool | isDense () const |
virtual idx_t | findColumn (const String &name) const |
idx_t | getColumnIndex (const String &name) const |
virtual String | getColumnName (idx_t jcol) const =0 |
virtual StringVector | getColumnNames () const |
virtual ItemSet * | getRowItems () const =0 |
virtual SparseMatrix | toMatrix () const =0 |
virtual idx_t | getData (double *buf, const idx_t *irows, idx_t icount, const idx_t *jcols, idx_t jcount) const =0 |
virtual idx_t | getAllData (double *buf, idx_t jst) const =0 |
bool | findValue (double &value, idx_t irow, idx_t jcol) const |
double | getValue (idx_t irow, idx_t jcol) const |
idx_t | findBlock (const Matrix &block, const IdxVector &irows, const IdxVector &jcols) const |
void | getBlock (const Matrix &block, const IdxVector &irows, const IdxVector &jcols) const |
idx_t | findRowValues (const Vector &rvals, idx_t irow, const IdxVector &jcols) const |
void | getRowValues (const Vector &rvals, idx_t irow, const IdxVector &jcols) const |
idx_t | findColValues (const Vector &cvals, const IdxVector &irows, idx_t jcol) const |
void | getColValues (const Vector &cvals, const IdxVector &irows, idx_t jcol) const |
idx_t | findAllValues (const Matrix &buf) const |
void | getAllValues (const Matrix &buf) const |
String | getTagName () const |
virtual void | printTo (PrintWriter &out) const |
void | store (const Properties &globdat) const |
void | store (const String &name, const Properties &globdat) const |
Public Member Functions inherited from jem::NamedObject | |
NamedObject (const String &name="") | |
virtual String | toString () const |
Returns a short textual description of this object. More... | |
String | getName () const |
Public Member Functions inherited from jem::Object | |
virtual Class * | getClass () const |
Returns the Class instance representing the runtime class of this object. More... | |
virtual long | hashValue () const |
Returns a hash value for this object. More... | |
virtual bool | equals (const Ref< Object > &obj) const |
Tests whether two objects are equal. More... | |
Ref< Object > | clone () const |
Returns a copy of this object. More... | |
Public Member Functions inherited from jive::util::EventSource | |
virtual void | resetEvents ()=0 |
Static Public Member Functions | |
static String | getTagName (const String &rowItemName) |
static void | printSome (PrintWriter &out, const Dictionary &tables, const String &tag="") |
static void | printAll (PrintWriter &out, const Properties &globdat) |
static void | printMatrix (PrintWriter &out, const SparseMatrix &mat, const StringVector &colNames, const IdxVector &rowIDs) |
static void | printSection (PrintWriter &out, const Matrix &mat, const StringVector &colNames, const IdxVector &rowIDs, const IdxVector &rowPerm) |
static Ref< Table > | find (const String &name, const Ref< ItemSet > &items, const Properties &globdat) |
static Ref< Table > | get (const String &name, const Ref< ItemSet > &items, const Properties &globdat, const String &context) |
static Ref< Dict > | findFor (const Ref< ItemSet > &items, const Properties &globdat) |
static Ref< Dict > | getFor (const Ref< ItemSet > &items, const Properties &globdat) |
Static Public Member Functions inherited from jem::NamedObject | |
static String | makeContext (const String &kind, const String &name) |
Static Public Member Functions inherited from jem::Object | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
Public Attributes | |
Event< Self & > | newValuesEvent |
Event< Self & > | newStructEvent |
Protected Member Functions | |
Table (const String &name="") | |
virtual | ~Table () |
Protected Member Functions inherited from jem::NamedObject | |
virtual | ~NamedObject () |
Protected Member Functions inherited from jem::Collectable | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
Protected Member Functions inherited from jive::util::EventSource | |
virtual | ~EventSource () |
virtual void | emitEvents_ (int events)=0 |
Protected Member Functions inherited from jem::Interface | |
virtual | ~Interface () |
Empty destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from jem::NamedObject | |
String | myName_ |
|
explicitprotected |
|
protectedvirtual |
|
virtual |
Reimplemented from jem::NamedObject.
|
pure virtual |
Implemented in jive::util::DenseTable, and jive::util::SparseTable.
idx_t jive::util::Table::rowCount | ( | ) | const |
|
pure virtual |
Implemented in jive::util::DenseTable, and jive::util::SparseTable.
bool jive::util::Table::isDense | ( | ) | const |
|
virtual |
Reimplemented in jive::util::SparseTable, and jive::util::DenseTable.
idx_t jive::util::Table::getColumnIndex | ( | const String & | name | ) | const |
|
pure virtual |
Implemented in jive::util::SparseTable, and jive::util::DenseTable.
|
virtual |
Reimplemented in jive::util::SparseTable, and jive::util::DenseTable.
|
pure virtual |
Implemented in jive::util::SparseTable, and jive::util::DenseTable.
|
pure virtual |
Implemented in jive::util::SparseTable, and jive::util::DenseTable.
|
pure virtual |
Implemented in jive::util::SparseTable, and jive::util::DenseTable.
|
pure virtual |
Implemented in jive::util::SparseTable, and jive::util::DenseTable.
bool jive::util::Table::findValue | ( | double & | value, |
idx_t | irow, | ||
idx_t | jcol | ||
) | const |
double jive::util::Table::getValue | ( | idx_t | irow, |
idx_t | jcol | ||
) | const |
idx_t jive::util::Table::findBlock | ( | const Matrix & | block, |
const IdxVector & | irows, | ||
const IdxVector & | jcols | ||
) | const |
void jive::util::Table::getBlock | ( | const Matrix & | block, |
const IdxVector & | irows, | ||
const IdxVector & | jcols | ||
) | const |
idx_t jive::util::Table::findRowValues | ( | const Vector & | rvals, |
idx_t | irow, | ||
const IdxVector & | jcols | ||
) | const |
void jive::util::Table::getRowValues | ( | const Vector & | rvals, |
idx_t | irow, | ||
const IdxVector & | jcols | ||
) | const |
idx_t jive::util::Table::findColValues | ( | const Vector & | cvals, |
const IdxVector & | irows, | ||
idx_t | jcol | ||
) | const |
void jive::util::Table::getColValues | ( | const Vector & | cvals, |
const IdxVector & | irows, | ||
idx_t | jcol | ||
) | const |
idx_t jive::util::Table::findAllValues | ( | const Matrix & | buf | ) | const |
void jive::util::Table::getAllValues | ( | const Matrix & | buf | ) | const |
String jive::util::Table::getTagName | ( | ) | const |
|
virtual |
|
static |
|
static |
|
static |
|
static |
void jive::util::Table::store | ( | const Properties & | globdat | ) | const |
void jive::util::Table::store | ( | const String & | name, |
const Properties & | globdat | ||
) | const |
|
static |
|
static |
|
static |
|
static |
Event< Self& > jive::util::Table::newValuesEvent |
Event< Self& > jive::util::Table::newStructEvent |