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 | Friends | List of all members
rexlib::operation_arity Class Reference

Describes the operand count of an operation. More...

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

Public Member Functions

 operation_arity () noexcept
 Construct an arity with no outputs and no inputs.
 
 operation_arity (std::size_t output_count, std::size_t input_count) noexcept
 Construct an arity from its operand counts.
 
 operation_arity (const operation_arity &other)=default
 
 operation_arity (operation_arity &&other) noexcept=default
 
operation_arity & operator= (const operation_arity &other)=default
 
operation_arity & operator= (operation_arity &&other) noexcept=default
 
std::size_t get_output_count () const noexcept
 Get the number of output operands.
 
std::size_t get_input_count () const noexcept
 Get the number of input operands.
 

Friends

bool operator== (const operation_arity &lhs, const operation_arity &rhs) noexcept
 
bool operator!= (const operation_arity &lhs, const operation_arity &rhs) noexcept
 

Detailed Description

Describes the operand count of an operation.

Constructor & Destructor Documentation

◆ operation_arity()

rexlib::operation_arity::operation_arity ( std::size_t  output_count,
std::size_t  input_count 
)
noexcept

Construct an arity from its operand counts.

Parameters
output_countThe number of output operands.
input_countThe number of input operands.

Member Function Documentation

◆ get_input_count()

std::size_t rexlib::operation_arity::get_input_count ( ) const
noexcept

Get the number of input operands.

Returns
std::size_t The input count.

◆ get_output_count()

std::size_t rexlib::operation_arity::get_output_count ( ) const
noexcept

Get the number of output operands.

Returns
std::size_t The output count.

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