17 , m_ownership(
other.m_ownership)
24 , m_ownership(
other.m_ownership)
38 , m_ownership(
owner.ownership())
41 auto locked = m_ownership.lock();
50 m_ownership =
owner->weakOwnership().m_ownership;
51 m_ptr = std::make_shared<PointerInfo>(
inputPtr, mode);
53 auto locked = m_ownership.lock();
68 auto locked = m_ownership.lock();
87 std::cerr <<
"[ERROR][matioCpp::WeakMatvar::duplicateFromMatio] Cannot duplicate from inputPtr. A WeakMatvar cannot modify the matvar pointer." <<
std::endl;
94 std::cerr <<
"[ERROR][matioCpp::WeakMatvar::importMatvar] Cannot import inputPtr. A WeakMatvar cannot modify the matvar pointer." <<
std::endl;
111 auto locked = m_ownership.lock();
120 m_ownership =
other.m_ownership;
127 m_ownership =
other.m_ownership;
134 return operator=(
other.weakOwnership());
MultiDimensionalArray is a particular type of Variable specialized for multidimensional arrays of a g...
typename std::allocator_traits< std::allocator< element_type > >::pointer pointer
The reference type.
virtual matvar_t * get() const final
Docs inherited.
WeakMatvar()
Default constructor.
virtual bool isShared() const final
Docs inherited.
WeakMatvar & operator=(const WeakMatvar &other)
Copy assignement.
virtual MatvarHandler * pointerToDuplicate() const final
Docs inherited.
virtual bool importMatvar(matvar_t *) final
Docs inherited.
virtual WeakMatvar weakOwnership() const final
Docs inherited.
virtual bool duplicateMatvar(const matvar_t *) final
Docs inherited.
virtual void dropOwnedPointer(matvar_t *previouslyOwnedPointer) final
Docs inherited.
DeleteMode
The delete mode of matvar_t pointers.