9 #ifndef _fei_Record_hpp_
10 #define _fei_Record_hpp_
12 #include <fei_macros.hpp>
19 template<
typename GlobalIDType>
29 fieldMask_(src.fieldMask_),
30 offsetIntoEqnNumbers_(src.offsetIntoEqnNumbers_),
31 ownerProc_(src.ownerProc_),
33 hasSlaveDof_(src.hasSlaveDof_)
40 void setID(
const GlobalIDType& ID)
66 return( ID_ == rcd.ID_ );
72 return( ID_ != rcd.ID_ );
76 bool operator<(const Record<GlobalIDType>& rcd)
const
78 return( ID_ < rcd.ID_ );
84 return( ID_ > rcd.ID_ );
108 return( fieldMask_ );
114 return( fieldMask_ );
121 offsetIntoEqnNumbers_ = offset;
128 return(offsetIntoEqnNumbers_);
131 bool hasSlaveDof()
const
132 {
return( hasSlaveDof_ ); }
134 void hasSlaveDof(
bool flag)
135 { hasSlaveDof_ = flag; }
137 Record<GlobalIDType>& operator=(
const Record<GlobalIDType>& src)
140 number_ = src.number_;
141 fieldMask_ = src.fieldMask_;
142 offsetIntoEqnNumbers_ = src.offsetIntoEqnNumbers_;
143 ownerProc_ = src.ownerProc_;
145 hasSlaveDof_ = src.hasSlaveDof_;
152 GlobalIDType number_;
156 int offsetIntoEqnNumbers_;
169 template<
class GlobalIDType>
180 template<
class GlobalIDType>
185 offsetIntoEqnNumbers_(0),
187 isInLocalSubdomain_(false),
192 template<
class GlobalIDType>
200 #endif // _fei_Record_hpp_
GlobalIDType getNumber() const
const fei::FieldMask * getFieldMask() const
void setNumber(const GlobalIDType &num)
bool operator>(const Record< GlobalIDType > &rcd) const
virtual void operator()(Record< GlobalIDType > &record)=0
Record(const Record< GlobalIDType > &src)
bool operator==(const Record< GlobalIDType > &rcd) const
void setFieldMask(fei::FieldMask *fm)
bool operator!=(const Record< GlobalIDType > &rcd) const
void setOffsetIntoEqnNumbers(int offset)
virtual ~Record_Operator()
void setOwnerProc(int owner)
void setID(const GlobalIDType &ID)
GlobalIDType getID() const
int getOffsetIntoEqnNumbers() const
fei::FieldMask * getFieldMask()