Skip to main content
Represents a modifiable vector of data and manages its memory. #include <dpf_api_base.h>

Public Member Functions

Detailed Description

template<typename T>
class ansys::dpf::DpfVector< T >
Represents a modifiable vector of data and manages its memory. If the DpfVector is returned by a local entity, then it’s a direct pointer to its data else if the DpfVector is returned by a remote entity, then it’s a copy of the data and the remote data is updated (if necessary) when the DpfVector is destructed.

Constructor & Destructor Documentation

DpfVector()

Creates a vector from a range of an other vector (range from begin to end). Copyless constructor: the new vector is created with a reference on the same data as begin and end: modifying the new vector data, will also modify the initial vector.

Member Function Documentation

commit()

Update the data in the object (if the vector is pointing on remote data).

defined()

Return an true information if the DpfVector object has data set.

reset()

Reinitialize the data with a range of an other vector (range from begin to end). Copyless: the new data is created with a reference on the same data as begin and end: modifying the new vector data, will also modify the initial vector.

size()

Return the size of the data contained in the DpfVector object.