43 if (oldId >= map.
size())
46 <<
"Illegal content " << oldId <<
" of set:" <<
name()
47 <<
" of type " <<
type() <<
nl
48 <<
"Value should be between [0," << map.
size() <<
')'
58 for (
const label oldId : labels)
60 const label newId = map[oldId];
78 const label len = map.
size();
82 for (
const label oldId : labels)
84 const label newId = map[oldId];
94 const bitSet& labels = selected_;
101 <<
"Illegal content " << oldId <<
" of set:" <<
name()
102 <<
" of type " <<
type() <<
nl
103 <<
"Value should be between [0," << maxSize <<
')'
183 return selected_.test(
id);
189 return selected_.set(
id);
195 return selected_.
unset(
id);
201 selected_.set(labels);
207 selected_.
unset(labels);
213 selected_.resize(maxLen);
221 if (isA<topoBitSet>(set))
223 selected_ &= refCast<const topoBitSet>(set).selected_;
225 else if (set.empty())
231 for (
const label
id : selected_)
245 if (isA<topoBitSet>(set))
247 selected_ |= refCast<const topoBitSet>(set).selected_;
251 for (
const label
id : set)
262 if (isA<topoBitSet>(set))
264 selected_ -= refCast<const topoBitSet>(set).selected_;
268 for (
const label
id : set)
void invert()
Return the matrix inverse into itself if no elem is equal to zero.
label size() const noexcept
The number of elements in table.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
void resize(const label numElem, const unsigned int val=0u)
Reset addressable list size, does not shrink the allocated size.
void size(const label n)
Older name for setAddressableSize.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
label find_last() const
Locate the last bit set.
void set(const bitSet &bitset)
Set specified bits from another bitset.
void transfer(bitSet &bitset)
constant condensation/saturation model.
Mesh consisting of general polyhedral cells.
Base for a special purpose topoSet using labels stored as a bitSet.
virtual void subtractSet(const topoSet &set)
Subtract elements present in set.
virtual void addSet(const topoSet &set)
Add elements present in set.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
virtual void updateLabels(const labelUList &map)
Update map from map.
virtual void check(const label maxSize)
Check limits on addressable range.
General set of labels of mesh quantity (points, cells, faces).
bool set() const
Are all the vector set.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)