![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Constant vector expression whose elements are all zero. More...
#include <Vector.hpp>
Inheritance diagram for CDPL::Math::ZeroVector< T >:Public Types | |
| typedef T | ValueType |
| The scalar value type. More... | |
| typedef const T & | Reference |
Reference type (always a const reference — all elements are zero). More... | |
| typedef const T & | ConstReference |
| Constant reference type to the zero element. More... | |
| typedef std::size_t | SizeType |
| The unsigned size type. More... | |
| typedef std::ptrdiff_t | DifferenceType |
| The signed difference type. More... | |
| typedef VectorReference< SelfType > | ClosureType |
| Closure type used when this vector appears inside another expression. More... | |
| typedef const VectorReference< const SelfType > | ConstClosureType |
| Constant closure type used when this vector appears inside another expression. More... | |
| typedef Vector< T > | VectorTemporaryType |
| Concrete temporary vector type used by expression-template machinery. More... | |
Public Types inherited from CDPL::Math::VectorContainer< ZeroVector< T > > | |
| typedef ZeroVector< T > | ContainerType |
| The derived vector container type. More... | |
Public Types inherited from CDPL::Math::VectorExpression< E > | |
| typedef E | ExpressionType |
| The derived vector expression type. More... | |
Public Types inherited from CDPL::Math::Expression< E > | |
| typedef E | ExpressionType |
| The derived expression type (made available to expression-template machinery). More... | |
Public Member Functions | |
| ZeroVector () | |
| Constructs an empty zero vector. More... | |
| ZeroVector (SizeType n) | |
| Constructs a zero vector of size n. More... | |
| ZeroVector (const ZeroVector &v) | |
| Constructs a copy of the zero vector v. More... | |
| ConstReference | operator[] (SizeType i) const |
Returns a const reference to the zero element (alias for operator()). More... | |
| ConstReference | operator() (SizeType i) const |
Returns a const reference to the zero element. More... | |
| bool | isEmpty () const |
| Tells whether the vector has zero logical size. More... | |
| SizeType | getSize () const |
| Returns the logical element count. More... | |
| SizeType | getMaxSize () const |
| Returns the maximum representable element count. More... | |
| ZeroVector & | operator= (const ZeroVector &v) |
| Copy-assigns the logical size from v. More... | |
| void | resize (SizeType n) |
| Resizes the logical element count to n. More... | |
| void | swap (ZeroVector &v) |
| Swaps the logical sizes with v. More... | |
Public Member Functions inherited from CDPL::Math::VectorContainer< ZeroVector< T > > | |
| const ContainerType & | operator() () const |
Returns a const reference to the derived vector container. More... | |
| ContainerType & | operator() () |
| Returns a reference to the derived vector container. More... | |
Public Member Functions inherited from CDPL::Math::VectorExpression< E > | |
| const ExpressionType & | operator() () const |
Returns a const reference to the derived vector expression. More... | |
| ExpressionType & | operator() () |
| Returns a reference to the derived vector expression. More... | |
Friends | |
| void | swap (ZeroVector &v1, ZeroVector &v2) |
| ADL-enabled free-function form of swap(). More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CDPL::Math::VectorContainer< ZeroVector< T > > | |
| VectorContainer () | |
| ~VectorContainer () | |
Protected Member Functions inherited from CDPL::Math::VectorExpression< E > | |
| VectorExpression () | |
| ~VectorExpression () | |
Protected Member Functions inherited from CDPL::Math::Expression< E > | |
| Expression () | |
| ~Expression () | |
Constant vector expression whose elements are all zero.
| T | The scalar value type. |
| typedef T CDPL::Math::ZeroVector< T >::ValueType |
The scalar value type.
| typedef const T& CDPL::Math::ZeroVector< T >::Reference |
Reference type (always a const reference — all elements are zero).
| typedef const T& CDPL::Math::ZeroVector< T >::ConstReference |
Constant reference type to the zero element.
| typedef std::size_t CDPL::Math::ZeroVector< T >::SizeType |
The unsigned size type.
| typedef std::ptrdiff_t CDPL::Math::ZeroVector< T >::DifferenceType |
The signed difference type.
| typedef VectorReference<SelfType> CDPL::Math::ZeroVector< T >::ClosureType |
Closure type used when this vector appears inside another expression.
| typedef const VectorReference<const SelfType> CDPL::Math::ZeroVector< T >::ConstClosureType |
Constant closure type used when this vector appears inside another expression.
| typedef Vector<T> CDPL::Math::ZeroVector< T >::VectorTemporaryType |
Concrete temporary vector type used by expression-template machinery.
|
inline |
Constructs an empty zero vector.
|
inlineexplicit |
Constructs a zero vector of size n.
| n | The element count. |
|
inline |
Constructs a copy of the zero vector v.
| v | The zero vector to copy. |
|
inline |
Returns a const reference to the zero element (alias for operator()).
| i | The zero-based element index. |
const reference to the zero element. | Base::IndexError | if i is out of range. |
|
inline |
Returns a const reference to the zero element.
| i | The zero-based element index. |
const reference to the zero element. | Base::IndexError | if i is out of range. |
|
inline |
Tells whether the vector has zero logical size.
true if the logical size is zero, and false otherwise.
|
inline |
Returns the logical element count.
|
inline |
Returns the maximum representable element count.
|
inline |
Copy-assigns the logical size from v.
| v | The source zero vector. |
|
inline |
Resizes the logical element count to n.
| n | The new element count. |
|
inline |
Swaps the logical sizes with v.
| v | The zero vector to swap with. |
|
friend |
ADL-enabled free-function form of swap().
| v1 | The first zero vector. |
| v2 | The second zero vector. |