File view_vector_composite.hpp¶
-
template<typename FirstView, typename SecondView>
class CompositeVector : public CompositeView<FirstView, SecondView>¶ - #include <view_vector_composite.hpp>
A vector that is backed two one-dimensional views.
- Template Parameters:
FirstView – The type of the first view
SecondView – The type of the second view
Public Functions
-
inline CompositeVector(FirstView &&firstView, SecondView &&secondView)¶
- Parameters:
firstView – The first view, the vector should be backed by
secondView – The second view, the vector should be backed by
-
inline CompositeVector(const CompositeVector<FirstView, SecondView> &other)¶
- Parameters:
other – A reference to an object of type
CompositeVector
that should be copied
-
inline CompositeVector(CompositeVector<FirstView, SecondView> &&other)¶
- Parameters:
other – A reference to an object of type
CompositeVector
that should be moved
-
inline virtual ~CompositeVector() override¶
-
inline void clear()¶
Sets all values stored in the view to zero.