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

Specialization for square_. More...

#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, Range const &J)
 
static bool shift (Derived const &array, int beginRow, int beginCol)
 
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::square_ >

Specialization for square_.

Definition at line 116 of file STK_AssignSelector.h.

Member Function Documentation

◆ isAllowed()

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

Definition at line 119 of file STK_AssignSelector.h.

120 { return I==J;}

◆ resize() [1/2]

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

Definition at line 125 of file STK_AssignSelector.h.

126 { return (array.range() != I);}

◆ resize() [2/2]

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

Definition at line 121 of file STK_AssignSelector.h.

122 { return (array.rows() != I || array.cols() != J);}

◆ shift() [1/2]

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

Definition at line 127 of file STK_AssignSelector.h.

128 { return (array.beginRows() != begin || array.beginCols() != begin);}

◆ shift() [2/2]

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

Definition at line 123 of file STK_AssignSelector.h.

124 { return (array.beginRows() != beginRow || array.beginCols() != beginCol);}

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