9 #ifndef _snl_fei_RecordCollection_hpp_
10 #define _snl_fei_RecordCollection_hpp_
21 #define fei_file "snl_fei_RecordCollection.hpp"
26 template<
typename T>
class SharedIDs;
43 void setIDMap(
const int* localIDs_begin,
const int* localIDs_end,
44 const int* globalIDs_begin,
const int* globalIDs_end);
49 std::vector<fei::FieldMask*>& fieldMasks,
50 int* recordLocalIDs=NULL);
57 std::vector<fei::FieldMask*>& fieldMasks,
58 int* recordLocalIDs=NULL);
116 int whichComponentOfField,
117 const int* eqnNumbers);
124 int whichComponentOfField,
125 const int* eqnNumbers);
157 #endif // _snl_fei_RecordCollection_hpp_
const fei::Record< int > * getRecordWithLocalID(int lid) const
const std::vector< fei::Record< int > > & getRecords() const
void setDebugOutput(FEI_OSTREAM *dbgOut)
void setOwners_lowestSharing(fei::SharedIDs< int > &sharedIDs)
std::vector< fei::Record< int > > m_records
std::vector< fei::Record< int > > & getRecords()
int getLocalID(int global_id) const
size_t getNumRecords() const
std::map< int, int > m_global_to_local
int getGlobalIndex(int ID, int fieldID, int fieldSize, int fieldOffset, int whichComponentOfField, const int *eqnNumbers)
RecordCollection(int localProc)
virtual ~RecordCollection()
fei::Record< int > * getRecordWithLocalID(int lid)
std::map< int, int > & getGlobalToLocalMap()
int localProc(MPI_Comm comm)
void setIDMap(const int *localIDs_begin, const int *localIDs_end, const int *globalIDs_begin, const int *globalIDs_end)
const std::map< int, int > & getGlobalToLocalMap() const
void initRecords(int numIDs, const int *IDs, std::vector< fei::FieldMask * > &fieldMasks, int *recordLocalIDs=NULL)
int getGlobalBlkIndex(int ID, int &globalBlkIndex)
fei::Record< int > * getRecordWithID(int ID)
int getGlobalIndexLocalID(int localID, int fieldID, int fieldSize, int fieldOffset, int whichComponentOfField, const int *eqnNumbers)