spla
Public Member Functions | Static Public Member Functions | List of all members
spla::OpBinary Class Referenceabstract

Binary operation with 2-arity. More...

#include <op.hpp>

Inheritance diagram for spla::OpBinary:
Inheritance graph
[legend]
Collaboration diagram for spla::OpBinary:
Collaboration graph
[legend]

Public Member Functions

 ~OpBinary () override=default
 
virtual ref_ptr< Typeget_type_arg_0 ()=0
 
virtual ref_ptr< Typeget_type_arg_1 ()=0
 
- Public Member Functions inherited from spla::Op
 ~Op () override=default
 
virtual ref_ptr< Typeget_type_res ()=0
 
virtual std::string get_name ()=0
 
virtual std::string get_key ()=0
 
virtual std::string get_source_cl ()=0
 
- Public Member Functions inherited from spla::Object
 ~Object () override=default
 
virtual void set_label (std::string label)=0
 
virtual const std::string & get_label () const =0
 
- Public Member Functions inherited from spla::RefCnt
virtual ~RefCnt ()
 
bool is_unique () const
 
std::int32_t get_refs () const
 
std::int32_t add_ref () const
 
std::int32_t rel_ref () const
 

Static Public Member Functions

static ref_ptr< OpBinarymake_int (std::string name, std::string code, std::function< T_INT(T_INT, T_INT)> function)
 
static ref_ptr< OpBinarymake_uint (std::string name, std::string code, std::function< T_UINT(T_UINT, T_UINT)> function)
 
static ref_ptr< OpBinarymake_float (std::string name, std::string code, std::function< T_FLOAT(T_FLOAT, T_FLOAT)> function)
 

Detailed Description

Binary operation with 2-arity.

Constructor & Destructor Documentation

◆ ~OpBinary()

spla::OpBinary::~OpBinary ( )
overridedefault

Member Function Documentation

◆ get_type_arg_0()

virtual ref_ptr<Type> spla::OpBinary::get_type_arg_0 ( )
pure virtual

◆ get_type_arg_1()

virtual ref_ptr<Type> spla::OpBinary::get_type_arg_1 ( )
pure virtual

◆ make_float()

ref_ptr< OpBinary > spla::OpBinary::make_float ( std::string  name,
std::string  code,
std::function< T_FLOAT(T_FLOAT, T_FLOAT)>  function 
)
static

◆ make_int()

ref_ptr< OpBinary > spla::OpBinary::make_int ( std::string  name,
std::string  code,
std::function< T_INT(T_INT, T_INT)>  function 
)
static

◆ make_uint()

ref_ptr< OpBinary > spla::OpBinary::make_uint ( std::string  name,
std::string  code,
std::function< T_UINT(T_UINT, T_UINT)>  function 
)
static

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