OP  0.1
OP is a optimization solver plugin package
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Public Types | Public Member Functions | Protected Attributes | List of all members
op::Variables::VariableMap< Variables, FieldType > Class Template Reference

Utility class for "converting" between Variables and something else. More...

#include <op.hpp>

Public Types

using ToTypeFn = std::function< FieldType(Variables &)>
 
using FromTypeFn = std::function< Variables(FieldType &)>
 

Public Member Functions

 VariableMap (ToTypeFn to_fn, FromTypeFn from_fn)
 
FieldType convertFromVariable (Variables &v)
 
Variables convertToVariable (FieldType &f)
 

Protected Attributes

ToTypeFn toType_
 
FromTypeFn fromType_
 

Detailed Description

template<class Variables, class FieldType>
class op::Variables::VariableMap< Variables, FieldType >

Utility class for "converting" between Variables and something else.

Definition at line 58 of file op.hpp.


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