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

Specialization of VisitorArrayImpl when the number of columns is one and the number of rows is unknown. 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, UnknownSize, 1 >

Specialization of VisitorArrayImpl when the number of columns is one and the number of rows is unknown.

Definition at line 268 of file STK_VisitorsImpl.h.

Member Function Documentation

◆ apply()

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

Definition at line 275 of file STK_VisitorsImpl.h.

276 {
277 for(int i = tab.beginRows(); i < tab.endRows(); ++i)
278 tab.setValue(i, tab.beginCols(), applier());
279 }

◆ run()

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

Definition at line 270 of file STK_VisitorsImpl.h.

271 {
272 for(int i = tab.beginRows(); i < tab.endRows(); ++i)
273 visitor(tab.elt(i, tab.beginCols()), i, tab.beginCols());
274 }

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