Jive reference manual
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
jive::util::Table Class Referenceabstract

#include <jive/util/Table.h>

Inheritance diagram for jive::util::Table:
Inheritance graph

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 ItemSetgetRowItems () 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 ClassgetClass () 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< Objectclone () 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< Tablefind (const String &name, const Ref< ItemSet > &items, const Properties &globdat)
 
static Ref< Tableget (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 ClassgetType ()
 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_
 

Detailed Description

Examples:
DataParser.cpp.

Constructor & Destructor Documentation

jive::util::Table::Table ( const String name = "")
explicitprotected
virtual jive::util::Table::~Table ( )
protectedvirtual

Member Function Documentation

virtual String jive::util::Table::getContext ( ) const
virtual

Reimplemented from jem::NamedObject.

virtual idx_t jive::util::Table::size ( ) const
pure virtual
idx_t jive::util::Table::rowCount ( ) const
virtual idx_t jive::util::Table::columnCount ( ) const
pure virtual
bool jive::util::Table::isDense ( ) const
virtual idx_t jive::util::Table::findColumn ( const String name) const
virtual
idx_t jive::util::Table::getColumnIndex ( const String name) const
virtual String jive::util::Table::getColumnName ( idx_t  jcol) const
pure virtual
virtual StringVector jive::util::Table::getColumnNames ( ) const
virtual
virtual ItemSet* jive::util::Table::getRowItems ( ) const
pure virtual
virtual SparseMatrix jive::util::Table::toMatrix ( ) const
pure virtual
virtual idx_t jive::util::Table::getData ( double *  buf,
const idx_t *  irows,
idx_t  icount,
const idx_t *  jcols,
idx_t  jcount 
) const
pure virtual
virtual idx_t jive::util::Table::getAllData ( double *  buf,
idx_t  jst 
) const
pure virtual
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
static String jive::util::Table::getTagName ( const String rowItemName)
static
virtual void jive::util::Table::printTo ( PrintWriter out) const
virtual
static void jive::util::Table::printSome ( PrintWriter out,
const Dictionary tables,
const String tag = "" 
)
static
static void jive::util::Table::printAll ( PrintWriter out,
const Properties globdat 
)
static
static void jive::util::Table::printMatrix ( PrintWriter out,
const SparseMatrix &  mat,
const StringVector colNames,
const IdxVector &  rowIDs 
)
static
static void jive::util::Table::printSection ( PrintWriter out,
const Matrix mat,
const StringVector colNames,
const IdxVector &  rowIDs,
const IdxVector &  rowPerm 
)
static
void jive::util::Table::store ( const Properties globdat) const
void jive::util::Table::store ( const String name,
const Properties globdat 
) const
static Ref<Table> jive::util::Table::find ( const String name,
const Ref< ItemSet > &  items,
const Properties globdat 
)
static
static Ref<Table> jive::util::Table::get ( const String name,
const Ref< ItemSet > &  items,
const Properties globdat,
const String context 
)
static
static Ref<Dict> jive::util::Table::findFor ( const Ref< ItemSet > &  items,
const Properties globdat 
)
static
static Ref<Dict> jive::util::Table::getFor ( const Ref< ItemSet > &  items,
const Properties globdat 
)
static

Member Data Documentation

Event< Self& > jive::util::Table::newValuesEvent
Event< Self& > jive::util::Table::newStructEvent