FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
snl_fei::RecordCollection Class Reference

#include <snl_fei_RecordCollection.hpp>

Public Member Functions

 RecordCollection (int localProc)
 
 RecordCollection (const RecordCollection &src)
 
virtual ~RecordCollection ()
 
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)
 
size_t getNumRecords () const
 
std::map< int, int > & getGlobalToLocalMap ()
 
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
 
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)
 

Detailed Description

container for Record objects

Definition at line 32 of file snl_fei_RecordCollection.hpp.

Constructor & Destructor Documentation

snl_fei::RecordCollection::RecordCollection ( int  localProc)

Constructor

Definition at line 21 of file snl_fei_RecordCollection.cpp.

snl_fei::RecordCollection::RecordCollection ( const RecordCollection src)

Copy constructor

Definition at line 34 of file snl_fei_RecordCollection.cpp.

snl_fei::RecordCollection::~RecordCollection ( )
virtual

Destructor

Definition at line 46 of file snl_fei_RecordCollection.cpp.

Member Function Documentation

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.

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.

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.

size_t snl_fei::RecordCollection::getNumRecords ( ) const
inline

Query the number of records in this collection

Definition at line 66 of file snl_fei_RecordCollection.hpp.

std::map<int,int>& snl_fei::RecordCollection::getGlobalToLocalMap ( )
inline

Get the map of global-to-local ids

Definition at line 72 of file snl_fei_RecordCollection.hpp.

std::vector<fei::Record<int> >& snl_fei::RecordCollection::getRecords ( )
inline

Get the vector containing the records

Definition at line 79 of file snl_fei_RecordCollection.hpp.

const std::vector<fei::Record<int> >& snl_fei::RecordCollection::getRecords ( ) const
inline

Get the vector containing the records

Definition at line 85 of file snl_fei_RecordCollection.hpp.

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.

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.

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.

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.

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.

void snl_fei::RecordCollection::setDebugOutput ( FEI_OSTREAM *  dbgOut)
inline

specify an output-stream for debug information

Definition at line 131 of file snl_fei_RecordCollection.hpp.


The documentation for this class was generated from the following files: