    

 ## On this page

  

 

 # ansys::dpf::DpfVector&lt; std::string &gt; Class Reference

 Last update: 16.07.2025 

Represents a modifiable vector of data and manages its memory. [More...](classansys_1_1dpf_1_1DpfVector_3_01std_1_1string_01_4.xhtml#details)

`#include <dpf_api_base.h>`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="a3f22bafefe577a577ca1922b7f01494b" name="a3f22bafefe577a577ca1922b7f01494b"></a> **DpfVector** ([DpfTypes](classansys_1_1dpf_1_1DpfTypes.xhtml) const &amp;for\_object) <a id="aef8136509e2979b349120c1ad9dabbfa" name="aef8136509e2979b349120c1ad9dabbfa"></a> **DpfVector** ([DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml) const &amp;)=delete <a id="a8122bb5ba23d302c236ffb3dfdfb5ffd" name="a8122bb5ba23d302c236ffb3dfdfb5ffd"></a> **DpfVector** ([DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml) &amp;&amp;) <a id="ac0fbd4432b0c2f71e54e0a8c09261f53" name="ac0fbd4432b0c2f71e54e0a8c09261f53"></a>[DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml) &amp; **operator=** ([DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml) const &amp;)=delete <a id="a1da44cb6b9c8d1c9b329de281b1ecf4a" name="a1da44cb6b9c8d1c9b329de281b1ecf4a"></a>[DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml) &amp; **operator=** ([DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml) &amp;&amp;)=delete <a id="abf7bb24b1472d59bf762ec0a17d3206b" name="abf7bb24b1472d59bf762ec0a17d3206b"></a>std::string **operator\[\]** ([dp\_index](namespaceansys_1_1dpf.xhtml#a417548d1b705a9ba54ba9429afe68920) idx) const <a id="afbe78e3c9d22168b7af99c7096ef696b" name="afbe78e3c9d22168b7af99c7096ef696b"></a>char \*\*const **data** () const [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) [size](classansys_1_1dpf_1_1DpfVector_3_01std_1_1string_01_4.xhtml#a156b0cca472bfe35a025915e3b09c7d7) () const bool [defined](classansys_1_1dpf_1_1DpfVector_3_01std_1_1string_01_4.xhtml#a1a5660a40d27752e8ecf9d901e8fb1c6) () const <a id="aa05689f762f50261d089ffa487dc9361" name="aa05689f762f50261d089ffa487dc9361"></a>void **copy** (std::vector&lt; std::string &gt; &amp;to\_fill) const <a id="a18220ac80c9aaddd3de1288ab29296f6" name="a18220ac80c9aaddd3de1288ab29296f6"></a>std::vector&lt; std::string &gt; **copy** () const <a id="details" name="details"></a>## Detailed Description

Represents a modifiable vector of data and manages its memory.

If the [DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml "Represents a modifiable vector of data and manages its memory.") is returned by a local entity, then it's a direct pointer to its data else if the [DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml "Represents a modifiable vector of data and manages its memory.") 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](classansys_1_1dpf_1_1DpfVector.xhtml "Represents a modifiable vector of data and manages its memory.") is destructed.



## Member Function Documentation

<a id="a1a5660a40d27752e8ecf9d901e8fb1c6" name="a1a5660a40d27752e8ecf9d901e8fb1c6"></a>## [◆ ](#a1a5660a40d27752e8ecf9d901e8fb1c6)defined()

 bool [ansys::dpf::DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml)&lt; std::string &gt;::defined  ( )  const

Return an true information if the [DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml "Represents a modifiable vector of data and manages its memory.") object has data set.





<a id="a156b0cca472bfe35a025915e3b09c7d7" name="a156b0cca472bfe35a025915e3b09c7d7"></a>## [◆ ](#a156b0cca472bfe35a025915e3b09c7d7)size()

 [dp\_int](namespaceansys_1_1dpf.xhtml#a60d181a1f9d29cc7cc38b25dac4401f0) [ansys::dpf::DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml)&lt; std::string &gt;::size  ( )  const

Return the size of the data contained in the [DpfVector](classansys_1_1dpf_1_1DpfVector.xhtml "Represents a modifiable vector of data and manages its memory.") object.