1 #ifndef DUNE_FEM_ARRAY_INLINE_HH 2 #define DUNE_FEM_ARRAY_INLINE_HH 14 const unsigned int oldOffset,
15 const unsigned int newOffset,
16 const unsigned int length )
18 assert( (oldOffset + length <= array.
size())
19 && (newOffset + length <= array.
size()) );
21 for(
unsigned int i = (length - 1); i < length; --i )
22 array[ newOffset + i ] = array[ oldOffset + i ];
27 const unsigned int oldOffset,
28 const unsigned int newOffset,
29 const unsigned int length )
31 assert( (oldOffset + length <= array.
size())
32 && (newOffset + length <= array.
size()) );
33 for(
unsigned int i = 0; i < length; ++i )
34 array[ newOffset + i ] = array[ oldOffset + i ];
39 const unsigned int oldOffset,
40 const unsigned int newOffset,
41 const unsigned int length )
43 if( oldOffset < newOffset )
53 #endif // #ifndef DUNE_FEM_ARRAY_INLINE_HH
void moveForward(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:26
Definition: coordinate.hh:4
unsigned int size() const
Definition: array.hh:155
void move(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:38
abstract array interface
Definition: array.hh:23
void moveBackward(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:13