Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
SparseTable Class Reference

#include <SparseTable.h>

Inheritance diagram for SparseTable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void add (vector< int > CI, SparseEntry se)
bool checkNoMissingEntries (vector< int > &commonIndex)
bool containsCI (string word)
void convertForUse ()
bool errorInProbabilities (vector< vector< int > > &commonIndices, vector< double > &probs)
vector< string > findIntersectingCI (SharedPointer< SparseTable > st)
unsigned int findPosition (string word)
int getCIPosition (string str)
string getInfo ()
vector< int > getIterBegin ()
vector< int > getIterPosition ()
bool getNext (SparseEntry &se)
bool getNextCI (vector< int > &CI)
vector< SparseEntry > & getSparseEntries (vector< int > commonIndex)
void removeRedundant ()
SharedPointer< SparseTableremoveUnmatchedCI (int cIIndex, int uIIndex)
void resetIterator ()
int size ()
void sortEntries ()
 SparseTable (vector< string > cIheader, vector< string > uIheader, vector< int > numCIValues, vector< int > numUIvalues)
 SparseTable (SparseTable &B)
void swapCIHeaders (int i, int j)
void swapSparseColumns (int i, int j)
void write (std::ostream &out)
 ~SparseTable ()

Static Public Member Functions

static SharedPointer< SparseTablejoin (SparseTable &A, SparseTable &B, int whichFunction)
static SharedPointer< SparseTablejoinHeader (SparseTable &A, SparseTable &B, int &numCommonIndexes)
static SparseEntry mergeSparseEntry (SparseEntry &A, SparseEntry &B, int numCommonIndexes)

Public Attributes

vector< string > cIheader
vector< int > numCIValues
vector< int > numUIValues
vector< string > uIheader

Private Member Functions

vector< int > getCommonIndex (int)
int getTableIndex (vector< int >)

Private Attributes

int * mapIn
int * mapOut
size_t numOfRows
vector< int > position
int rowPosition
SparseRowtable

Detailed Description

Definition at line 37 of file SparseTable.h.


Constructor & Destructor Documentation

SparseTable::SparseTable ( vector< string >  cIheader,
vector< string >  uIheader,
vector< int >  numCIValues,
vector< int >  numUIvalues 
)

Definition at line 42 of file SparseTable.cpp.

Definition at line 73 of file SparseTable.cpp.

Definition at line 185 of file SparseTable.cpp.


Member Function Documentation

void SparseTable::add ( vector< int >  CI,
SparseEntry  se 
)

Definition at line 263 of file SparseTable.cpp.

bool SparseTable::checkNoMissingEntries ( vector< int > &  commonIndex)

Definition at line 268 of file SparseTable.cpp.

bool SparseTable::containsCI ( string  word)

Definition at line 527 of file SparseTable.cpp.

Definition at line 279 of file SparseTable.cpp.

bool SparseTable::errorInProbabilities ( vector< vector< int > > &  commonIndices,
vector< double > &  probs 
)

Definition at line 131 of file SparseTable.cpp.

Definition at line 504 of file SparseTable.cpp.

unsigned int SparseTable::findPosition ( string  word)

Definition at line 519 of file SparseTable.cpp.

int SparseTable::getCIPosition ( string  str)
vector< int > SparseTable::getCommonIndex ( int  index) [private]

Definition at line 238 of file SparseTable.cpp.

Definition at line 543 of file SparseTable.cpp.

vector< int > SparseTable::getIterBegin ( )

Definition at line 120 of file SparseTable.cpp.

vector< int > SparseTable::getIterPosition ( )

Definition at line 124 of file SparseTable.cpp.

Definition at line 147 of file SparseTable.cpp.

bool SparseTable::getNextCI ( vector< int > &  CI)

Definition at line 169 of file SparseTable.cpp.

vector< SparseEntry > & SparseTable::getSparseEntries ( vector< int >  commonIndex)

Definition at line 258 of file SparseTable.cpp.

int SparseTable::getTableIndex ( vector< int >  commonIndex) [private]

Definition at line 219 of file SparseTable.cpp.

SharedPointer< SparseTable > SparseTable::join ( SparseTable A,
SparseTable B,
int  whichFunction 
) [static]

Definition at line 403 of file SparseTable.cpp.

SharedPointer< SparseTable > SparseTable::joinHeader ( SparseTable A,
SparseTable B,
int &  numCommonIndexes 
) [static]

Definition at line 340 of file SparseTable.cpp.

SparseEntry SparseTable::mergeSparseEntry ( SparseEntry A,
SparseEntry B,
int  numCommonIndexes 
) [static]

Definition at line 469 of file SparseTable.cpp.

Definition at line 289 of file SparseTable.cpp.

SharedPointer< SparseTable > SparseTable::removeUnmatchedCI ( int  cIIndex,
int  uIIndex 
)

Definition at line 295 of file SparseTable.cpp.

Definition at line 113 of file SparseTable.cpp.

int SparseTable::size ( void  )

Definition at line 535 of file SparseTable.cpp.

Definition at line 192 of file SparseTable.cpp.

void SparseTable::swapCIHeaders ( int  i,
int  j 
)

Definition at line 198 of file SparseTable.cpp.

void SparseTable::swapSparseColumns ( int  i,
int  j 
)

Definition at line 479 of file SparseTable.cpp.

void SparseTable::write ( std::ostream &  out)

Definition at line 558 of file SparseTable.cpp.


Member Data Documentation

vector<string> SparseTable::cIheader

Definition at line 45 of file SparseTable.h.

int* SparseTable::mapIn [private]

Definition at line 91 of file SparseTable.h.

int* SparseTable::mapOut [private]

Definition at line 92 of file SparseTable.h.

Definition at line 47 of file SparseTable.h.

size_t SparseTable::numOfRows [private]

Definition at line 93 of file SparseTable.h.

Definition at line 48 of file SparseTable.h.

vector<int> SparseTable::position [private]

Definition at line 94 of file SparseTable.h.

int SparseTable::rowPosition [private]

Definition at line 95 of file SparseTable.h.

Definition at line 90 of file SparseTable.h.

vector<string> SparseTable::uIheader

Definition at line 46 of file SparseTable.h.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30