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

it is used to statically determine whether or not a subexpression execution is needed. More...

#include <executor.hpp>

Collaboration diagram for visioncpp::internal::SubExprExecute< Val, ExecPolicy, LC, LR, LCT, LRT, Expr, DeviceT >:

Static Public Member Functions

static void execute (Expr &expr, const DeviceT &dev)
 

Detailed Description

template<bool Val, bool ExecPolicy, size_t LC, size_t LR, size_t LCT, size_t LRT, typename Expr, typename DeviceT>
struct visioncpp::internal::SubExprExecute< Val, ExecPolicy, LC, LR, LCT, LRT, Expr, DeviceT >

it is used to statically determine whether or not a subexpression execution is needed.

It increases the execution time by avoiding executing the subexpression when it is not needed. Using this struct with sub_expression_evaluation parameter in every non-terminal node, it is possible to determine such condition at compile time.

Definition at line 116 of file executor.hpp.

Member Function Documentation

◆ execute()

template<bool Val, bool ExecPolicy, size_t LC, size_t LR, size_t LCT, size_t LRT, typename Expr , typename DeviceT >
static void visioncpp::internal::SubExprExecute< Val, ExecPolicy, LC, LR, LCT, LRT, Expr, DeviceT >::execute ( Expr &  expr,
const DeviceT &  dev 
)
inlinestatic

Definition at line 117 of file executor.hpp.


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