|
#include <RobotAPI/libraries/aron/core/type/variant/ndarray/Matrix.h>
Public Member Functions | |
int | getCols () const |
type::matrix::ElementType | getElementType () const |
std::string | getFullName () const override |
get the full name of this specific type More... | |
int | getRows () const |
std::string | getShortName () const override |
get a short name of this specific type More... | |
Matrix (const Path &path=Path()) | |
Matrix (const type::dto::Matrix &, const Path &path=Path()) | |
void | setCols (const int) |
void | setElementType (const type::matrix::ElementType) |
void | setRows (const int) |
type::dto::MatrixPtr | toMatrixDTO () const |
Public Member Functions inherited from NDArrayVariant< type::dto::Matrix, Matrix > | |
size_t | childrenSize () const override |
std::vector< VariantPtr > | getChildren () const override |
get all child elements More... | |
std::string | getDefaultValue () const |
VariantPtr | navigateAbsolute (const Path &path) const override |
naviate absolute More... | |
void | setDefaultValue (const std::string &v) |
virtual | ~NDArrayVariant ()=default |
Public Member Functions inherited from SpecializedVariantBase< type::dto::Matrix, Matrix > | |
type::Maybe | getMaybe () const override |
get the maybe type More... | |
VariantPtr | navigateRelative (const Path &path) const override |
navigate relative More... | |
operator type::dto::Matrix () | |
bool | operator== (const Matrix &other) const |
bool | operator== (const Variant &other) const override |
void | setMaybe (const type::Maybe m) override |
set the maybetype of this type More... | |
SpecializedVariantBase (const type::Descriptor &descriptor, const Path &path) | |
SpecializedVariantBase (const type::dto::Matrix &o, const type::Descriptor &descriptor, const Path &path) | |
type::dto::GenericTypePtr | toAronDTO () const override |
convert this variant to a dto object. More... | |
virtual | ~SpecializedVariantBase ()=default |
Public Member Functions inherited from Variant | |
virtual size_t | childrenSize () const =0 |
virtual std::vector< VariantPtr > | getChildren () const =0 |
get all child elements More... | |
type::Descriptor | getDescriptor () const |
virtual type::Maybe | getMaybe () const =0 |
get the maybe type More... | |
Path | getPath () const |
bool | operator== (const VariantPtr &other) const |
std::string | pathToString () const |
virtual type::dto::GenericTypePtr | toAronDTO () const =0 |
convert this variant to a dto object. More... | |
Variant (const type::Descriptor &descriptor, const Path &path=Path()) | |
virtual | ~Variant ()=default |
Static Public Attributes | |
static const std::map< matrix::ElementType, std::string > | Elementtype2String |
static const std::map< std::string, matrix::ElementType > | String2Elementtype |
Additional Inherited Members | |
Public Types inherited from Variant | |
using | PointerType = VariantPtr |
Static Public Member Functions inherited from SpecializedVariantBase< type::dto::Matrix, Matrix > | |
static const Matrix & | DynamicCast (const Variant &n) |
static std::shared_ptr< Matrix > | DynamicCast (const VariantPtr &n) |
static Matrix & | DynamicCast (Variant &n) |
static std::shared_ptr< Matrix > | DynamicCastAndCheck (const VariantPtr &n) |
Static Public Member Functions inherited from Variant | |
static VariantPtr | FromAronDTO (const type::dto::GenericType &, const Path &=Path()) |
create a variant object from an dto object More... | |
Protected Attributes inherited from SpecializedVariantBase< type::dto::Matrix, Matrix > | |
type::dto::Matrix ::PointerType | aron |
Protected Attributes inherited from Variant | |
const type::Descriptor | descriptor |
const Path | path |
The Matrix class.
It represents the matrix type A Matrix is defined through the number of rows, cols and the element type
Definition at line 47 of file Matrix.cpp.
Definition at line 52 of file Matrix.cpp.
int getCols | ( | ) | const |
type::matrix::ElementType getElementType | ( | ) | const |
|
overridevirtual |
get the full name of this specific type
Implements Variant.
Definition at line 117 of file Matrix.cpp.
int getRows | ( | ) | const |
|
overridevirtual |
get a short name of this specific type
Implements Variant.
Definition at line 111 of file Matrix.cpp.
void setCols | ( | const int | h | ) |
void setElementType | ( | const type::matrix::ElementType | u | ) |
Definition at line 98 of file Matrix.cpp.
void setRows | ( | const int | w | ) |
type::dto::MatrixPtr toMatrixDTO | ( | ) | const |
Definition at line 104 of file Matrix.cpp.
|
static |
|
static |