STK++ 0.9.13
STK::hidden::CheckShift< Derived, Arrays::number_ > Struct Template Reference

#include <STK_AssignSelector.h>

Static Public Member Functions

static bool isAllowed (Derived const &array, Range const &I, Range const &J)
 
static bool resize (Derived const &array, Range const &I)
 
static bool shift (Derived const &array, int begin)
 

Detailed Description

template<class Derived>
struct STK::hidden::CheckShift< Derived, Arrays::number_ >

Definition at line 177 of file STK_AssignSelector.h.

Member Function Documentation

◆ isAllowed()

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::number_ >::isAllowed ( Derived const array,
Range const I,
Range const J 
)
inlinestatic

Definition at line 180 of file STK_AssignSelector.h.

181 { return (I.size() == 1 && J.size() == 1);}

◆ resize()

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::number_ >::resize ( Derived const array,
Range const I 
)
inlinestatic

Definition at line 182 of file STK_AssignSelector.h.

183 { return (array.range() == I) ? false : true;}

◆ shift()

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::number_ >::shift ( Derived const array,
int  begin 
)
inlinestatic

Definition at line 184 of file STK_AssignSelector.h.

185 { return (array.begin() != begin);}

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