STK++ 0.9.13
STK::SubVectorAccessor< Lhs, Size_ > Class Template Reference

#include <STK_SlicingAccessors.h>

Inheritance diagram for STK::SubVectorAccessor< Lhs, Size_ >:
Inheritance graph

Public Types

enum  {
  structure_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::structure_ , orient_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::orient_ , sizeRows_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::sizeRows_ , sizeCols_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::sizeCols_ ,
  storage_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::storage_
}
 
typedef hidden::Traits< SubVectorAccessor< Lhs, Size_ > >::Type Type
 
typedef hidden::Traits< SubVectorAccessor< Lhs, Size_ > >::TypeConst TypeConst
 
typedef SubVectorOperatorBase< Lhs, Size_, structure_Base
 
typedef TRange< sizeRows_RowRange
 Type of the Range for the rows.
 
typedef TRange< sizeCols_ColRange
 Type of the Range for the columns.
 

Public Member Functions

 SubVectorAccessor (Lhs &lhs, TRange< Size_ > const &I)
 constructor
 
Lhs constlhs () const
 
TypeConst elt2Impl (int i, int j) const
 
TypeConst elt1Impl (int i) const
 
TypeConst elt0Impl () const
 accesses to the element
 
Typeelt2Impl (int i, int j)
 
Typeelt1Impl (int i)
 
Typeelt0Impl ()
 accesses to the element
 

Protected Attributes

Lhslhs_
 

Additional Inherited Members

- Static Public Member Functions inherited from STK::TRef< 1 >
static bool isRef ()
 

Detailed Description

template<typename Lhs, int Size_>
class STK::SubVectorAccessor< Lhs, Size_ >

Definition at line 317 of file STK_SlicingAccessors.h.

Member Typedef Documentation

◆ Base

◆ ColRange

Type of the Range for the columns.

Definition at line 338 of file STK_SlicingAccessors.h.

◆ RowRange

Type of the Range for the rows.

Definition at line 336 of file STK_SlicingAccessors.h.

◆ Type

Definition at line 323 of file STK_SlicingAccessors.h.

◆ TypeConst

Definition at line 324 of file STK_SlicingAccessors.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Lhs , int Size_>
anonymous enum
Enumerator
structure_ 
orient_ 
sizeRows_ 
sizeCols_ 
storage_ 

Definition at line 325 of file STK_SlicingAccessors.h.

326 {
327 structure_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::structure_,
328 orient_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::orient_,
329 sizeRows_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::sizeRows_,
330 sizeCols_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::sizeCols_,
331 storage_ = hidden::Traits< SubVectorAccessor<Lhs, Size_> >::storage_
332 };

Constructor & Destructor Documentation

◆ SubVectorAccessor()

template<typename Lhs , int Size_>
STK::SubVectorAccessor< Lhs, Size_ >::SubVectorAccessor ( Lhs lhs,
TRange< Size_ > const I 
)
inline

constructor

Definition at line 341 of file STK_SlicingAccessors.h.

341: Base(I), lhs_(lhs) {}
SubVectorOperatorBase< Lhs, Size_, structure_ > Base

Member Function Documentation

◆ elt0Impl() [1/2]

template<typename Lhs , int Size_>
Type & STK::SubVectorAccessor< Lhs, Size_ >::elt0Impl ( )
inline

accesses to the element

Definition at line 364 of file STK_SlicingAccessors.h.

364{ return (lhs_.elt());}

◆ elt0Impl() [2/2]

template<typename Lhs , int Size_>
TypeConst STK::SubVectorAccessor< Lhs, Size_ >::elt0Impl ( ) const
inline

accesses to the element

Definition at line 353 of file STK_SlicingAccessors.h.

353{ return (lhs_.elt());}

◆ elt1Impl() [1/2]

template<typename Lhs , int Size_>
Type & STK::SubVectorAccessor< Lhs, Size_ >::elt1Impl ( int  i)
inline
Returns
i-th element
Parameters
ielement index

Definition at line 362 of file STK_SlicingAccessors.h.

362{ return (lhs_.elt1Impl(i));}

◆ elt1Impl() [2/2]

template<typename Lhs , int Size_>
TypeConst STK::SubVectorAccessor< Lhs, Size_ >::elt1Impl ( int  i) const
inline
Returns
i-th element
Parameters
ielement index

Definition at line 351 of file STK_SlicingAccessors.h.

351{ return (lhs_.elt1Impl(i));}

◆ elt2Impl() [1/2]

template<typename Lhs , int Size_>
Type & STK::SubVectorAccessor< Lhs, Size_ >::elt2Impl ( int  i,
int  j 
)
inline
Returns
element (i,j)
Parameters
i,jrow and column indexes

Definition at line 358 of file STK_SlicingAccessors.h.

358{ return (lhs_.elt2Impl(i, j));}

◆ elt2Impl() [2/2]

template<typename Lhs , int Size_>
TypeConst STK::SubVectorAccessor< Lhs, Size_ >::elt2Impl ( int  i,
int  j 
) const
inline
Returns
element (i,j)
Parameters
i,jrow and column indexes

Definition at line 347 of file STK_SlicingAccessors.h.

347{ return (lhs_.elt2Impl(i, j));}

◆ lhs()

template<typename Lhs , int Size_>
Lhs const & STK::SubVectorAccessor< Lhs, Size_ >::lhs ( ) const
inline
Returns
the left hand side expression

Definition at line 343 of file STK_SlicingAccessors.h.

343{ return lhs_;}

Member Data Documentation

◆ lhs_

template<typename Lhs , int Size_>
Lhs& STK::SubVectorAccessor< Lhs, Size_ >::lhs_
protected

Definition at line 367 of file STK_SlicingAccessors.h.


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