Fleet  0.0.9
Inference in the LOT
Public Member Functions | Public Attributes | List of all members
Primitive< T, args > Struct Template Reference

#include <Primitive.h>

Public Member Functions

 Primitive (const Primitive< T, args... > &other)=delete
 
 Primitive (const Primitive< T, args... > &&other)=delete
 
template<typename VirtualMachineState_t >
 Primitive (Op o, typename VirtualMachineState_t::FT *_f)
 Constructor here assumes the std::function type. More...
 
template<typename VirtualMachineState_t >
 Primitive (Op o, void(*_f)(VirtualMachineState_t *, int))
 This constructor takes an ordinary function pointer and converts it. More...
 
template<typename VirtualMachineState_t >
void call (VirtualMachineState_t *vms, int arg)
 
Instruction makeInstruction (int arg=0)
 

Public Attributes

Op op
 
void * f
 

Constructor & Destructor Documentation

◆ Primitive() [1/4]

template<typename T = void, typename... args>
Primitive< T, args >::Primitive ( const Primitive< T, args... > &  other)
delete

◆ Primitive() [2/4]

template<typename T = void, typename... args>
Primitive< T, args >::Primitive ( const Primitive< T, args... > &&  other)
delete

◆ Primitive() [3/4]

template<typename T = void, typename... args>
template<typename VirtualMachineState_t >
Primitive< T, args >::Primitive ( Op  o,
typename VirtualMachineState_t::FT *  _f 
)
inline

Constructor here assumes the std::function type.

Parameters
o
_f

◆ Primitive() [4/4]

template<typename T = void, typename... args>
template<typename VirtualMachineState_t >
Primitive< T, args >::Primitive ( Op  o,
void(*)(VirtualMachineState_t *, int)  _f 
)
inline

This constructor takes an ordinary function pointer and converts it.

Parameters
o

Member Function Documentation

◆ call()

template<typename T = void, typename... args>
template<typename VirtualMachineState_t >
void Primitive< T, args >::call ( VirtualMachineState_t *  vms,
int  arg 
)
inline

◆ makeInstruction()

template<typename T = void, typename... args>
Instruction Primitive< T, args >::makeInstruction ( int  arg = 0)
inline

Member Data Documentation

◆ f

template<typename T = void, typename... args>
void* Primitive< T, args >::f

◆ op

template<typename T = void, typename... args>
Op Primitive< T, args >::op

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