/**
* Simple memory management. This memory class is just made for
- * tests. It requires the vector to have a constructor with integer
- * parameter indicating the size. It just allocates and deletes
+ * tests. It just allocates and deletes
* vectors as needed from the global heap, i.e. performs no
* specially adapted actions to the purpose of this class.
*/
template<class Vector>
class PrimitiveVectorMemory : public VectorMemory<Vector> {
- const unsigned int size;
public:
/**
* Constructor.
- * #sz# is the length of vectors to
- * be generated by alloc.
*/
- PrimitiveVectorMemory (const unsigned int sz) : size(sz) {};
+ PrimitiveVectorMemory () {};
/**
- * Allocate a vector of the given size
+ * Allocate a vector
* from the global heap.
*/
virtual Vector* alloc() {
- return new Vector(size);
+ return new Vector();
};
/**
/* end of #ifndef __vector_memory_H */
#endif
/*---------------------------- vector_memory.h ---------------------------*/
+