Class slamcore::VectorInterface

class slamcore::VectorInterface : public ObjectInterface

Representing the vector object.

Subclassed by Vector

Getter methods for the common coordinates.

inline const ScalarT &x() const
inline const ScalarT &y() const
inline const ScalarT &z() const
inline const ScalarT &w() const

Coordinate access operators

inline const ScalarT &operator[](const std::size_t i) const
inline const ScalarT &operator()(const std::size_t i) const
inline const ScalarT &get(const std::size_t i) const

range-for loops helpers.

inline iterator begin() const
inline iterator end() const

Public Types

using Ptr = std::shared_ptr<VectorInterface>
using CPtr = std::shared_ptr<const VectorInterface>
using value_type = ScalarT
using iterator = RangeIterator<VectorInterface>

Public Functions

inline virtual ObjectType type() const

Type of the object.

virtual ~VectorInterface() = default
virtual std::size_t size() const = 0

Number of components.