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

Specialization when the size 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::VisitorVectorImpl< Visitor, Derived, UnknownSize >

Specialization when the size is unknown.

Definition at line 341 of file STK_VisitorsImpl.h.

Member Function Documentation

◆ apply()

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

Definition at line 345 of file STK_VisitorsImpl.h.

346 { for(int i = tab.begin(); i < tab.end(); ++i) tab.setValue(i, applier());
347 }

◆ run()

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

Definition at line 343 of file STK_VisitorsImpl.h.

344 { for(int i = tab.begin(); i < tab.end(); ++i) visitor(tab.elt(i), i, tab.colIdx());}

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