STK++ 0.9.13
STK::ApplyVisitor< Derived, Visitor > Struct Template Reference

class allowing to apply a visitor on a vector or a point. More...

#include <STK_SlicingVisitors.h>

Public Types

typedef Derived::Type Type_
 
typedef Visitor< Type_ >::Type Type
 
typedef Type Result
 

Public Member Functions

 ApplyVisitor (ExprBase< Derived > const &lhs)
 constructor
 
 operator Type () const
 overload cast operator
 

Protected Attributes

Derived constlhs_
 

Private Attributes

Type result_
 

Detailed Description

template<typename Derived, template< class > class Visitor>
struct STK::ApplyVisitor< Derived, Visitor >

class allowing to apply a visitor on a vector or a point.

Definition at line 263 of file STK_SlicingVisitors.h.

Member Typedef Documentation

◆ Result

template<typename Derived , template< class > class Visitor>
typedef Type STK::ApplyVisitor< Derived, Visitor >::Result

Definition at line 267 of file STK_SlicingVisitors.h.

◆ Type

template<typename Derived , template< class > class Visitor>
typedef Visitor<Type_>::Type STK::ApplyVisitor< Derived, Visitor >::Type

Definition at line 266 of file STK_SlicingVisitors.h.

◆ Type_

template<typename Derived , template< class > class Visitor>
typedef Derived::Type STK::ApplyVisitor< Derived, Visitor >::Type_

Definition at line 265 of file STK_SlicingVisitors.h.

Constructor & Destructor Documentation

◆ ApplyVisitor()

template<typename Derived , template< class > class Visitor>
STK::ApplyVisitor< Derived, Visitor >::ApplyVisitor ( ExprBase< Derived > const lhs)
inline

constructor

Definition at line 270 of file STK_SlicingVisitors.h.

270 : lhs_(lhs.asDerived())
271 {
272 Visitor<Type_> visit;
273 lhs_.visit(visit);
274 }

References STK::ApplyVisitor< Derived, Visitor >::lhs_.

Member Function Documentation

◆ operator Type()

template<typename Derived , template< class > class Visitor>
STK::ApplyVisitor< Derived, Visitor >::operator Type ( ) const
inline

overload cast operator

Definition at line 276 of file STK_SlicingVisitors.h.

276{ return result_;}

References STK::ApplyVisitor< Derived, Visitor >::result_.

Member Data Documentation

◆ lhs_

template<typename Derived , template< class > class Visitor>
Derived const& STK::ApplyVisitor< Derived, Visitor >::lhs_
protected

◆ result_

template<typename Derived , template< class > class Visitor>
Type STK::ApplyVisitor< Derived, Visitor >::result_
private

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