Holds an array of doubles that can be resized. This class is slightly lighter-weight than the C++ vector class, and it allows access to the buffer in the form of an array of doubles. Basically, it is useful when working with C-style functions that expect parameters in the form of an array of doubles, rather than as a vector of doubles.
More...
#include <GVec.h>
|
| GVecBuf () |
|
| ~GVecBuf () |
|
void | grow (size_t size) |
| Resizes the array if necessary, preserving the contents. More...
|
|
void | reserve (size_t size) |
| Ensures that the array is at least the specified size. Resizes (destroying the contents) if it is not. More...
|
|
void | resize (size_t size) |
| Resizes the array, nomatter what, and destroys any existing contents. More...
|
|
size_t | size () |
| Returns the current size of the buffer. More...
|
|
Holds an array of doubles that can be resized. This class is slightly lighter-weight than the C++ vector class, and it allows access to the buffer in the form of an array of doubles. Basically, it is useful when working with C-style functions that expect parameters in the form of an array of doubles, rather than as a vector of doubles.
GClasses::GVecBuf::GVecBuf |
( |
| ) |
|
|
inline |
GClasses::GVecBuf::~GVecBuf |
( |
| ) |
|
|
inline |
void GClasses::GVecBuf::grow |
( |
size_t |
size | ) |
|
|
inline |
Resizes the array if necessary, preserving the contents.
void GClasses::GVecBuf::reserve |
( |
size_t |
size | ) |
|
|
inline |
Ensures that the array is at least the specified size. Resizes (destroying the contents) if it is not.
void GClasses::GVecBuf::resize |
( |
size_t |
size | ) |
|
|
inline |
Resizes the array, nomatter what, and destroys any existing contents.
size_t GClasses::GVecBuf::size |
( |
| ) |
|
|
inline |
Returns the current size of the buffer.
double* GClasses::GVecBuf::m_pBuf |
size_t GClasses::GVecBuf::m_size |