Jive reference manual
Classes | Typedefs | Enumerations | Functions | Variables
jive::util Namespace Reference

This namespace contains various classes and functions for storing and manipulating frequently used data structures. More...

Classes

class  AllItemGroup
 
class  ArrayItemGroup
 
class  Assignable
 
class  ColoredItemGroup
 
class  Constraints
 
class  ConstraintsParser
 
class  CtorMap
 
class  CtorMapImp
 
class  Database
 
class  DatabaseSkin
 
class  DataParser
 
class  DBaseParser
 
class  DBasesParser
 
class  DBColumn
 
class  DenseDofSpace
 
class  DenseTable
 
class  DofSpace
 Maps degrees of freedom to a range of indices. More...
 
struct  Dots
 
class  DummyItemSet
 
class  EmptyItemGroup
 
class  EventMask
 
class  EventSource
 
class  Factory
 
class  FlexDofSpace
 
class  FloatDBColumn
 
class  FuncParser
 
class  FuncsParser
 
class  FuncUtils
 
class  GlobalScope
 
class  Globdat
 
class  GroupConverter
 
class  GroupSet
 
class  GroupSetParser
 
class  HashItemMap
 
class  HeapItemMap
 
class  IncludeParser
 
class  IntDBColumn
 
class  ItemGroup
 Encapsulates a set of item indices. More...
 
class  ItemGroupParser
 
class  ItemGroupSkin
 
class  ItemGroupsParser
 
class  ItemIDException
 
class  ItemMap
 
class  ItemSet
 Stores a (large) homogeneous set of objects. More...
 
class  ItemSetSkin
 
class  MemberSet
 
class  MemberSetParser
 
class  ObjectConverter
 
class  ParserActions
 
class  ParserOptions
 
class  ParserParams
 
class  ParserScope
 
class  ParseUtils
 
class  PartParser
 
class  PointSet
 
class  PointSetParser
 
class  Printer
 
class  Reordering
 
class  Runtime
 
class  SimpleItemMap
 
class  SparseDofSpace
 
class  SparseTable
 
class  StdDatabase
 
class  StdGroupSet
 
class  StdMemberSet
 
class  StdPointSet
 
class  Table
 
class  TableException
 
class  TableParser
 
class  TablesParser
 
class  TableUtils
 
class  UniformDofSpace
 
class  VectorManager
 
class  XDofSpace
 
class  XGroupSet
 
class  XItemGroup
 
class  XItemMap
 
class  XMemberSet
 
class  XPointSet
 
class  XTable
 

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::StringStringVector
 A type representing a one-dimensional array of strings. More...
 
typedef ConstraintsParser ConParser
 
typedef jem::numeric::SparseStructure Topology
 
typedef ObjectConverter ObjConverter
 
typedef jem::Array< TopologyTopoVector
 
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< DummyItemSetnewDummyItemSet (StorageMode mode=MINIMAL_STORAGE)
 
Ref< DummyItemSetnewDummyItemSet (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< XItemMapnewXItemMap (StorageMode mode=DEFAULT_STORAGE)
 

Variables

const int STORAGE_MODE_COUNT
 
const char * STORAGE_MODES []
 
const char * STORAGE_MODE_PROP
 
const Dots dots
 

Detailed Description

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 Documentation

Enumeration Type Documentation

Enumerator
DEFAULT_STORAGE 
COMPACT_STORAGE 
MINIMAL_STORAGE 

Function Documentation

template<class T >
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 
)
template<class Input >
void jive::util::decode ( Input &  in,
DatabaseSkin dbase 
)
template<class Output >
void jive::util::encode ( Output &  out,
const DatabaseSkin dbase 
)
template<class Output >
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 
)
template<class Input >
void jive::util::decode ( Input &  in,
ItemGroupSkin group 
)
template<class Output >
void jive::util::encode ( Output &  out,
const ItemGroupSkin group 
)
template<class Output >
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 
)
template<class Input >
void jive::util::decode ( Input &  in,
ItemSetSkin items 
)
template<class Output >
void jive::util::encode ( Output &  out,
const ItemSetSkin items 
)
template<class Output >
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 
)
template<class T , int N>
void jive::util::reorder ( jem::Array< T, N > &  data,
const Reordering reord,
fill = T() 
)
template<class T , int N>
void jive::util::reorder ( jem::Array< T, N > &  data,
idx_t  idim,
const Reordering reord,
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::joinNames ( const String first,
const String second 
)
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)

Variable Documentation

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