Skip to main content

DPF C++ client library 2023 R2

ansys::dpf::DpfVector< std::string > Class Reference

Last update: 10.07.2023

Represents a modifiable vector of data and manages its memory. More...

#include <dpf_api_base.h>

Public Member Functions

 DpfVector (DpfTypes const &for_object)
 
 DpfVector (LibraryHandle const &library_handle)
 
 DpfVector (DpfVector const &)=delete
 
 DpfVector (DpfVector &&)
 
DpfVectoroperator= (DpfVector const &)=delete
 
DpfVectoroperator= (DpfVector &&)=delete
 
std::string operator[] (dp_index idx) const
 
char **const data () const
 
dp_int size () const
 
bool defined () const
 
void copy (std::vector< std::string > &to_fill) const
 
std::vector< std::string > copy () const
 

Detailed Description

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.

Member Function Documentation

◆ defined()

bool ansys::dpf::DpfVector< std::string >::defined ( ) const

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

◆ size()

dp_int ansys::dpf::DpfVector< std::string >::size ( ) const

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