Class ansys::dpf::DpfVector
Last update: 25.03.2026
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.
Template parameters:
- typename T
Inner classes
Members
- begin
- commit
- copy
- copy
- data
- data
- defined
- DpfVector
- DpfVector
- DpfVector
- DpfVector
- DpfVector
- DpfVector
- end
- operator=
- operator=
- operator[]
- operator[]
- reset
- size
- ~DpfVector
Friends
Public functions
Function DpfVector
ansys::dpf::DpfVector< T >::DpfVector()
Return type:
Function DpfVector
ansys::dpf::DpfVector< T >::DpfVector(Client const *const for_object)
Parameters:
- Client const *const for_object
Return type:
Function DpfVector
ansys::dpf::DpfVector< T >::DpfVector(Client const &for_object)
Parameters:
- Client const & for_object
Return type:
Function DpfVector
ansys::dpf::DpfVector< T >::DpfVector(iterator const &begin, iterator const &end)
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.
Parameters:
- iterator const & begin
- iterator const & end
Return type:
Function ~DpfVector
ansys::dpf::DpfVector< T >::~DpfVector()
Return type:
Function DpfVector
ansys::dpf::DpfVector< T >::DpfVector(DpfVector const &)
Parameters:
- rhsDpfVector const &
Return type:
Function DpfVector
ansys::dpf::DpfVector< T >::DpfVector(DpfVector &&) noexcept
Parameters:
- rhsDpfVector &&
Return type:
Function operator=
DpfVector< T > & ansys::dpf::DpfVector< T >::operator=(DpfVector const &)
Parameters:
- rhsDpfVector const &
Return type: DpfVector &
Function operator=
DpfVector< T > & ansys::dpf::DpfVector< T >::operator=(DpfVector &&) noexcept
Parameters:
- rhsDpfVector &&
Return type: DpfVector &
Function operator[]
T & ansys::dpf::DpfVector< T >::operator[](dp_index idx)
Parameters:
- dp_index idx
Return type: T &
Function operator[]
T ansys::dpf::DpfVector< T >::operator[](dp_index idx) const
Parameters:
- dp_index idx
Return type: T
Function data
T const *const ansys::dpf::DpfVector< T >::data() const
Return type: T const *const
Function data
T *const ansys::dpf::DpfVector< T >::data()
Return type: T *const
Function size
dp_int ansys::dpf::DpfVector< T >::size() const
Return the size of the data contained in the DpfVector object.
Return type: dp_int
Function defined
bool ansys::dpf::DpfVector< T >::defined() const
Return an true information if the DpfVector object has data set.
Return type: bool
Function commit
void ansys::dpf::DpfVector< T >::commit() const
Update the data in the object (if the vector is pointing on remote data).
Return type: void
Function copy
void ansys::dpf::DpfVector< T >::copy(std::vector< T > &to_fill) const
Parameters:
- std::vector< T > & to_fill
Return type: void
Function copy
std::vector< T > ansys::dpf::DpfVector< T >::copy() const
Return type: std::vector< T >
Function begin
iterator ansys::dpf::DpfVector< T >::begin() const
Return type: iterator
Function end
iterator ansys::dpf::DpfVector< T >::end() const
Return type: iterator
Function reset
void ansys::dpf::DpfVector< T >::reset(iterator const &begin, iterator const &end)
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.
Parameters:
- iterator const & begin
- iterator const & end
Return type: void