MADNESS 0.10.1
|
syntactic sugar for std::array<bool, N> More...
#include <array_of_bools.h>
Public Types | |
using | base_type = std::array< bool, N > |
Public Member Functions | |
template<std::size_t NN = N, typename = std::enable_if_t<NN==0>> | |
array_of_bools () | |
default ctor public only for N==0 | |
array_of_bools (bool v) | |
constructs an array filled with v | |
template<typename ... Bools, typename = std::enable_if_t<sizeof...(Bools)+1==N>> | |
array_of_bools (bool v, Bools... vs) | |
constructs an array filled with {v, vs...} | |
bool | all () const |
bool | any () const |
auto & | as_array () |
const auto & | as_array () const |
bool | none () const |
syntactic sugar for std::array<bool, N>
reason to exist: so can apply logical operations to the entire pack of bools, e.g. a && b
, and perform queries like a.any()
, a.none()
, etc.
using madness::array_of_bools< N >::base_type = std::array<bool, N> |
|
inline |
default ctor public only for N==0
|
inlineexplicit |
constructs an array filled with v
References madness::array_of_bools< N >::as_array(), and v.
|
inlineexplicit |
constructs an array filled with {v, vs...}
References v.
|
inline |
|
inline |
Referenced by madness::BSHOperatorPtr3D(), madness::Displacements< NDIM >::get_disp(), madness::GradBSHOperator(), madness::GradCoulombOperator(), madness::SeparatedConvolution< Q, NDIM >::make_coeff_for_operator(), madness::Displacements< NDIM >::make_disp_periodic(), madness::array_of_bools< N >::none(), madness::PeriodicBSHOperator3D(), madness::PeriodicBSHOperatorPtr3D(), madness::PeriodicHFExchangeOperator(), and madness::Displacements< NDIM >::reset_periodic_axes().
|
inline |
|
inline |
Referenced by madness::array_of_bools< N >::array_of_bools().
|
inline |
References madness::array_of_bools< N >::any().