VisionCpp  0.0.1
Public Types | Static Public Member Functions | List of all members
visioncpp::internal::SubExprRes< LC, LR, LCT, LRT, LVL, Expr, DeviceT > Struct Template Reference

The definition is in SubExprRes file. More...

#include <executor_subexpr_if_needed.hpp>

Collaboration diagram for visioncpp::internal::SubExprRes< LC, LR, LCT, LRT, LVL, Expr, DeviceT >:

Public Types

using Type = internal::LeafNode< typename Expr::Type, LVL >
 

Static Public Member Functions

static Type get (Expr &eval_sub, const DeviceT &dev)
 The get function in SubExprRes executes the expression and returns a leaf node representing the output. More...
 

Detailed Description

template<size_t LC, size_t LR, size_t LCT, size_t LRT, size_t LVL, typename Expr, typename DeviceT>
struct visioncpp::internal::SubExprRes< LC, LR, LCT, LRT, LVL, Expr, DeviceT >

The definition is in SubExprRes file.

The SubExprRes is used to specialise the get_subexpr_executor function for terminal and non-terminal node.

The get function in SubExprRes executes the expression and returns a leaf node representing the output result of the kernel execution, when it is a non-terminal node.

Definition at line 37 of file executor_subexpr_if_needed.hpp.

Member Typedef Documentation

◆ Type

template<size_t LC, size_t LR, size_t LCT, size_t LRT, size_t LVL, typename Expr , typename DeviceT >
using visioncpp::internal::SubExprRes< LC, LR, LCT, LRT, LVL, Expr, DeviceT >::Type = internal::LeafNode<typename Expr::Type, LVL>

Definition at line 38 of file executor_subexpr_if_needed.hpp.

Member Function Documentation

◆ get()

template<size_t LC, size_t LR, size_t LCT, size_t LRT, size_t LVL, typename Expr , typename DeviceT >
static Type visioncpp::internal::SubExprRes< LC, LR, LCT, LRT, LVL, Expr, DeviceT >::get ( Expr &  eval_sub,
const DeviceT &  dev 
)
inlinestatic

The get function in SubExprRes executes the expression and returns a leaf node representing the output.

Parameters
eval_subthe SubExprRes passed to be executed on the device
dev: the selected device for executing the expression
Returns
LeafNode: the leafNode containing the result of the subexpression execution.

Definition at line 45 of file executor_subexpr_if_needed.hpp.

References visioncpp::internal::LeafNode< RHS, LVL >::Level.

Referenced by visioncpp::internal::get_subexpr_executor().

Here is the caller graph for this function:

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