STK++ 0.9.13
STK::hidden::VisitorArrayImpl< Visitor, Derived, 1, UnknownSize > Struct Template Reference

Specialization of VisitorArrayImpl when the number of rows is 1 and the number of column is unknown or greater than MaxUnrollSlice. 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>
struct STK::hidden::VisitorArrayImpl< Visitor, Derived, 1, UnknownSize >

Specialization of VisitorArrayImpl when the number of rows is 1 and the number of column is unknown or greater than MaxUnrollSlice.

This class will stop the unrolling of on the rows.

Definition at line 228 of file STK_VisitorsImpl.h.

Member Function Documentation

◆ apply()

template<typename Visitor , typename Derived >
static void STK::hidden::VisitorArrayImpl< Visitor, Derived, 1, UnknownSize >::apply ( Derived &  tab,
Visitor applier 
)
inlinestatic

Definition at line 235 of file STK_VisitorsImpl.h.

236 {
237 for(int j = tab.beginCols(); j < tab.endCols(); ++j)
238 tab.setValue(tab.beginRows(), j, applier());
239 }

◆ run()

template<typename Visitor , typename Derived >
static void STK::hidden::VisitorArrayImpl< Visitor, Derived, 1, UnknownSize >::run ( Derived const tab,
Visitor visitor 
)
inlinestatic

Definition at line 230 of file STK_VisitorsImpl.h.

231 {
232 for(int j = tab.beginCols(); j < tab.endCols(); ++j)
233 visitor(tab.elt(tab.beginRows(), j), tab.beginRows(), j);
234 }

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