1 #ifndef LAP_ConstVector_H
2 #define LAP_ConstVector_H
53 if (!mIsVectorReference) {
84 inline boost::shared_ptr<LAP_ConstVector<T> > getThis() {
85 boost::shared_ptr<LAP_ConstVector<T> > p;
91 inline boost::shared_ptr<const LAP_ConstVector<T> > getThis()
const {
92 boost::shared_ptr<const LAP_ConstVector<T> > p;
122 if (increment==0)
return false;
123 if (end<start)
return false;
124 if (end>mCapacity)
return false;
125 if (end-increment>mCapacity)
return false;
126 mView.
setView(start,end,increment);
145 mIsVectorReference=isReferenced;
This class is a view of a pointer.
Definition: LAP_View.h:14
void getSharedPointer(boost::shared_ptr< const LAP_ConstVector< T > > &p) const
return the shared pointer corresponding to the class whith casting
Definition: LAP_ConstVector.h:76
const tLVectorIndex & getStart() const
get the start of the vector
Definition: LAP_ConstVector.h:180
tLVectorIndex getSize() const
get the size of the vector
Definition: LAP_ConstVector.h:170
#define tBoolean
Definition: types.h:48
const tLVectorIndex & getStart() const
get the start index of the first element in [start,end[
Definition: LAP_View.h:130
void setView(const tLVectorIndex &start, const tLVectorIndex &end, const tLVectorIndex &inc)
set the the view the element considered are in [start,end[ with increment inc
Definition: LAP_View.h:88
#define null
Definition: types.h:13
virtual ~LAP_ConstVector()
destroy a vector
Definition: LAP_ConstVector.h:47
const tLVectorIncrement & getIncrement() const
get increment
Definition: LAP_View.h:125
void getSharedPointer(boost::shared_ptr< LAP_ConstVector< T > > &p)
return the shared pointer corresponding to the class with casting
Definition: LAP_ConstVector.h:69
This class is the base class of all lapack objects.
Definition: LAP_Object.h:17
LAP_ConstVector()
build a vector
Definition: LAP_ConstVector.hpp:8
void reset()
reset
Definition: LAP_View.h:114
void setValues(const tLVectorIndex &n, const T *&values, const tBoolean &isReferenced)
Definition: LAP_ConstVector.h:134
void getSharedPointer(SP::CORE_Object &p)
get the shared pointer of this class into p
Definition: CORE_Object.h:65
#define tLVectorIndex
Definition: lapack_types.h:13
const tLVectorIncrement & getIncrement() const
get the increment of the vector
Definition: LAP_ConstVector.h:175
virtual const T * getValues() const
get the values for reading the size of used vector is return by getSize();
Definition: LAP_ConstVector.h:161
const T & operator()(const tLVectorIndex &i) const
get the value for reading only
Definition: LAP_ConstVector.h:112
const T & operator[](const tLVectorIndex &i) const
get the value for reading only
Definition: LAP_ConstVector.h:104
const tLVectorIndex & getEnd() const
get the end of the vector
Definition: LAP_ConstVector.h:185
#define tLVectorIncrement
Definition: lapack_types.h:16
tBoolean setView(const tLVectorIndex &start, const tLVectorIndex &end, const tLVectorIncrement &increment)
set the view of the vector
Definition: LAP_ConstVector.h:121
this class describes a vector of const double
Definition: LAP_ConstVector.h:14
tLVectorIndex getSize() const
Definition: LAP_View.h:141
#define ASSERT_IN(a)
Definition: types.h:96