1 #ifndef MATIOCPP_ELEMENT_H
2 #define MATIOCPP_ELEMENT_H
Element allows having a 1x1 variable (like double, int,..) castable to a primitive type.
matioCpp::Span< element_type > toSpan()
Get this Vector as a Span.
typename std::allocator_traits< std::allocator< element_type > >::const_pointer const_pointer
The pointer type.
reference operator()()
Access the Element.
Element()
The const pointer type.
Element(const std::string &name, element_type inputValue)
Constructor.
element_type & reference
Defines the type of the Element.
bool setName(const std::string &newName)
Change the name of the Variable.
Element< T > & operator=(const Element< T > &other)
Assignement operator (copy) from another Element.
typename std::allocator_traits< std::allocator< element_type > >::pointer pointer
The reference type.
Element< T > & operator=(element_type value)
Assignement operator (copy) from an element of type T.
typename get_type< T >::type element_type
Defines the type specified in the template.
std::remove_cv_t< element_type > value_type
Defines the type of the Element.
The matioCpp::Variable class is the equivalent of matvar_t in matio.
std::string name() const
Get the name of the Variable.
matioCpp::VariableType variableType() const
Get the VariableType.
matioCpp::ValueType valueType() const
Get the ValueType.
VariableType
Define the type of variable.
ValueType
The list of types for an element of a certain variable type.
Utility metafunction to get the ValueType from a given primitive type.