rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rexlib::trivial_operation< Derived, Traits > Class Template Reference

CRTP base for operations that are trivially declared. More...

#include <rexlib/core/operation/trivial_operation.hpp>

Inheritance diagram for rexlib::trivial_operation< Derived, Traits >:
rexlib::basic_operation< Derived, Traits > rexlib::operation

Public Member Functions

const operation_signature & get_signature () const noexcept override
 Get the signature deciding the shape and data type of the operands of this operation.
 
- Public Member Functions inherited from rexlib::basic_operation< Derived, Traits >
const operation_descriptor & get_descriptor () const noexcept override
 Get the description of this operation.
 
operation_id get_id () const noexcept override
 Get the identifier of Derived.
 
- Public Member Functions inherited from rexlib::operation
 operation (const operation &other)=delete
 
 operation (operation &&other)=delete
 
operation & operator= (const operation &other)=delete
 
operation & operator= (operation &&other)=delete
 

Additional Inherited Members

- Public Types inherited from rexlib::basic_operation< Derived, Traits >
using traits_type = Traits
 
using shape_rule_type = typename Traits::shape_rule_type
 
using type_rule_type = typename Traits::type_rule_type
 
- Static Public Member Functions inherited from rexlib::basic_operation< Derived, Traits >
static const operation_descriptor & get_static_descriptor () noexcept
 Get the description shared by every instance.
 
- Static Public Attributes inherited from rexlib::basic_operation< Derived, Traits >
static REXLIB_CONST_CONSTEXPR std::size_t output_operand_count
 
static REXLIB_CONST_CONSTEXPR std::size_t input_operand_count
 

Detailed Description

template<typename Derived, typename Traits>
class rexlib::trivial_operation< Derived, Traits >

CRTP base for operations that are trivially declared.

Returns the signature shared by every operation following the rules named by Traits, so that the body of the derived class is usually empty.

"Trivial" refers to the declaration and not to the C++ notion of a trivial type: every operation has a virtual destructor, and the operation may still carry values its signature does not read. What is trivial is that nothing about its dispatch has to be written by hand.

Template Parameters
DerivedThe concrete operation type.
TraitsThe static description, as basic_operation requires. Its rules must read nothing from the operation instance.
See also
basic_operation
shared_rule_signature

Member Function Documentation

◆ get_signature()

const operation_signature & rexlib::trivial_operation< Derived, Traits >::get_signature ( ) const
overridevirtualnoexcept

Get the signature deciding the shape and data type of the operands of this operation.

Returns
const operation_signature& The signature.

Implements rexlib::operation.


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