GClasses
GClasses::GConstVecWrapper Class Reference

Detailed Description

This class temporarily wraps a GVec around a const array of doubles. You should take care to ensure this object is destroyed before the array it wraps.

#include <GVec.h>

Public Member Functions

 GConstVecWrapper (const double *buf=nullptr, size_t size=0)
 
 ~GConstVecWrapper ()
 
void setData (const double *buf)
 
void setData (const double *buf, size_t size)
 
void setSize (size_t size)
 
const GVecvec ()
 

Protected Attributes

GVec m_v
 

Constructor & Destructor Documentation

GClasses::GConstVecWrapper::GConstVecWrapper ( const double *  buf = nullptr,
size_t  size = 0 
)
inline
GClasses::GConstVecWrapper::~GConstVecWrapper ( )
inline

Member Function Documentation

void GClasses::GConstVecWrapper::setData ( const double *  buf)
inline
void GClasses::GConstVecWrapper::setData ( const double *  buf,
size_t  size 
)
inline
void GClasses::GConstVecWrapper::setSize ( size_t  size)
inline
const GVec& GClasses::GConstVecWrapper::vec ( )
inline

Member Data Documentation

GVec GClasses::GConstVecWrapper::m_v
protected