teqp 0.19.1
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
teqp::cppinterface::adapter Namespace Reference

Namespaces

namespace  internal
 

Classes

struct  ConstViewer
 
class  DerivativeAdapter
 
struct  Owner
 

Functions

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 169 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 193 of file deriv_adapter.hpp.

◆ make_cview()

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

Definition at line 158 of file deriv_adapter.hpp.

◆ make_owned()

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

Definition at line 153 of file deriv_adapter.hpp.

◆ own()

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

Definition at line 148 of file deriv_adapter.hpp.

◆ view()

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

Definition at line 144 of file deriv_adapter.hpp.