ERC CISST - cisst software
vctReturnDynamicVector< _elementType > Class Template Reference
[Vectors]
#include <vctDynamicVector.h>
Inheritance diagram for vctReturnDynamicVector< _elementType >:
[legend]Collaboration diagram for vctReturnDynamicVector< _elementType >:
[legend]List of all members.
Detailed Description
template<class _elementType>
class vctReturnDynamicVector< _elementType >
Class vctReturnDynamicVector is specialized to store a temporary vector object by transfering ownership. An object of this class has all the methods inherited from vctDynamicVector, but can only be constructed in one way -- taking the ownership from another vctDynamicVector (or vctReturnDynamicVector) object. In turn, when an assignment occurs from a vctReturnDynamicVector to a vctDynamicVector (or likewise construction), the lhs vctDynamicVector strips this object from the ownership of the data.
Use this class only when you want to return a newly created dynamic vector from a function, without going through memory allocation and deallocation. Never use it on an object that is going to remain in scope after constructing the vctReturnDynamicVector.
Definition at line 393 of file vctDynamicVector.h.
Public Types
Public Member Functions
Member Typedef Documentation
template<class _elementType>
The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu