A Vector of bools cannot be created because the is no compiler-independent implementation of the bit manipulators. Making all the constructors private should lead to compile-time errors. More...
#include <Vector.h>
Public Types | |
typedef bool | value_type |
Typedef to make the constructors look a bit cleaner. More... | |
typedef value_type & | reference |
Typedef to make the constructors look a bit cleaner. More... | |
typedef const value_type & | const_reference |
Typedef to make the constructors look a bit cleaner. More... | |
typedef size_t | size_type |
Typedef to make the constructors look a bit cleaner. More... | |
Public Member Functions | |
Vector (const double &dont_call_this_constructor) | |
Dummy constructor to avoid compiler from warning about only-private constructors. More... | |
Private Member Functions | |
Vector () | |
Construct an empty vector. More... | |
Vector (size_type __n) | |
A constructor that creates a vector of size __n. Note the use of explicit for "strong" type checking. More... | |
Vector (size_type __n, const bool &__value) | |
A constructor that creates a vector of size __n and initialises every entry to __value. More... | |
Vector (std::initializer_list< bool > init) | |
A constructor that creates a vector with entries set by the values in the input initialiser_list. Example: Vector<int> arr{true, false, false, true); Vector<int> arr = {true, false, false, true);. More... | |
Vector (const Vector< bool > &__x) | |
Copy constructor. More... | |
void | initialise (const bool &__value) |
Iterate over all values and set to the desired value. More... | |
A Vector of bools cannot be created because the is no compiler-independent implementation of the bit manipulators. Making all the constructors private should lead to compile-time errors.
typedef const value_type& oomph::Vector< bool >::const_reference |
typedef value_type& oomph::Vector< bool >::reference |
typedef size_t oomph::Vector< bool >::size_type |
typedef bool oomph::Vector< bool >::value_type |
|
inline |
|
inlineprivate |
|
inlineexplicitprivate |
|
inlineprivate |
|
inlineprivate |
A constructor that creates a vector with entries set by the values in the input initialiser_list. Example: Vector<int> arr{true, false, false, true); Vector<int> arr = {true, false, false, true);.
|
inlineprivate |
|
inlineprivate |