Public Types | Public Member Functions | Private Member Functions | List of all members
oomph::Vector< bool > Class Reference

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>

+ Inheritance diagram for oomph::Vector< bool >:

Public Types

typedef bool value_type
 Typedef to make the constructors look a bit cleaner.
 
typedef value_typereference
 Typedef to make the constructors look a bit cleaner.
 
typedef const value_typeconst_reference
 Typedef to make the constructors look a bit cleaner.
 
typedef size_t size_type
 Typedef to make the constructors look a bit cleaner.
 

Public Member Functions

 Vector (const double &dont_call_this_constructor)
 Dummy constructor to avoid compiler from warning about only-private constructors.
 

Private Member Functions

 Vector ()
 Construct an empty vector.
 
 Vector (size_type __n)
 A constructor that creates a vector of size __n. Note the use of explicit for "strong" type checking.
 
 Vector (size_type __n, const bool &__value)
 A constructor that creates a vector of size __n and initialises every entry to __value.
 
 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);.
 
 Vector (const Vector< bool > &__x)
 Copy constructor.
 
void initialise (const bool &__value)
 Iterate over all values and set to the desired value.
 

Detailed Description

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.

Definition at line 200 of file Vector.h.

Member Typedef Documentation

◆ const_reference

typedef const value_type& oomph::Vector< bool >::const_reference

Typedef to make the constructors look a bit cleaner.

Definition at line 210 of file Vector.h.

◆ reference

Typedef to make the constructors look a bit cleaner.

Definition at line 207 of file Vector.h.

◆ size_type

Typedef to make the constructors look a bit cleaner.

Definition at line 213 of file Vector.h.

◆ value_type

typedef bool oomph::Vector< bool >::value_type

Typedef to make the constructors look a bit cleaner.

Definition at line 204 of file Vector.h.

Constructor & Destructor Documentation

◆ Vector() [1/6]

oomph::Vector< bool >::Vector ( const double dont_call_this_constructor)
inline

Dummy constructor to avoid compiler from warning about only-private constructors.

Definition at line 218 of file Vector.h.

◆ Vector() [2/6]

oomph::Vector< bool >::Vector ( )
inlineprivate

Construct an empty vector.

Definition at line 230 of file Vector.h.

◆ Vector() [3/6]

oomph::Vector< bool >::Vector ( size_type  __n)
inlineexplicitprivate

A constructor that creates a vector of size __n. Note the use of explicit for "strong" type checking.

Definition at line 234 of file Vector.h.

◆ Vector() [4/6]

oomph::Vector< bool >::Vector ( size_type  __n,
const bool __value 
)
inlineprivate

A constructor that creates a vector of size __n and initialises every entry to __value.

Definition at line 238 of file Vector.h.

◆ Vector() [5/6]

oomph::Vector< bool >::Vector ( std::initializer_list< bool init)
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);.

Definition at line 247 of file Vector.h.

◆ Vector() [6/6]

oomph::Vector< bool >::Vector ( const Vector< bool > &  __x)
inlineprivate

Copy constructor.

Definition at line 250 of file Vector.h.

Member Function Documentation

◆ initialise()

void oomph::Vector< bool >::initialise ( const bool __value)
inlineprivate

Iterate over all values and set to the desired value.

Definition at line 253 of file Vector.h.


The documentation for this class was generated from the following file: