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

Unary operation with 1-arity. More...

#include <op.hpp>

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

Public Member Functions

 ~OpUnary () override=default
 
virtual ref_ptr< Typeget_type_arg_0 ()=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< OpUnarymake_int (std::string name, std::string code, std::function< T_INT(T_INT)> function)
 
static ref_ptr< OpUnarymake_uint (std::string name, std::string code, std::function< T_UINT(T_UINT)> function)
 
static ref_ptr< OpUnarymake_float (std::string name, std::string code, std::function< T_FLOAT(T_FLOAT)> function)
 

Detailed Description

Unary operation with 1-arity.

Constructor & Destructor Documentation

◆ ~OpUnary()

spla::OpUnary::~OpUnary ( )
overridedefault

Member Function Documentation

◆ get_type_arg_0()

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

Implemented in spla::TOpUnary< A0, R >.

◆ make_float()

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

◆ make_int()

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

◆ make_uint()

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

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