AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
A wrapper over Primal's Vector3D that also includes dimension information. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/inlet/InletVector.hpp>
Public Member Functions | |
InletVector ()=default | |
Constructs an empty vector (size defaults to 3) More... | |
InletVector (std::initializer_list< double > values) | |
Constructs a vector with an initializer list. More... | |
InletVector (primal::Vector3D &&v, int d=3) | |
Constructs a vector with an existing Primal vector and a dimension. More... | |
double | operator[] (const int i) const |
Retrieves an element of the vector. More... | |
double & | operator[] (const int i) |
operator axom::primal::Vector3D & () | |
Retrieves the underlying Primal vector. More... | |
operator const axom::primal::Vector3D & () const | |
Public Attributes | |
primal::Vector3D | vec |
int | dim = 3 |
A wrapper over Primal's Vector3D that also includes dimension information.
Vector3D is a statically-sized (stack-allocated) three-element vector. To represent two-element vectors using this type, additional dimension information is required
vec
member directly
|
default |
Constructs an empty vector (size defaults to 3)
|
inline |
Constructs a vector with an initializer list.
[in] | values | The vector components to construct with |
|
inline |
Constructs a vector with an existing Primal vector and a dimension.
[in] | v | The existing Primal vector |
[in] | d | The dimension of the vector |
|
inline |
Retrieves an element of the vector.
[in] | i | The index of the element to retrieve (zero-indexed) |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
Retrieves the underlying Primal vector.
References vec.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References vec.
primal::Vector3D axom::inlet::InletVector::vec |
int axom::inlet::InletVector::dim = 3 |
Referenced by axom::inlet::operator<<(), and axom::inlet::operator==().