#include <vecdoubleref.h>


Public Member Functions | |
| VecDoubleRef (double *ptr, unsigned size) | |
| VecDoubleRef () | |
| VecDoubleRef (unsigned size) | |
| VecDoubleRef (Matrix &M, unsigned row) | |
| void | setRef (double *pts, unsigned size) |
| void | setData (double *pts) |
This is a VecDouble that is initialized already in reference mode and trhough all its life time it never own any memory.
Definition at line 11 of file vecdoubleref.h.
| VecDoubleRef::VecDoubleRef | ( | double * | ptr, | |
| unsigned | size | |||
| ) |
Definition at line 15 of file vecdoubleref.cpp.
00016 { 00017 VecDouble::setRef(ptr,size); 00018 }
| VecDoubleRef::VecDoubleRef | ( | ) |
Definition at line 22 of file vecdoubleref.cpp.
00023 { 00024 VecDouble::setRef(NULL,0); 00025 }
| VecDoubleRef::VecDoubleRef | ( | unsigned | size | ) |
Definition at line 29 of file vecdoubleref.cpp.
00030 { 00031 VecDouble::setRef(NULL,size); 00032 }
| VecDoubleRef::VecDoubleRef | ( | Matrix & | M, | |
| unsigned | row | |||
| ) |
Initialializes a vecdouble reference pointing to a line of a matrix
| M | ||
| row |
Definition at line 9 of file vecdoubleref.cpp.
00010 { 00011 assert(row < M.m()); 00012 VecDouble::setRef(&M(row,0),M.n()); 00013 }
| void VecDoubleRef::setData | ( | double * | data | ) |
Quicly makes this vector to point to another memory location
| p |
Definition at line 44 of file vecdoubleref.cpp.
00045 { 00046 assert(m_owner == false); 00047 val=data; 00048 }
| void VecDoubleRef::setRef | ( | double * | p, | |
| unsigned | size | |||
| ) |
Make the vector to point to someone else memory. Once this function is called, the object is forbidden to allocate memory by its own during its hole like.
| p | ||
| size |
Reimplemented from VecDouble.
1.6.3