Go to the documentation of this file.
57 template<
class ListType>
62 const ListType& elements
70 data_.insert(elements[i]);
106 template<
class ListType>
109 l.setSize(
data_.size());
126 template<
class ListType>
129 std::set<label> newData;
133 if( newLabels[*it] < 0 )
136 newData.insert(newLabels[*it]);
144 std::set<label> newData;
149 newData.insert(newLabels(*it, i));
192 os.
check(
"inline Ostream& operator<<(Ostream&, const meshSubset&)");
199 data[counter++] = *it;
208 is.
check(
"friend Istream& operator>>(Istream&, meshSubset&)");
217 is.
check(
"friend Istream& operator>>(Istream&, meshSubset&)");
bool operator!=(const meshSubset &) const
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
std::set< label > data_
labels of elements
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
word name_
name of the given subset
const word & name() const
Return name.
void updateSubset(const ListType &)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool contains(const label) const
find if the element exists in the subset
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void addElement(const label)
add element label to subset
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void removeElement(const label)
remove element from subset
#define forAllRow(graph, rowI, index)
Ostream & operator<<(Ostream &, const edgeMesh &)
label type_
type of subset
void containedElements(ListType &) const
elements contained in the subset
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool operator==(const meshSubset &) const
meshSubset()
Null constructor.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Istream & operator>>(Istream &, edgeMesh &)
label type() const
Type of subset.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
void operator=(const meshSubset &)
Database for solution data, solver performance and other reduced data.
word name(const complex &)
Return a string representation of a complex.