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

A visitor Vector allow to unroll the visit of a 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::VisitorVectorImpl< Visitor, Derived, Size_ >

A visitor Vector allow to unroll the visit of a vector if possible.

Definition at line 354 of file STK_VisitorsImpl.h.

Member Function Documentation

◆ apply()

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

Definition at line 361 of file STK_VisitorsImpl.h.

362 {
364 tab.setValue(tab.begin()+ Size_-1, applier());
365 }
static void apply(Derived &tab, Visitor &applier)

References STK::hidden::VisitorVectorImpl< Visitor, Derived, Size_ >::apply().

Referenced by STK::hidden::VisitorVectorImpl< Visitor, Derived, Size_ >::apply().

◆ run()

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

Definition at line 356 of file STK_VisitorsImpl.h.

357 {
359 visitor(tab.elt(tab.begin()+ Size_-1), tab.begin()+ Size_-1, tab.colIdx());
360 }
static void run(Derived const &tab, Visitor &visitor)

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

Referenced by STK::hidden::VisitorVectorImpl< Visitor, Derived, Size_ >::run().


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