Jive reference manual
|
This namespace contains various classes and functions for storing and manipulating frequently used data structures. More...
Typedefs | |
typedef ::jem::Array< double > | Vector |
A type representing a one-dimensional array of doubles. More... | |
typedef ::jem::Array< double, 2 > | Matrix |
A type representing a two-dimensional array of doubles. More... | |
typedef ::jem::Array< double, 3 > | Cubix |
A type representing a three-dimensional array of doubles. More... | |
typedef ::jem::Array< int > | IntVector |
A type representing a one-dimensional array of integers. More... | |
typedef ::jem::Array< int, 2 > | IntMatrix |
A type representing a two-dimensional array of integers. More... | |
typedef ::jem::Array< int, 3 > | IntCubix |
A type representing a three-dimensional array of integers. More... | |
typedef ::jem::Array< bool > | BoolVector |
A type representing a one-dimensional array of booleans. More... | |
typedef ::jem::Array< bool, 2 > | BoolMatrix |
A type representing a two-dimensional array of booleans. More... | |
typedef ::jem::Array< jem::String > | StringVector |
A type representing a one-dimensional array of strings. More... | |
typedef ConstraintsParser | ConParser |
typedef jem::numeric::SparseStructure | Topology |
typedef ObjectConverter | ObjConverter |
typedef jem::Array< Topology > | TopoVector |
typedef jem::mp::Context | MPContext |
Enumerations | |
enum | StorageMode { DEFAULT_STORAGE = 0, COMPACT_STORAGE, MINIMAL_STORAGE } |
Functions | |
template<class T > | |
void | swap (Assignable< T > &lhs, Assignable< T > &rhs) |
void | setSlaveDofs (const Vector &vec, const Constraints &cons) |
void | setSlaveDofs (const Vector &vec, const Constraints &cons, double rscale) |
void | zeroSlaveDofs (const Vector &vec, const Constraints &cons) |
void | evalSlaveDofs (const Vector &vec, const Constraints &cons) |
void | evalSlaveDofs (const Vector &vec, const Constraints &cons, double rscale) |
void | evalMasterDofs (const Vector &vec, const Constraints &cons) |
template<class Input > | |
void | decode (Input &in, DatabaseSkin &dbase) |
template<class Output > | |
void | encode (Output &out, const DatabaseSkin &dbase) |
template<class Output > | |
void | print (Output &out, const DatabaseSkin &dbase) |
bool | operator== (const Nil &lhs, const DatabaseSkin &rhs) |
bool | operator!= (const Nil &lhs, const DatabaseSkin &rhs) |
Ref< DummyItemSet > | newDummyItemSet (StorageMode mode=MINIMAL_STORAGE) |
Ref< DummyItemSet > | newDummyItemSet (const String &name, const String &item="item", StorageMode mode=MINIMAL_STORAGE) |
void | indexError (const String &context, idx_t index, idx_t ubound) |
void | indexError (const String &context, const String &name, idx_t index, idx_t ubound) |
void | sizeError (const String &context, const String &name, idx_t actualSize, idx_t formalSize) |
void | shapeError (const String &context, const String &name, const jem::Tuple< idx_t, 2 > &actualShape, const jem::Tuple< idx_t, 2 > &formalShape) |
void | shapeError (const String &context, const String &name, const jem::Tuple< idx_t, 3 > &actualShape, const jem::Tuple< idx_t, 3 > &formalShape) |
void | shapeError (const String &context, const String &name, const jem::Tuple< idx_t, 4 > &actualShape, const jem::Tuple< idx_t, 4 > &formalShape) |
void | nonSquareMatrixError (const String &context, const jem::Tuple< idx_t, 2 > &shape) |
void | nonSquareMatrixError (const String &context, const String &name, const jem::Tuple< idx_t, 2 > &shape) |
void | classCastError (const String &context, const String &actualType, const String &formalType) |
template<class Input > | |
void | decode (Input &in, ItemGroupSkin &group) |
template<class Output > | |
void | encode (Output &out, const ItemGroupSkin &group) |
template<class Output > | |
void | print (Output &out, const ItemGroupSkin &group) |
bool | operator== (const Nil &lhs, const ItemGroupSkin &rhs) |
bool | operator!= (const Nil &lhs, const ItemGroupSkin &rhs) |
template<class Input > | |
void | decode (Input &in, ItemSetSkin &items) |
template<class Output > | |
void | encode (Output &out, const ItemSetSkin &items) |
template<class Output > | |
void | print (Output &out, const ItemSetSkin &items) |
bool | operator== (const Nil &lhs, const ItemSetSkin &rhs) |
bool | operator!= (const Nil &lhs, const ItemSetSkin &rhs) |
template<class T , int N> | |
void | reorder (jem::Array< T, N > &data, const Reordering &reord, T fill=T()) |
template<class T , int N> | |
void | reorder (jem::Array< T, N > &data, idx_t idim, const Reordering &reord, T fill=T()) |
Reordering | makeEraseReordering (const IdxVector &imask, idx_t osize) |
StorageMode | getStorageMode (const String &mstr) |
bool | getStorageMode (StorageMode &mode, const String &mstr) |
bool | getStorageMode (StorageMode &mode, const Properties &conf, const Properties &props) |
String | joinNames (const String &first, const String &second) |
String | expandString (const String &str, const Properties &globdat) |
bool | isGzipFile (const String &fname) |
void | printIntList (PrintWriter &out, const IdxVector &ilist, const char *sep=" ") |
IdxVector | makeUnique (const IdxVector &ivec) |
IdxVector | makeUnique (const IdxVector &ivec, idx_t lbound, idx_t ubound) |
IdxVector | sortColors (const IdxVector &iperm, const IdxVector &colors) |
IdxVector | sortColors (const IdxVector &iperm, const IdxVector &colors, idx_t minColor, idx_t maxColor) |
Ref< XItemMap > | newXItemMap (StorageMode mode=DEFAULT_STORAGE) |
Variables | |
const int | STORAGE_MODE_COUNT |
const char * | STORAGE_MODES [] |
const char * | STORAGE_MODE_PROP |
const Dots | dots |
The namespace jive::util contains various classes and functions for storing and manipulating frequently used data structures. This package is used by all other packages in Jive.
All classes and functions in this namespace can be found in the package jive.util.
typedef jem::Array<Topology> jive::util::TopoVector |
void jive::util::swap | ( | Assignable< T > & | lhs, |
Assignable< T > & | rhs | ||
) |
void jive::util::setSlaveDofs | ( | const Vector & | vec, |
const Constraints & | cons | ||
) |
void jive::util::setSlaveDofs | ( | const Vector & | vec, |
const Constraints & | cons, | ||
double | rscale | ||
) |
void jive::util::zeroSlaveDofs | ( | const Vector & | vec, |
const Constraints & | cons | ||
) |
void jive::util::evalSlaveDofs | ( | const Vector & | vec, |
const Constraints & | cons | ||
) |
void jive::util::evalSlaveDofs | ( | const Vector & | vec, |
const Constraints & | cons, | ||
double | rscale | ||
) |
void jive::util::evalMasterDofs | ( | const Vector & | vec, |
const Constraints & | cons | ||
) |
void jive::util::decode | ( | Input & | in, |
DatabaseSkin & | dbase | ||
) |
void jive::util::encode | ( | Output & | out, |
const DatabaseSkin & | dbase | ||
) |
void jive::util::print | ( | Output & | out, |
const DatabaseSkin & | dbase | ||
) |
bool jive::util::operator== | ( | const Nil & | lhs, |
const DatabaseSkin & | rhs | ||
) |
bool jive::util::operator!= | ( | const Nil & | lhs, |
const DatabaseSkin & | rhs | ||
) |
Ref<DummyItemSet> jive::util::newDummyItemSet | ( | StorageMode | mode = MINIMAL_STORAGE | ) |
Ref<DummyItemSet> jive::util::newDummyItemSet | ( | const String & | name, |
const String & | item = "item" , |
||
StorageMode | mode = MINIMAL_STORAGE |
||
) |
void jive::util::indexError | ( | const String & | context, |
idx_t | index, | ||
idx_t | ubound | ||
) |
void jive::util::indexError | ( | const String & | context, |
const String & | name, | ||
idx_t | index, | ||
idx_t | ubound | ||
) |
void jive::util::sizeError | ( | const String & | context, |
const String & | name, | ||
idx_t | actualSize, | ||
idx_t | formalSize | ||
) |
void jive::util::shapeError | ( | const String & | context, |
const String & | name, | ||
const jem::Tuple< idx_t, 2 > & | actualShape, | ||
const jem::Tuple< idx_t, 2 > & | formalShape | ||
) |
void jive::util::shapeError | ( | const String & | context, |
const String & | name, | ||
const jem::Tuple< idx_t, 3 > & | actualShape, | ||
const jem::Tuple< idx_t, 3 > & | formalShape | ||
) |
void jive::util::shapeError | ( | const String & | context, |
const String & | name, | ||
const jem::Tuple< idx_t, 4 > & | actualShape, | ||
const jem::Tuple< idx_t, 4 > & | formalShape | ||
) |
void jive::util::nonSquareMatrixError | ( | const String & | context, |
const jem::Tuple< idx_t, 2 > & | shape | ||
) |
void jive::util::nonSquareMatrixError | ( | const String & | context, |
const String & | name, | ||
const jem::Tuple< idx_t, 2 > & | shape | ||
) |
void jive::util::classCastError | ( | const String & | context, |
const String & | actualType, | ||
const String & | formalType | ||
) |
void jive::util::decode | ( | Input & | in, |
ItemGroupSkin & | group | ||
) |
void jive::util::encode | ( | Output & | out, |
const ItemGroupSkin & | group | ||
) |
void jive::util::print | ( | Output & | out, |
const ItemGroupSkin & | group | ||
) |
bool jive::util::operator== | ( | const Nil & | lhs, |
const ItemGroupSkin & | rhs | ||
) |
bool jive::util::operator!= | ( | const Nil & | lhs, |
const ItemGroupSkin & | rhs | ||
) |
void jive::util::decode | ( | Input & | in, |
ItemSetSkin & | items | ||
) |
void jive::util::encode | ( | Output & | out, |
const ItemSetSkin & | items | ||
) |
void jive::util::print | ( | Output & | out, |
const ItemSetSkin & | items | ||
) |
bool jive::util::operator== | ( | const Nil & | lhs, |
const ItemSetSkin & | rhs | ||
) |
bool jive::util::operator!= | ( | const Nil & | lhs, |
const ItemSetSkin & | rhs | ||
) |
void jive::util::reorder | ( | jem::Array< T, N > & | data, |
const Reordering & | reord, | ||
T | fill = T() |
||
) |
void jive::util::reorder | ( | jem::Array< T, N > & | data, |
idx_t | idim, | ||
const Reordering & | reord, | ||
T | fill = T() |
||
) |
Reordering jive::util::makeEraseReordering | ( | const IdxVector & | imask, |
idx_t | osize | ||
) |
StorageMode jive::util::getStorageMode | ( | const String & | mstr | ) |
bool jive::util::getStorageMode | ( | StorageMode & | mode, |
const String & | mstr | ||
) |
bool jive::util::getStorageMode | ( | StorageMode & | mode, |
const Properties & | conf, | ||
const Properties & | props | ||
) |
String jive::util::expandString | ( | const String & | str, |
const Properties & | globdat | ||
) |
bool jive::util::isGzipFile | ( | const String & | fname | ) |
void jive::util::printIntList | ( | PrintWriter & | out, |
const IdxVector & | ilist, | ||
const char * | sep = " " |
||
) |
IdxVector jive::util::makeUnique | ( | const IdxVector & | ivec | ) |
IdxVector jive::util::makeUnique | ( | const IdxVector & | ivec, |
idx_t | lbound, | ||
idx_t | ubound | ||
) |
IdxVector jive::util::sortColors | ( | const IdxVector & | iperm, |
const IdxVector & | colors | ||
) |
IdxVector jive::util::sortColors | ( | const IdxVector & | iperm, |
const IdxVector & | colors, | ||
idx_t | minColor, | ||
idx_t | maxColor | ||
) |
Ref<XItemMap> jive::util::newXItemMap | ( | StorageMode | mode = DEFAULT_STORAGE | ) |
const int jive::util::STORAGE_MODE_COUNT |
const char* jive::util::STORAGE_MODES[] |
const char* jive::util::STORAGE_MODE_PROP |
const Dots jive::util::dots |