teqp 0.22.0
Loading...
Searching...
No Matches
teqp::cppinterface::adapter Namespace Reference

Namespaces

namespace  internal
 

Classes

struct  ConstViewer
 
class  DerivativeAdapter
 
struct  Owner
 
class  OwnershipSummer
 A collection type that allows you to sum contributions from multiple EOS terms. More...
 

Functions

template<typename... Args>
OwnershipSummer< Args... > make_OwnershipSummer (Args &&... args)
 
template<typename TemplatedModel >
auto view (const TemplatedModel &tp)
 
template<typename TemplatedModel >
auto own (const TemplatedModel &&tp)
 
template<typename TemplatedModel >
auto make_owned (const TemplatedModel &tmodel)
 
template<typename TemplatedModel >
auto make_cview (const TemplatedModel &tmodel)
 
template<typename ModelType >
const ModelType & get_model_cref (const AbstractModel *am)
 Get a const reference to the model that is being held in a DerivativeAdapter instance.
 
template<typename ModelType >
ModelType & get_model_ref (AbstractModel *am)
 Get a mutable reference to the model.
 

Function Documentation

◆ get_model_cref()

template<typename ModelType >
const ModelType & teqp::cppinterface::adapter::get_model_cref ( const AbstractModel * am)

Get a const reference to the model that is being held in a DerivativeAdapter instance.

Note
Available for both ownership and const viewer holder types.

Definition at line 246 of file deriv_adapter.hpp.

◆ get_model_ref()

template<typename ModelType >
ModelType & teqp::cppinterface::adapter::get_model_ref ( AbstractModel * am)

Get a mutable reference to the model.

Note
Only available when the holder type is ownership (not available for const viewer holder type)

Definition at line 270 of file deriv_adapter.hpp.

◆ make_cview()

template<typename TemplatedModel >
auto teqp::cppinterface::adapter::make_cview ( const TemplatedModel & tmodel)

Definition at line 235 of file deriv_adapter.hpp.

◆ make_owned()

template<typename TemplatedModel >
auto teqp::cppinterface::adapter::make_owned ( const TemplatedModel & tmodel)

Definition at line 230 of file deriv_adapter.hpp.

◆ make_OwnershipSummer()

template<typename... Args>
OwnershipSummer< Args... > teqp::cppinterface::adapter::make_OwnershipSummer ( Args &&... args)

Definition at line 80 of file deriv_adapter.hpp.

◆ own()

template<typename TemplatedModel >
auto teqp::cppinterface::adapter::own ( const TemplatedModel && tp)

Definition at line 225 of file deriv_adapter.hpp.

◆ view()

template<typename TemplatedModel >
auto teqp::cppinterface::adapter::view ( const TemplatedModel & tp)

Definition at line 221 of file deriv_adapter.hpp.