Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::StoreIProxyItemVariable Class Reference

Class for accessing the proxy without dereferencing in the code. More...

#include <arcane/impl/internal/LoadBalanceMngInternal.h>

Collaboration diagram for Arcane::StoreIProxyItemVariable:

Public Member Functions

 StoreIProxyItemVariable (IVariable *var=nullptr, Integer pos=0)
 StoreIProxyItemVariable (const StoreIProxyItemVariable &src)
Real operator[] (ItemEnumerator i) const
 Access to the value associated with a mesh entity, in the form of a Real.
StoreIProxyItemVariable & operator= (const StoreIProxyItemVariable &src)
Integer getPos () const

Static Protected Member Functions

static IProxyItemVariableproxyItemVariableFactory (IVariable *var, Integer pos=0)
 Factory for construction based on the initial variable type.

Private Attributes

AutoRefT< IProxyItemVariablem_var
 Pointer to the variable.

Detailed Description

Class for accessing the proxy without dereferencing in the code.

It is independent of the variable type (Integer, Real). It is automatically memory managed (via AutoRefT).

Definition at line 79 of file LoadBalanceMngInternal.h.

Constructor & Destructor Documentation

◆ StoreIProxyItemVariable() [1/2]

Arcane::StoreIProxyItemVariable::StoreIProxyItemVariable ( IVariable * var = nullptr,
Integer pos = 0 )
inline

Definition at line 83 of file LoadBalanceMngInternal.h.

◆ StoreIProxyItemVariable() [2/2]

Arcane::StoreIProxyItemVariable::StoreIProxyItemVariable ( const StoreIProxyItemVariable & src)
inline

Definition at line 88 of file LoadBalanceMngInternal.h.

Member Function Documentation

◆ getPos()

Integer Arcane::StoreIProxyItemVariable::getPos ( ) const
inline

Definition at line 107 of file LoadBalanceMngInternal.h.

◆ operator=()

StoreIProxyItemVariable & Arcane::StoreIProxyItemVariable::operator= ( const StoreIProxyItemVariable & src)
inline

Definition at line 100 of file LoadBalanceMngInternal.h.

◆ operator[]()

Real Arcane::StoreIProxyItemVariable::operator[] ( ItemEnumerator i) const
inline

Access to the value associated with a mesh entity, in the form of a Real.

Definition at line 95 of file LoadBalanceMngInternal.h.

References m_var.

◆ proxyItemVariableFactory()

IProxyItemVariable * Arcane::StoreIProxyItemVariable::proxyItemVariableFactory ( IVariable * var,
Integer pos = 0 )
staticprotected

Factory for construction based on the initial variable type.

Factory for constructing proxy variables.

Currently, only Real and Int32 type variables are meaningful.

Definition at line 106 of file LoadBalanceMngInternal.cc.

References Arcane::IVariable::dataType(), Arcane::DT_Int32, and Arcane::DT_Real.

Here is the call graph for this function:

Member Data Documentation

◆ m_var

AutoRefT<IProxyItemVariable> Arcane::StoreIProxyItemVariable::m_var
private

Pointer to the variable.

Definition at line 120 of file LoadBalanceMngInternal.h.

Referenced by operator[]().


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