66 { flags_ |= EMask[i][j]; }
75 { flags_ &= (~EMask[i][j]); }
84 { flags_ |= GMask[i][j]; }
93 { flags_ &= (~GMask[i][j]); }
114 {
return bool(flags_ & EMask[i][j]); }
123 {
return bool(flags_ & GMask[i][j]); }
136 static unsigned int EMask[3][2];
139 static unsigned int GMask[3][2];
144 friend std::ostream&
operator << (std::ostream& out,
const Plan &plan);
void setGhost(int i, int j)
Set ghost flag for direction i, j (set true).
unsigned int flags() const
Return raw flags unsigned int.
bool exchange(int i, int j) const
Get bool exchange flag for direction i, j.
bool ghost(int i, int j) const
Get ghost flag for direction i, j.
void setFlags(unsigned int flags)
Set all flags (contains all bits).
void clearFlags()
Clear all flags (set all to false, set flags_ = 0).
Parallel domain decomposition (DD) MD simulation.
void setExchange(int i, int j)
Set exchange flag for direction i, j (set true).
friend std::istream & operator>>(std::istream &in, Plan &plan)
istream extractor (>>) for a Plan.
void clearExchange(int i, int j)
Clear exchange flag for direction i, j (set false).
void clearGhost(int i, int j)
Clear ghost flag for direction i, j (set false).
friend std::ostream & operator<<(std::ostream &out, const Plan &plan)
ostream inserter (<<) for a Plan.