Flow123d  DF_patch_fe_darcy_complete-579fe1e
Public Member Functions | Private Attributes | List of all members
RevertibleValue Struct Reference

#include <patch_point_values.hh>

Public Member Functions

 RevertibleValue ()
 Default constructor. More...
 
 RevertibleValue (const RevertibleValue &other)
 Copy constructor. More...
 
RevertibleValueoperator= (RevertibleValue &other)
 Declaration of operators. More...
 
RevertibleValueoperator++ ()
 
RevertibleValueoperator+= (std::size_t inc_val)
 
std::size_t operator() () const
 
void reset ()
 Reset value to zero. More...
 
void make_permanent ()
 Finalize temporary value. More...
 

Private Attributes

std::size_t permanent_
 
std::size_t temporary_
 

Detailed Description

Definition at line 75 of file patch_point_values.hh.

Constructor & Destructor Documentation

◆ RevertibleValue() [1/2]

RevertibleValue::RevertibleValue ( )
inline

Default constructor.

Definition at line 78 of file patch_point_values.hh.

◆ RevertibleValue() [2/2]

RevertibleValue::RevertibleValue ( const RevertibleValue other)
inline

Copy constructor.

Definition at line 81 of file patch_point_values.hh.

Member Function Documentation

◆ make_permanent()

void RevertibleValue::make_permanent ( )
inline

Finalize temporary value.

Definition at line 122 of file patch_point_values.hh.

Here is the caller graph for this function:

◆ operator()()

std::size_t RevertibleValue::operator() ( ) const
inline

Definition at line 104 of file patch_point_values.hh.

◆ operator++()

RevertibleValue& RevertibleValue::operator++ ( )
inline

Definition at line 92 of file patch_point_values.hh.

◆ operator+=()

RevertibleValue& RevertibleValue::operator+= ( std::size_t  inc_val)
inline

Definition at line 98 of file patch_point_values.hh.

◆ operator=()

RevertibleValue& RevertibleValue::operator= ( RevertibleValue other)
inline

Declaration of operators.

Definition at line 86 of file patch_point_values.hh.

◆ reset()

void RevertibleValue::reset ( )
inline

Reset value to zero.

Definition at line 111 of file patch_point_values.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ permanent_

std::size_t RevertibleValue::permanent_
private

Definition at line 133 of file patch_point_values.hh.

◆ temporary_

std::size_t RevertibleValue::temporary_
private

Definition at line 134 of file patch_point_values.hh.


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