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 | Static Public Member Functions | Friends | List of all members
rexlib::operand_descriptor Class Reference

Logical representation of an operand's properties. More...

#include <rexlib/core/dispatch/operand_descriptor.hpp>

Public Member Functions

 operand_descriptor (const array_descriptor &descriptor, const memory_resource *resource=nullptr) noexcept
 
 operand_descriptor (array_descriptor &&descriptor, const memory_resource *resource=nullptr) noexcept
 
 operand_descriptor (const strided_layout &layout, numerical_type data_type, const memory_resource *resource=nullptr) noexcept
 
 operand_descriptor (strided_layout &&layout, numerical_type data_type, const memory_resource *resource=nullptr) noexcept
 
 operand_descriptor (const operand_descriptor &other)
 
 operand_descriptor (operand_descriptor &&other) noexcept
 
operand_descriptor & operator= (const operand_descriptor &other)
 
operand_descriptor & operator= (operand_descriptor &&other) noexcept
 
std::size_t hash () const noexcept
 Get the hash value for this object.
 
const strided_layout & get_layout () const noexcept
 Get the in memory layout of the data.
 
numerical_type get_data_type () const noexcept
 Get the data type of the elements.
 
const array_descriptor & get_array_descriptor () const noexcept
 Get the array descriptor.
 
void set_array_descriptor (const array_descriptor &descriptor) noexcept
 Set the array descriptor.
 
const memory_resource * get_memory_resource () const noexcept
 Get the memory resource.
 
void set_memory_resource (const memory_resource *resource) noexcept
 Set the memory resource.
 

Static Public Member Functions

static operand_descriptor from_array (const_array_ref a) noexcept
 Construct an operand descriptor from an existing array.
 

Friends

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

Detailed Description

Logical representation of an operand's properties.

This class contains the memory representation of the array data (array_descriptor) and its placement in memory (pointer to a memory_resource)

See also
array
array_descriptor
memory_resource

Member Function Documentation

◆ from_array()

static operand_descriptor rexlib::operand_descriptor::from_array ( const_array_ref  a)
staticnoexcept

Construct an operand descriptor from an existing array.

Parameters
aReference to the array from which the descriptor is deduced.
Returns
operand_descriptor The newly constructed operand descriptor.

◆ get_array_descriptor()

const array_descriptor & rexlib::operand_descriptor::get_array_descriptor ( ) const
noexcept

Get the array descriptor.

Returns
const array_descriptor& The array descriptor.

◆ get_data_type()

numerical_type rexlib::operand_descriptor::get_data_type ( ) const
noexcept

Get the data type of the elements.

Returns
numerical_type The data type.

◆ get_layout()

const strided_layout & rexlib::operand_descriptor::get_layout ( ) const
noexcept

Get the in memory layout of the data.

Returns
const strided_layout& The layout.

◆ get_memory_resource()

const memory_resource * rexlib::operand_descriptor::get_memory_resource ( ) const
noexcept

Get the memory resource.

Returns
const memory_resource* The memory resource.

◆ hash()

std::size_t rexlib::operand_descriptor::hash ( ) const
noexcept

Get the hash value for this object.

Returns
The hash value.

◆ set_array_descriptor()

void rexlib::operand_descriptor::set_array_descriptor ( const array_descriptor &  descriptor)
noexcept

Set the array descriptor.

Parameters
descriptorThe new array descriptor.

◆ set_memory_resource()

void rexlib::operand_descriptor::set_memory_resource ( const memory_resource *  resource)
noexcept

Set the memory resource.

Parameters
resourceThe new memory resource.

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