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;
147 bool x() const
noexcept {
return get<0>(); }
150 bool y() const
noexcept {
return get<1>(); }
153 bool z() const
noexcept {
return get<2>(); }
182 template<>
struct is_contiguous<boolVector> : std::true_type {};
197 std::integral_constant<Foam::direction, 3>
bool none() const noexcept
True if no components are set.
boolVector & operator=(const boolVector &)=default
Copy assignment.
A 1D vector of objects of type <T> with a fixed length <N>.
bool y() const noexcept
The y component.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
The vector-space number of components: default is 1.
void back()=delete
The back() accessor (from FixedList) has no purpose.
bool cmptType
The component type is bool.
boolVector()
Default construct, zero-initialized (ie, false)
void front()=delete
The front() accessor (from FixedList) has no purpose.
The underlying component data type: default is pass-through.
bool x() const noexcept
The x component.
Specialized bundling of boolean values as a vector of 3 components, element access using x()...
bool all() const noexcept
True if all components are set.
static constexpr direction nComponents
Number of components in this vector space.
components
Component labeling enumeration.
void flip()
Invert all values.
bool z() const noexcept
The z component.
bool any() const noexcept
True if any components are set.
unsigned int count(const bool on=true) const
Count number of items set.
static constexpr direction rank
Rank of a vector is 1.