|
MADNESS 0.10.1
|
syntactic sugar for std::array<bool, N> More...
#include <array_of_bools.h>


Classes | |
| struct | nonempty_default_ctor_tag |
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 |
| template<std::size_t C> | |
| array_of_bools | and_back (const array_of_bools< C > &a) const |
| template<std::size_t C> | |
| array_of_bools | and_front (const array_of_bools< C > &a) const |
| bool | any () const |
| auto & | as_array () |
| const auto & | as_array () const |
| template<std::size_t C> | |
| array_of_bools & | assign_back (const array_of_bools< C > &a) |
| template<std::size_t C> | |
| array_of_bools & | assign_front (const array_of_bools< C > &a) |
| template<std::size_t C> | |
| array_of_bools< C > | back () const |
| template<std::size_t C> | |
| array_of_bools< C > | front () const |
| bool | none () const |
| template<std::size_t C> | |
| array_of_bools | or_back (const array_of_bools< C > &a) const |
| template<std::size_t C> | |
| array_of_bools | or_front (const array_of_bools< C > &a) const |
Private Member Functions | |
| template<std::size_t NN = N, typename = std::enable_if_t<NN!=0>> | |
| array_of_bools (nonempty_default_ctor_tag={}) | |
Friends | |
| template<std::size_t NN> | |
| class | array_of_bools |
| array_of_bools< N > | operator! (const array_of_bools< N > &a) |
| array_of_bools< N > | operator&& (bool b, const array_of_bools< N > &a) |
| array_of_bools< N > | operator&& (const array_of_bools< N > &a, bool b) |
| array_of_bools< N > | operator&& (const array_of_bools< N > &a, const array_of_bools< N > &b) |
| array_of_bools< N > | operator^ (bool b, const array_of_bools< N > &a) |
| array_of_bools< N > | operator^ (const array_of_bools< N > &a, bool b) |
| array_of_bools< N > | operator^ (const array_of_bools< N > &a, const array_of_bools< N > &b) |
| array_of_bools< N > | operator|| (bool b, const array_of_bools< N > &a) |
| array_of_bools< N > | operator|| (const array_of_bools< N > &a, bool b) |
| array_of_bools< N > | operator|| (const array_of_bools< N > &a, const array_of_bools< N > &b) |
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
|
inlineexplicit |
constructs an array filled with {v, vs...}
|
inlineexplicitprivate |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by madness::Displacements< NDIM >::get_disp(), madness::Displacements< NDIM >::make_disp_periodic(), madness::array_of_bools< NDIM >::none(), madness::Displacements< NDIM >::periodic(), and madness::Displacements< NDIM >::reset_periodic_axes().
|
inline |
|
inline |
Referenced by madness::array_of_bools< NDIM >::array_of_bools().
|
inline |
assigns a to the last C elements of this
| a | the array to assign to the back of this |
|
inline |
assigns a to the first C elements of this
| a | the array to assign to the front of this |
|
inline |
C elements
|
inline |
C elements
|
inline |
|
inline |
C elements obtained by logical OR between a and the last C elements of this, the rest filled with the remainder of this Referenced by madness::FunctionImpl< T, LDIM >::do_apply().
|
inline |
C elements obtained by logical OR between a and the first C elements of this, the rest filled with the remainder of this Referenced by madness::FunctionImpl< T, LDIM >::do_apply().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |