Flow123d  DF_patch_fe_data_tables-586fb30
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
FieldCacheProxy Class Reference

Helper class, holds data of one field. More...

#include <python_field_proxy.hh>

Collaboration diagram for FieldCacheProxy:
Collaboration graph
[legend]

Public Member Functions

 FieldCacheProxy (std::string field_name, std::vector< uint > shape, double *field_cache_data, uint data_size)
 Constructor. More...
 
 FieldCacheProxy (const FieldCacheProxy &other)
 Copy constructor. More...
 
const std::string & field_name () const
 Getter returns field name. More...
 

Static Public Member Functions

static py::buffer_info field_proxy_get_buffer (FieldCacheProxy &proxy)
 

Private Attributes

std::string field_name_
 
std::vector< uintshape_
 
double * field_cache_data_
 
uint data_size_
 

Detailed Description

Helper class, holds data of one field.

Definition at line 31 of file python_field_proxy.hh.

Constructor & Destructor Documentation

◆ FieldCacheProxy() [1/2]

FieldCacheProxy::FieldCacheProxy ( std::string  field_name,
std::vector< uint shape,
double *  field_cache_data,
uint  data_size 
)
inline

Constructor.

Definition at line 70 of file python_field_proxy.hh.

◆ FieldCacheProxy() [2/2]

FieldCacheProxy::FieldCacheProxy ( const FieldCacheProxy other)
inline

Copy constructor.

Definition at line 75 of file python_field_proxy.hh.

Member Function Documentation

◆ field_name()

const std::string& FieldCacheProxy::field_name ( ) const
inline

Getter returns field name.

Definition at line 80 of file python_field_proxy.hh.

Here is the caller graph for this function:

◆ field_proxy_get_buffer()

static py::buffer_info FieldCacheProxy::field_proxy_get_buffer ( FieldCacheProxy proxy)
inlinestatic

Method encapsulates FieldValueCache data array for usage in Python. Allows to create C++ and Python objects above shared block of memory.

Definition at line 38 of file python_field_proxy.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ data_size_

uint FieldCacheProxy::data_size_
private

Definition at line 87 of file python_field_proxy.hh.

◆ field_cache_data_

double* FieldCacheProxy::field_cache_data_
private

Definition at line 86 of file python_field_proxy.hh.

◆ field_name_

std::string FieldCacheProxy::field_name_
private

Definition at line 84 of file python_field_proxy.hh.

◆ shape_

std::vector<uint> FieldCacheProxy::shape_
private

Definition at line 85 of file python_field_proxy.hh.


The documentation for this class was generated from the following file: