matio-cpp
v0.2.5
A C++ wrapper of the matio library, with memory ownership handling, to read and write .mat files.
|
#include <matioCpp/MatvarHandler.h>
Public Member Functions | |
PointerInfo () | |
The deletion mode. More... | |
PointerInfo (matvar_t *ptr, DeleteMode deleteMode) | |
Constructor. More... | |
~PointerInfo () | |
Destructor. More... | |
void | changePointer (matvar_t *ptr, DeleteMode deleteMode) |
Change the input pointer. More... | |
void | deletePointer () |
Delete the matvar pointer. More... | |
matvar_t * | pointer () |
Get the matvar pointer. More... | |
VariableType | variableType () const |
Get the variable type. More... | |
ValueType | valueType () const |
Get the value type. More... | |
DeleteMode | deleteMode () const |
Get the deletion mode. More... | |
bool | operator!= (const PointerInfo &other) const |
Comparison operator. More... | |
Static Public Member Functions | |
static void | DeletePointer (matvar_t *ptr, DeleteMode deleteMode) |
Delete the given pointer given the mode. More... | |
Definition at line 17 of file MatvarHandler.h.
matioCpp::MatvarHandler::PointerInfo::PointerInfo | ( | ) |
The deletion mode.
Default constructor
Definition at line 12 of file MatvarHandler.cpp.
References matioCpp::DoNotDelete, matioCpp::Unsupported, and matioCpp::UNSUPPORTED.
matioCpp::MatvarHandler::PointerInfo::PointerInfo | ( | matvar_t * | ptr, |
DeleteMode | deleteMode | ||
) |
Constructor.
ptr | The input pointer |
deleteMode | The deletion mode |
Definition at line 20 of file MatvarHandler.cpp.
matioCpp::MatvarHandler::PointerInfo::~PointerInfo | ( | ) |
Destructor.
Definition at line 25 of file MatvarHandler.cpp.
void matioCpp::MatvarHandler::PointerInfo::changePointer | ( | matvar_t * | ptr, |
DeleteMode | deleteMode | ||
) |
Change the input pointer.
ptr | The new pointer |
deleteMode | The corresponding deletion mode |
Definition at line 30 of file MatvarHandler.cpp.
References matioCpp::get_types_from_matvart(), matioCpp::MatvarHandler::m_ptr, matioCpp::Unsupported, and matioCpp::UNSUPPORTED.
matioCpp::DeleteMode matioCpp::MatvarHandler::PointerInfo::deleteMode | ( | ) | const |
void matioCpp::MatvarHandler::PointerInfo::deletePointer | ( | ) |
Delete the matvar pointer.
Definition at line 40 of file MatvarHandler.cpp.
References matioCpp::MatvarHandler::m_ptr.
|
static |
Delete the given pointer given the mode.
ptr | The pointer to delete |
deleteMode | The deletion mode |
Definition at line 71 of file MatvarHandler.cpp.
References matioCpp::Delete, and matioCpp::ShallowDelete.
Referenced by matioCpp::MatvarHandler::Ownership::dropAll().
bool matioCpp::MatvarHandler::PointerInfo::operator!= | ( | const PointerInfo & | other | ) | const |
Comparison operator.
other | The pointer to compare |
Definition at line 66 of file MatvarHandler.cpp.
References matioCpp::MatvarHandler::m_ptr.
matvar_t * matioCpp::MatvarHandler::PointerInfo::pointer | ( | ) |
Get the matvar pointer.
Definition at line 46 of file MatvarHandler.cpp.
References matioCpp::MatvarHandler::m_ptr.
matioCpp::ValueType matioCpp::MatvarHandler::PointerInfo::valueType | ( | ) | const |
matioCpp::VariableType matioCpp::MatvarHandler::PointerInfo::variableType | ( | ) | const |