Jive reference manual
|
#include <jive/util/UniformDofSpace.h>
Public Member Functions | |
UniformDofSpace () | |
UniformDofSpace (const Ref< ItemSet > &items, const String &dofType) | |
UniformDofSpace (const Ref< ItemSet > &items, const String &dofType1, const String &dofType2) | |
UniformDofSpace (const Ref< ItemSet > &items, const String &dofType1, const String &dofType2, const String &dofType3) | |
UniformDofSpace (const Ref< ItemSet > &items, const StringVector &dofTypes) | |
virtual void | resetEvents () |
virtual void | readFrom (ObjectInput &in) |
virtual void | writeTo (ObjectOutput &out) const |
virtual Ref< Object > | clone () const |
virtual idx_t | typeCount () const |
Returns the number of dof types. More... | |
virtual idx_t | dofCount () const |
Returns the total number of dofs. More... | |
virtual idx_t | findType (const String &name) const |
Searches for a dof type with a given name. More... | |
virtual String | getTypeName (idx_t itype) const |
virtual StringVector | getTypeNames () const |
Returns a array containing all dof type names. More... | |
virtual idx_t | findDofIndex (idx_t iitem, idx_t itype) const |
virtual idx_t | findDofIndices (const IdxVector &idofs, const IdxVector &iitems, const IdxVector &itypes) const |
virtual idx_t | collectDofIndices (const IdxVector &idofs, const IdxVector &iitems, const IdxVector &itypes) const |
virtual idx_t | getDofsForItem (const IdxVector &idofs, const IdxVector &itypes, idx_t iitem) const |
virtual idx_t | getDofsForType (const IdxVector &idofs, const IdxVector &iitems, idx_t itype) const |
virtual void | decodeDofIndex (idx_t &iitem, idx_t &itype, idx_t idof) const |
virtual void | decodeDofIndices (const IdxVector &iitems, const IdxVector &itypes, const IdxVector &idofs) const |
virtual SparseIdxMatrix | toMatrix () const |
Returns a matrix representation of this dof space. More... | |
virtual ItemSet * | getItems () const |
Returns the item set associated with this dof space. More... | |
![]() | |
int | itemCount () const |
Returns the size of the item set associated with this dof space. More... | |
virtual String | getTypeName (int itype) const =0 |
Returns a name of a dof type with a given index. More... | |
virtual int | findDofIndex (int iitem, int itype) const =0 |
Searches for a dof attached to a given item. More... | |
int | getDofIndex (int iitem, int itype) const |
Returns the index of a dof attached to a given item. More... | |
virtual int | findDofIndices (const IntVector &idofs, const IntVector &iitems, const IntVector &itypes) const |
Searches for the dofs attached to a given set of items. More... | |
virtual int | collectDofIndices (const IntVector &idofs, const IntVector &iitems, const IntVector &itypes) const |
Collects the indices of the dofs attached to a given set of items. More... | |
void | getDofIndices (const IntVector &idofs, const IntVector &iitems, const IntVector &itypes) const |
Gets the indices of the dofs attached to a given set of items. More... | |
virtual int | getDofsForItem (const IntVector &idofs, const IntVector &itypes, int iitem) const |
Returns all dofs attached to a given item. More... | |
virtual int | getDofsForType (const IntVector &idofs, const IntVector &iitems, int itype) const |
Returns all dofs of a given type. More... | |
virtual void | decodeDofIndex (int &iitem, int &itype, int idof) const =0 |
Returns an item/type index pair given a dof index. More... | |
virtual void | decodeDofIndices (const IntVector &iitems, const IntVector &itypes, const IntVector &idofs) const |
Returns item/type index pairs given a set of dof indices. More... | |
String | getDofPath (int idof) const |
Returns an identification string for a given dof. More... | |
String | getDofPath (int iitem, int itype) const |
Returns an identification string for a given dof. More... | |
String | getContext () const |
Returns a context string. More... | |
void | printTo (jem::io::TextOutput &out) const |
Writes the state of this dof space to a text output stream. More... | |
void | store (const Properties &globdat) const |
Stores this dof space in a (global) data set. More... | |
virtual String | toString () const |
Returns a short textual description of this object. More... | |
![]() | |
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... | |
Protected Member Functions | |
virtual | ~UniformDofSpace () |
virtual void | emitEvents_ (int events) |
![]() | |
virtual | ~DofSpace () |
![]() | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
![]() | |
virtual | ~Clonable () |
virtual void | emitVTable_ () |
![]() | |
virtual | ~Interface () |
Empty destructor. More... | |
![]() | |
virtual | ~Serializable () |
virtual void | emitVtableFunc_ () |
Additional Inherited Members | |
![]() | |
typedef jem::String | String |
Represents a string type. More... | |
typedef jem::numeric::SparseMatrix< int > | SparseMatrix |
Represents a sparse integer matrix. More... | |
typedef jem::util::Properties | Properties |
Represents a properties set. More... | |
![]() | |
static jem::Ref< DofSpace > | find (const Properties &globdat) |
Searches for the primary dof space in a (global) data set. More... | |
static jem::Ref< DofSpace > | find (const jem::Ref< ItemSet > &items, const Properties &globdat) |
Searches for an item-specific dof space in a (global) data set. More... | |
static jem::Ref< DofSpace > | get (const Properties &globdat, const String &context) |
Returns the primary dof space in a (global) data set. More... | |
static jem::Ref< DofSpace > | get (const jem::Ref< ItemSet > &items, const Properties &globdat, const String &context) |
Returns an item-specific dof space in a (global) data set. More... | |
![]() | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
![]() | |
jem::util::Event< int, Self & > | newSizeEvent |
Signals that the number of dofs has changed. More... | |
jem::util::Event< const IntVector &, Self & > | newOrderEvent |
Signals that the dofs have been re-ordered. More... | |
![]() | |
IntVector | makeDofOrdering (const DofSpace &dofs, const IntVector &itemPerm) |
Creates a dof permutation array given an item permutation array. More... | |
jive::util::UniformDofSpace::UniformDofSpace | ( | ) |
jive::util::UniformDofSpace::UniformDofSpace | ( | const Ref< ItemSet > & | items, |
const String & | dofType | ||
) |
jive::util::UniformDofSpace::UniformDofSpace | ( | const Ref< ItemSet > & | items, |
const String & | dofType1, | ||
const String & | dofType2 | ||
) |
jive::util::UniformDofSpace::UniformDofSpace | ( | const Ref< ItemSet > & | items, |
const String & | dofType1, | ||
const String & | dofType2, | ||
const String & | dofType3 | ||
) |
jive::util::UniformDofSpace::UniformDofSpace | ( | const Ref< ItemSet > & | items, |
const StringVector & | dofTypes | ||
) |
|
protectedvirtual |
|
virtual |
|
virtual |
Implements jem::io::Serializable.
|
virtual |
Implements jem::io::Serializable.
Implements jem::Clonable.
|
virtual |
Returns the number of dof types known to this dof space.
Implements jive::util::DofSpace.
|
virtual |
Returns the number of dofs known to this dof space. This number is equal to the number of non-zeroes in the sparse matrix representation of this dof space.
Note that the number of dofs equals
when the matrix representation of this dof space is a dense matrix. That is, when typeCount()
dofs are attached to each item.
Implements jive::util::DofSpace.
|
virtual |
Returns the index of the dof type named name, or a negative number if a dof type with that name is not known to this dof space.
The implementation of this function provided by the DofSpace
class searches for the type index by repeatedly calling the getTypeName()
function. Derived classes are encouraged to provide a more efficient implementation.
name | - the name of the dof type to be found. |
return The index of the dof type named name, or a negative number.
Reimplemented from jive::util::DofSpace.
|
virtual |
|
virtual |
Returns an array containing the names of all dof types known to this dof space. The contents of this array should not be modified as the array may share its data with one of the private data members of this DofSpace
object.
The implementation of this function provided by the DofSpace
class creates the array by repeatedly calling the getTypeName()
function.
Reimplemented from jive::util::DofSpace.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns a sparse matrix representation of this dof space. Each row in the matrix is associated with an item and each column is associated with a dof type. The value of a matrix element (i,j) is the global index, or equation number, of the dof that is attached to item i and has type j.
Implements jive::util::DofSpace.
|
virtual |
Returns a pointer to the item set containing the items to which the dofs in this dof space are attached. The pointer is guaranteed not to be NULL
and to remain valid throughout the entire lifetime of this DofSpace
object.
Implements jive::util::DofSpace.
|
protectedvirtual |