|
FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <snl_fei_RecordCollection.hpp>
Public Member Functions | |
| RecordCollection (int localProc) | |
| RecordCollection (const RecordCollection &src) | |
| virtual | ~RecordCollection () |
| void | setIDMap (const int *localIDs_begin, const int *localIDs_end, const int *globalIDs_begin, const int *globalIDs_end) |
| void | initRecords (int numIDs, const int *IDs, std::vector< fei::FieldMask * > &fieldMasks, int *recordLocalIDs=NULL) |
| void | initRecords (int fieldID, int fieldSize, int numIDs, const int *IDs, std::vector< fei::FieldMask * > &fieldMasks, int *recordLocalIDs=NULL) |
| void | setOwners_lowestSharing (fei::SharedIDs< int > &sharedIDs) |
| void | setOwners_local () |
| size_t | getNumRecords () const |
| std::map< int, int > & | getGlobalToLocalMap () |
| const std::map< int, int > & | getGlobalToLocalMap () const |
| std::vector< fei::Record< int > > & | getRecords () |
| const std::vector< fei::Record < int > > & | getRecords () const |
| fei::Record< int > * | getRecordWithID (int ID) |
| const fei::Record< int > * | getRecordWithID (int ID) const |
| fei::Record< int > * | getRecordWithLocalID (int lid) |
| const fei::Record< int > * | getRecordWithLocalID (int lid) const |
| int | getLocalID (int global_id) const |
| int | getGlobalIndex (int ID, int fieldID, int fieldSize, int fieldOffset, int whichComponentOfField, const int *eqnNumbers) |
| int | getGlobalIndexLocalID (int localID, int fieldID, int fieldSize, int fieldOffset, int whichComponentOfField, const int *eqnNumbers) |
| int | getGlobalBlkIndex (int ID, int &globalBlkIndex) |
| void | setDebugOutput (FEI_OSTREAM *dbgOut) |
| int | getMinID () const |
| int | getMaxID () const |
Private Attributes | |
| std::vector< fei::Record< int > > | m_records |
| std::map< int, int > | m_global_to_local |
| int | m_minID |
| int | m_maxID |
| int | localProc_ |
| bool | debugOutput_ |
| FEI_OSTREAM * | dbgOut_ |
container for Record objects
Definition at line 32 of file snl_fei_RecordCollection.hpp.
| snl_fei::RecordCollection::RecordCollection | ( | int | localProc | ) |
| snl_fei::RecordCollection::RecordCollection | ( | const RecordCollection & | src | ) |
Copy constructor
Definition at line 34 of file snl_fei_RecordCollection.cpp.
|
virtual |
Destructor
Definition at line 46 of file snl_fei_RecordCollection.cpp.
| void snl_fei::RecordCollection::setIDMap | ( | const int * | localIDs_begin, |
| const int * | localIDs_end, | ||
| const int * | globalIDs_begin, | ||
| const int * | globalIDs_end | ||
| ) |
Definition at line 50 of file snl_fei_RecordCollection.cpp.
| void snl_fei::RecordCollection::initRecords | ( | int | numIDs, |
| const int * | IDs, | ||
| std::vector< fei::FieldMask * > & | fieldMasks, | ||
| int * | recordLocalIDs = NULL |
||
| ) |
initialize records for specified IDs
Definition at line 73 of file snl_fei_RecordCollection.cpp.
References fei::FieldMask::getMaskID(), fei::Record< GlobalIDType >::setFieldMask(), fei::Record< GlobalIDType >::setID(), and fei::Record< GlobalIDType >::setOwnerProc().
Referenced by test_misc_RecordCollection().
| void snl_fei::RecordCollection::initRecords | ( | int | fieldID, |
| int | fieldSize, | ||
| int | numIDs, | ||
| const int * | IDs, | ||
| std::vector< fei::FieldMask * > & | fieldMasks, | ||
| int * | recordLocalIDs = NULL |
||
| ) |
initialize records for specified IDs with specified fieldID
Definition at line 116 of file snl_fei_RecordCollection.cpp.
References fei::FieldMask::addField(), fei::FieldMask::calculateMaskID(), fei::Record< GlobalIDType >::getFieldMask(), fei::FieldMask::getMaskID(), fei::FieldMask::hasFieldID(), fei::Record< GlobalIDType >::setFieldMask(), fei::Record< GlobalIDType >::setID(), and fei::Record< GlobalIDType >::setOwnerProc().
| void snl_fei::RecordCollection::setOwners_lowestSharing | ( | fei::SharedIDs< int > & | sharedIDs | ) |
set owner-proc attribute for specified IDs, to be the lowest-numbered sharing processor
Definition at line 220 of file snl_fei_RecordCollection.cpp.
References FEI_ENDL, fei::Record< GlobalIDType >::getID(), fei::Record< GlobalIDType >::getOwnerProc(), fei::SharedIDs< T >::getOwningProcs(), fei::SharedIDs< T >::getSharedIDs(), and fei::Record< GlobalIDType >::setOwnerProc().
| void snl_fei::RecordCollection::setOwners_local | ( | ) |
Definition at line 211 of file snl_fei_RecordCollection.cpp.
References fei::Record< GlobalIDType >::getOwnerProc(), and fei::Record< GlobalIDType >::setOwnerProc().
|
inline |
Query the number of records in this collection
Definition at line 66 of file snl_fei_RecordCollection.hpp.
References m_records.
Referenced by fei::copy_remotelyowned_ids_into_CommMap(), and fei::VectorSpace::getOwnedAndSharedIDs().
|
inline |
Get the map of global-to-local ids
Definition at line 72 of file snl_fei_RecordCollection.hpp.
References m_global_to_local.
Referenced by fei::VectorSpace::getOwnedAndSharedIDs(), fei::VectorSpace::getOwnedIDs(), fei::VectorSpace::runRecords(), and fei::VectorSpace::setLocalEqnNumbers().
|
inline |
Definition at line 75 of file snl_fei_RecordCollection.hpp.
References m_global_to_local.
|
inline |
Get the vector containing the records
Definition at line 79 of file snl_fei_RecordCollection.hpp.
References m_records.
Referenced by fei::Lookup_Impl::buildDatabases(), fei::ReverseMapper::ReverseMapper(), and test_misc_RecordCollection().
|
inline |
Get the vector containing the records
Definition at line 85 of file snl_fei_RecordCollection.hpp.
References m_records.
| fei::Record< int > * snl_fei::RecordCollection::getRecordWithID | ( | int | ID | ) |
Get record with the specified ID. Returns NULL if not found.
Definition at line 254 of file snl_fei_RecordCollection.cpp.
Referenced by fei::Lookup_Impl::buildDatabases(), fei::copy_into_shared_ids(), fei::Vector_core::copyOutFieldData(), fei::MatrixGraph_Impl2::hasSlaveDof(), and fei::set_shared_ids().
| const fei::Record< int > * snl_fei::RecordCollection::getRecordWithID | ( | int | ID | ) | const |
Get record with the specified ID. Returns NULL if not found.
Definition at line 265 of file snl_fei_RecordCollection.cpp.
|
inline |
Definition at line 96 of file snl_fei_RecordCollection.hpp.
References m_records.
Referenced by fei::MatrixGraph_Impl2::addBlockToGraph_multiField_symmetric(), snl_fei::Constraint< RecordType >::Constraint(), fei::copy_remotelyowned_ids_into_CommMap(), fei::FEI_Impl::fillNodeset(), fei::utils::getConnectivityArrays(), fei::MatrixGraph_Impl2::getConnectivityIndices_multiField(), fei::MatrixGraph_Impl2::getConnectivityIndices_noField(), fei::MatrixGraph_Impl2::getConnectivityIndices_singleField(), fei::VectorSpace::getGlobalBlkIndicesL(), fei::VectorSpace::getGlobalIndicesL(), fei::VectorSpace::getOwnedAndSharedIDs(), fei::VectorSpace::getOwnedIDs(), snl_fei::Constraint< RecordType >::getSlave(), fei::MatrixGraph_Impl2::initConnectivity(), fei::VectorSpace::runRecords(), fei::VectorSpace::setLocalEqnNumbers(), snl_fei::Broker_FEData::setStructure(), and fei::Matrix_Impl< T >::sumIn().
|
inline |
Definition at line 99 of file snl_fei_RecordCollection.hpp.
References m_records.
|
inline |
Definition at line 102 of file snl_fei_RecordCollection.hpp.
References m_global_to_local.
Referenced by snl_fei::Constraint< RecordType >::Constraint(), and fei::MatrixGraph_Impl2::getConnectivityRecords().
| int snl_fei::RecordCollection::getGlobalIndex | ( | int | ID, |
| int | fieldID, | ||
| int | fieldSize, | ||
| int | fieldOffset, | ||
| int | whichComponentOfField, | ||
| const int * | eqnNumbers | ||
| ) |
Get global equation index for specified ID
Definition at line 289 of file snl_fei_RecordCollection.cpp.
References FEI_OSTRINGSTREAM, fei::FieldMask::getFieldEqnOffset(), fei::Record< GlobalIDType >::getFieldMask(), and fei::Record< GlobalIDType >::getOffsetIntoEqnNumbers().
| int snl_fei::RecordCollection::getGlobalIndexLocalID | ( | int | localID, |
| int | fieldID, | ||
| int | fieldSize, | ||
| int | fieldOffset, | ||
| int | whichComponentOfField, | ||
| const int * | eqnNumbers | ||
| ) |
Get global equation index for specified local ID
Definition at line 328 of file snl_fei_RecordCollection.cpp.
References FEI_OSTRINGSTREAM, fei::FieldMask::getFieldEqnOffset(), fei::Record< GlobalIDType >::getFieldMask(), and fei::Record< GlobalIDType >::getOffsetIntoEqnNumbers().
| int snl_fei::RecordCollection::getGlobalBlkIndex | ( | int | ID, |
| int & | globalBlkIndex | ||
| ) |
Get global block-equation index for specified ID
Definition at line 276 of file snl_fei_RecordCollection.cpp.
References ERReturn, and fei::Record< GlobalIDType >::getNumber().
|
inline |
specify an output-stream for debug information
Definition at line 131 of file snl_fei_RecordCollection.hpp.
References dbgOut, dbgOut_, and debugOutput_.
|
inline |
Definition at line 137 of file snl_fei_RecordCollection.hpp.
References m_minID.
|
inline |
Definition at line 138 of file snl_fei_RecordCollection.hpp.
References m_maxID.
|
private |
Definition at line 142 of file snl_fei_RecordCollection.hpp.
Referenced by getNumRecords(), getRecords(), getRecordWithLocalID(), and RecordCollection().
|
private |
Definition at line 143 of file snl_fei_RecordCollection.hpp.
Referenced by getGlobalToLocalMap(), and getLocalID().
|
private |
Definition at line 145 of file snl_fei_RecordCollection.hpp.
Referenced by getMinID().
|
private |
Definition at line 145 of file snl_fei_RecordCollection.hpp.
Referenced by getMaxID().
|
private |
Definition at line 147 of file snl_fei_RecordCollection.hpp.
|
private |
Definition at line 149 of file snl_fei_RecordCollection.hpp.
Referenced by setDebugOutput().
|
private |
Definition at line 150 of file snl_fei_RecordCollection.hpp.
Referenced by setDebugOutput().
1.8.5