STK++ 0.9.13
STK::ITContainer< Derived, Arrays::vector_ > Class Template Reference

Specialization for vector_. More...

#include <STK_ITContainer.h>

Inheritance diagram for STK::ITContainer< Derived, Arrays::vector_ >:
Inheritance graph

Public Types

enum  {
  structure_ = hidden::Traits<Derived>::structure_ , orient_ = hidden::Traits<Derived>::orient_ , sizeRows_ = hidden::Traits<Derived>::sizeRows_ , sizeCols_ = hidden::Traits<Derived>::sizeCols_ ,
  storage_ = hidden::Traits<Derived>::storage_
}
 
typedef ITContainerBase< Derived > Base
 
typedef hidden::Traits< Derived >::Type Type
 
typedef hidden::Traits< Derived >::TypeConst TypeConst
 
typedef TRange< sizeRows_RowRange
 Type of the Range for the rows.
 
typedef TRange< sizeCols_ColRange
 Type of the Range for the columns.
 
- Public Types inherited from STK::ITContainerBase< Derived >
enum  {
  structure_ = hidden::Traits<Derived>::structure_ , orient_ = hidden::Traits<Derived>::orient_ , sizeRows_ = hidden::Traits<Derived>::sizeRows_ , sizeCols_ = hidden::Traits<Derived>::sizeCols_ ,
  storage_ = hidden::Traits<Derived>::storage_
}
 
typedef IRecursiveTemplate< Derived > Base
 
typedef hidden::Traits< Derived >::Type Type
 
typedef hidden::Traits< Derived >::TypeConst TypeConst
 
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

RowRange constrange () const
 
int begin () const
 
int end () const
 
int size () const
 
int firstIdx () const
 
int lastIdx () const
 
int colIdx () const
 
TypeConst front () const
 
TypeConst back () const
 
Typefront ()
 
Typeback ()
 
- Public Member Functions inherited from STK::ITContainerBase< Derived >
ColRange constcols () const
 
int beginCols () const
 
int endCols () const
 
int sizeCols () const
 
RowRange constrows () const
 
int beginRows () const
 
int endRows () const
 
int sizeRows () const
 
int firstIdxCols () const
 
int firstIdxRows () const
 
int lastIdxCols () const
 
int lastIdxRows () const
 
RowRange constrangeRowsInCol (int) const
 
ColRange constrangeColsInRow (int) const
 
bool empty () const
 
int size () const
 
TypeConst elt (int i, int j) const
 
TypeConst elt (int i) const
 
TypeConst elt () const
 
Typeelt (int i, int j)
 
Typeelt (int i)
 
Typeelt ()
 
TypeConst at (int i, int j) const
 
TypeConst at (int i) const
 
Typeat (int i, int j)
 
Typeat (int i)
 
TypeConst operator() (int i, int j) const
 
Typeoperator() (int i, int j)
 
TypeConst operator[] (int i) const
 
Typeoperator[] (int i)
 
TypeConst operator() () const
 
Typeoperator() ()
 
- Public Member Functions inherited from STK::IRecursiveTemplate< Derived >
Derived & asDerived ()
 static cast : return a reference of this with a cast to the derived class.
 
Derived constasDerived () const
 static cast : return a const reference of this with a cast to the derived class.
 
Derived * asPtrDerived ()
 static cast : return a ptr on a Derived of this with a cast to the derived class.
 
Derived constasPtrDerived () const
 static cast : return a ptr on a constant Derived of this with a cast to the derived class.
 
Derived * clone () const
 create a leaf using the copy constructor of the Derived class.
 
Derived * clone (bool isRef) const
 create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not.
 

Protected Member Functions

 ITContainer ()
 default constructor.
 
 ~ITContainer ()
 destructor.
 
- Protected Member Functions inherited from STK::ITContainerBase< Derived >
 ITContainerBase ()
 Default constructor.
 
 ~ITContainerBase ()
 destructor.
 
- Protected Member Functions inherited from STK::IRecursiveTemplate< Derived >
 IRecursiveTemplate ()
 constructor.
 
 ~IRecursiveTemplate ()
 destructor.
 

Detailed Description

template<class Derived>
class STK::ITContainer< Derived, Arrays::vector_ >

Specialization for vector_.

Definition at line 867 of file STK_ITContainer.h.

Member Typedef Documentation

◆ Base

template<class Derived >
typedef ITContainerBase<Derived> STK::ITContainer< Derived, Arrays::vector_ >::Base

Definition at line 870 of file STK_ITContainer.h.

◆ ColRange

template<class Derived >
typedef TRange<sizeCols_> STK::ITContainer< Derived, Arrays::vector_ >::ColRange

Type of the Range for the columns.

Definition at line 884 of file STK_ITContainer.h.

◆ RowRange

template<class Derived >
typedef TRange<sizeRows_> STK::ITContainer< Derived, Arrays::vector_ >::RowRange

Type of the Range for the rows.

Definition at line 882 of file STK_ITContainer.h.

◆ Type

template<class Derived >
typedef hidden::Traits<Derived>::Type STK::ITContainer< Derived, Arrays::vector_ >::Type

Definition at line 871 of file STK_ITContainer.h.

◆ TypeConst

template<class Derived >
typedef hidden::Traits<Derived>::TypeConst STK::ITContainer< Derived, Arrays::vector_ >::TypeConst

Definition at line 872 of file STK_ITContainer.h.

Member Enumeration Documentation

◆ anonymous enum

template<class Derived >
anonymous enum
Enumerator
structure_ 
orient_ 
sizeRows_ 
sizeCols_ 
storage_ 

Definition at line 873 of file STK_ITContainer.h.

874 {
875 structure_ = hidden::Traits<Derived>::structure_,
876 orient_ = hidden::Traits<Derived>::orient_,
877 sizeRows_ = hidden::Traits<Derived>::sizeRows_,
878 sizeCols_ = hidden::Traits<Derived>::sizeCols_,
879 storage_ = hidden::Traits<Derived>::storage_
880 };

Constructor & Destructor Documentation

◆ ITContainer()

template<class Derived >
STK::ITContainer< Derived, Arrays::vector_ >::ITContainer ( )
inlineprotected

default constructor.

Definition at line 888 of file STK_ITContainer.h.

888: Base() {}

◆ ~ITContainer()

template<class Derived >
STK::ITContainer< Derived, Arrays::vector_ >::~ITContainer ( )
inlineprotected

destructor.

Definition at line 890 of file STK_ITContainer.h.

890{}

Member Function Documentation

◆ back() [1/2]

template<class Derived >
Type & STK::ITContainer< Derived, Arrays::vector_ >::back ( )
inline
Returns
the last element

Definition at line 919 of file STK_ITContainer.h.

919{ return this->elt(lastIdx());}
TypeConst elt() const

◆ back() [2/2]

template<class Derived >
TypeConst STK::ITContainer< Derived, Arrays::vector_ >::back ( ) const
inline
Returns
the last element

Definition at line 914 of file STK_ITContainer.h.

914{ return this->elt(lastIdx());}

◆ begin()

template<class Derived >
int STK::ITContainer< Derived, Arrays::vector_ >::begin ( ) const
inline
Returns
the index of the first element

Definition at line 896 of file STK_ITContainer.h.

896{ return range().begin();}

◆ colIdx()

template<class Derived >
int STK::ITContainer< Derived, Arrays::vector_ >::colIdx ( ) const
inline
Returns
the index of the column of the vector

Definition at line 909 of file STK_ITContainer.h.

909{ return this->beginCols();}

◆ end()

template<class Derived >
int STK::ITContainer< Derived, Arrays::vector_ >::end ( ) const
inline
Returns
the ending index of the elements

Definition at line 898 of file STK_ITContainer.h.

898{ return range().end();}

◆ firstIdx()

template<class Derived >
int STK::ITContainer< Derived, Arrays::vector_ >::firstIdx ( ) const
inline
Returns
the first index of the vector

Definition at line 904 of file STK_ITContainer.h.

◆ front() [1/2]

template<class Derived >
Type & STK::ITContainer< Derived, Arrays::vector_ >::front ( )
inline
Returns
the first element

Definition at line 917 of file STK_ITContainer.h.

917{ return this->elt(firstIdx());}

◆ front() [2/2]

template<class Derived >
TypeConst STK::ITContainer< Derived, Arrays::vector_ >::front ( ) const
inline
Returns
the first element

Definition at line 912 of file STK_ITContainer.h.

912{ return this->elt(firstIdx());}

◆ lastIdx()

template<class Derived >
int STK::ITContainer< Derived, Arrays::vector_ >::lastIdx ( ) const
inline
Returns
the last index of the vector

Definition at line 906 of file STK_ITContainer.h.

◆ range()

template<class Derived >
RowRange const & STK::ITContainer< Derived, Arrays::vector_ >::range ( ) const
inline
Returns
the range of the container

Definition at line 894 of file STK_ITContainer.h.

894{ return this->rows();}
RowRange const & rows() const

◆ size()

template<class Derived >
int STK::ITContainer< Derived, Arrays::vector_ >::size ( ) const
inline
Returns
the size of the vector

Definition at line 900 of file STK_ITContainer.h.

900{ return range().size();}

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