All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dvectorbase.h
Go to the documentation of this file.
36 * Class DVectorBase is a derived class of VectorBase adding automatic memory management to such objects. This allows
37 * to implement maths operations operator+() and operator-(). Further, it is possible to reset the dimension of a
38 * DVectorBase via method reDim(). However, this may render all references to values of a #reDim()%ed DVectorBase
41 * For vectors that are often subject to reDim() it may be unconvenient to reallocate the required memory every time.
42 * Instead, an array of values of length memSize() is kept, where only the first dim() elements are used. Initially,
43 * memSize() == dim(). However, if the dimension is increased, memSize() will be increased at least by a factor of 1.2
44 * to be prepared for future (small) #reDim()%s. Finally, one can explicitly set memSize() with method reSize(), but
54 // ------------------------------------------------------------------------------------------------------------------
68 // ------------------------------------------------------------------------------------------------------------------
111 /** The redundancy with the copy constructor below is necessary since otherwise the compiler doesn't realize that it
238 // ------------------------------------------------------------------------------------------------------------------
297 // ------------------------------------------------------------------------------------------------------------------
|