Go to the documentation of this file.
47 const bitSet& list = *
this;
48 const label len = list.
size();
58 else if (!shortLen || len <= shortLen)
62 for (label i=0; i < len; ++i)
73 for (label i=0; i < len; ++i)
83 os <<
nl << len <<
nl;
90 reinterpret_cast<const char*
>(list.
storage().cdata()),
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
streamFormat format() const noexcept
Get the current stream format.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeEntry(Ostream &os) const
Write as a dictionary entry.
bitSet bitset(const labelHashSet &locations)
Transform the on locations to a bitSet.
unsigned int count(const bool on=true) const
Count number of bits set.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write bitSet, with line-breaks (ASCII) when length exceeds shortLen.
std::streamsize byteSize() const
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
Begin block [isseparator].
label capacity() const
The number of elements that can be stored with reallocating.
static constexpr unsigned elem_per_block
The number of elements stored per data block.
label size() const noexcept
Number of entries.
const List< unsigned int > & storage() const
Return the underlying storage blocks.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].
bool uniform() const
True if all entries have identical values, and the set is non-empty.