GClasses
GClasses::GVecWrapper Class Reference

Detailed Description

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

#include <GVec.h>

Public Member Functions

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

Protected Attributes

GVec m_v
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

GVec GClasses::GVecWrapper::m_v
protected