47 if (!labels.
test(oldId))
52 if (oldId >= map.
size())
55 <<
"Illegal content " << oldId <<
" of set:" <<
name()
56 <<
" of type " <<
type() <<
nl
57 <<
"Value should be between [0," << map.
size() <<
')'
62 const label newId = map[oldId];
83 const label len = map.
size();
89 const label newId = map[oldId];
105 const label oldId = labels.
rfind(
true);
107 if (oldId >= maxSize)
110 <<
"Illegal content " << oldId <<
" of set:" <<
name()
111 <<
" of type " <<
type() <<
nl
112 <<
"Value should be between [0," << maxSize <<
')'
192 return selected_.test(
id);
198 return selected_.set(
id);
204 return selected_.
unset(
id);
210 for (
const label
id : labels)
212 selected_[id] =
true;
219 for (
const label
id : labels)
228 selected_.resize(maxLen);
229 for (
bool&
b : selected_)
247 selected_[i] = (selected_[i] && set.found(i));
256 for (
const label
id : set)
258 selected_[id] =
true;
266 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.
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
void transfer(List< T > &list)
void resize(const label len)
Adjust allocated size of list.
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type test(const label i) const
label rfind(const T &val, label pos=-1) const
Find index of the last occurrence of the value.
void size(const label n)
Older name for setAddressableSize.
constant condensation/saturation model.
Mesh consisting of general polyhedral cells.
Base for a special purpose topoSet using labels stored as a boolList.
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)
#define forAll(list, i)
Loop across all elements in list.