43#ifndef Foam_boolVector_H
44#define Foam_boolVector_H
96 void front() =
delete;
111 inline boolVector(
const bool vx,
const bool vy,
const bool vz);
141 inline
unsigned int count(const
bool on=true) const;
197 std::integral_constant<Foam::direction, 3>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Specialized bundling of boolean values as a vector of 3 components, element access using x(),...
unsigned int count(const bool on=true) const
Count number of items set.
bool none() const noexcept
True if no components are set.
void flip()
Invert all values.
void back()=delete
The back() accessor (from FixedList) has no purpose.
void front()=delete
The front() accessor (from FixedList) has no purpose.
components
Component labeling enumeration.
bool & z() noexcept
The z component.
boolVector(const boolVector &)=default
Copy construct.
bool z() const noexcept
The z component.
bool & x() noexcept
The x component.
static constexpr direction nComponents
Number of components in this vector space.
static constexpr direction rank
Rank of a vector is 1.
boolVector(boolVector &&)=default
Move construct.
boolVector & operator=(const boolVector &)=default
Copy assignment.
bool x() const noexcept
The x component.
bool any() const noexcept
True if any components are set.
boolVector & operator=(boolVector &&)=default
Move assignment.
boolVector()
Default construct, zero-initialized (ie, false).
bool y() const noexcept
The y component.
bool & y() noexcept
The y component.
bool all() const noexcept
True if all components are set.
bool cmptType
The component type is bool.
A template class to specify that a data type can be considered as being contiguous in memory.
The underlying component data type: default is pass-through.
The vector-space number of components: default is 1.