MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / isExclusiveUse

Function isExclusiveUse

extensions/include/cuMat/src/Matrix.h:746–749  ·  view source on GitHub ↗

* \brief Checks if the this matrix has exclusive use to the underlying data, i.e. no other matrix expression shares the data. * This allows to check if this matrix is used in other expressions because that increments the internal reference counter. * If the internal reference counter is one, the matrix is nowhere else copied and this method returns true. * * This is used to de

Source from the content-addressed store, hash-verified

744 * \return
745 */
746 CUMAT_STRONG_INLINE bool isExclusiveUse() const
747 {
748 return data_.dataPointer().getCounter() == 1;
749 }
750
751 /**
752 * \brief Checks if the underlying data is used by an other matrix expression and if so,

Callers 2

makeExclusiveUseFunction · 0.70
Matrix.hFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected