CoolProp 6.8.1dev
An open-source fluid property and humid air property database
Public Member Functions | List of all members
CoolProp::CacheArrayElement< NumType > Class Template Reference

Detailed Description

template<typename NumType>
class CoolProp::CacheArrayElement< NumType >

Definition at line 93 of file CachedElement.h.

#include <CachedElement.h>

Public Member Functions

 CacheArrayElement (NumType &val, bool &is_cached)
 
void _do_cache (double value)
 Function to carry out the caching. More...
 
void operator= (const double &value)
 Assignment operator - sets the value and sets the flag. More...
 
 operator bool ()
 Cast to boolean, for checking if cached. More...
 
 operator double ()
 Cast to double, for returning value. More...
 
void clear ()
 Clear the flag and the value. More...
 
NumType & pt ()
 

Constructor & Destructor Documentation

◆ CacheArrayElement()

template<typename NumType >
CoolProp::CacheArrayElement< NumType >::CacheArrayElement ( NumType &  val,
bool &  is_cached 
)
inline

Definition at line 103 of file CachedElement.h.

Member Function Documentation

◆ _do_cache()

template<typename NumType >
void CoolProp::CacheArrayElement< NumType >::_do_cache ( double  value)
inline

Function to carry out the caching.

Definition at line 106 of file CachedElement.h.

◆ clear()

template<typename NumType >
void CoolProp::CacheArrayElement< NumType >::clear ( )
inline

Clear the flag and the value.

Definition at line 139 of file CachedElement.h.

◆ operator bool()

template<typename NumType >
CoolProp::CacheArrayElement< NumType >::operator bool ( )
inline

Cast to boolean, for checking if cached.

Definition at line 117 of file CachedElement.h.

◆ operator double()

template<typename NumType >
CoolProp::CacheArrayElement< NumType >::operator double ( )
inline

Cast to double, for returning value.

Definition at line 122 of file CachedElement.h.

◆ operator=()

template<typename NumType >
void CoolProp::CacheArrayElement< NumType >::operator= ( const double &  value)
inline

Assignment operator - sets the value and sets the flag.

Definition at line 112 of file CachedElement.h.

◆ pt()

template<typename NumType >
NumType & CoolProp::CacheArrayElement< NumType >::pt ( )
inline

Definition at line 143 of file CachedElement.h.


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