STK++ 0.9.13
STK::hidden::VisitorPointImpl< Visitor, Derived, Size_ > Struct Template Reference

A VisitorPointImpl allow to unroll the visit of a row-vector if possible. More...

#include <STK_VisitorsImpl.h>

Static Public Member Functions

static void run (Derived const &tab, Visitor &visitor)
 
static void apply (Derived &tab, Visitor &applier)
 

Detailed Description

template<typename Visitor, typename Derived, int Size_>
struct STK::hidden::VisitorPointImpl< Visitor, Derived, Size_ >

A VisitorPointImpl allow to unroll the visit of a row-vector if possible.

Definition at line 395 of file STK_VisitorsImpl.h.

Member Function Documentation

◆ apply()

template<typename Visitor , typename Derived , int Size_>
static void STK::hidden::VisitorPointImpl< Visitor, Derived, Size_ >::apply ( Derived &  tab,
Visitor applier 
)
inlinestatic

◆ run()

template<typename Visitor , typename Derived , int Size_>
static void STK::hidden::VisitorPointImpl< Visitor, Derived, Size_ >::run ( Derived const tab,
Visitor visitor 
)
inlinestatic

Definition at line 397 of file STK_VisitorsImpl.h.

398 {
400 visitor(tab.elt(tab.begin()+ Size_-1), tab.rowIdx(), tab.begin()+ Size_-1);
401 }
static void run(Derived const &tab, Visitor &visitor)

References STK::hidden::VisitorPointImpl< Visitor, Derived, Size_ >::run().

Referenced by STK::hidden::VisitorPointImpl< Visitor, Derived, Size_ >::run(), and STK::hidden::VisitorDiagonalImpl< Visitor, Derived, Size_ >::run().


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