WvStreams
Public Member Functions | List of all members
WvBufViewBase< T > Class Template Reference

A buffer that provides a read-write view over another buffer with a different datatype. More...

#include <wvbufbase.h>

Inheritance diagram for WvBufViewBase< T >:
Inheritance graph
[legend]

Public Member Functions

template<typename S >
 WvBufViewBase (WvBufBase< S > &_buf)
 Creates a new buffer. More...
 

Detailed Description

template<class T>
class WvBufViewBase< T >

A buffer that provides a read-write view over another buffer with a different datatype.

Reading and writing through this buffer implicitly performs the equivalent of reinterpret_cast on each element.

Most useful for manipulating data backed by a raw memory buffer.

"T" is the type of object to store, must be a primitive or a struct without special initialization, copy, or assignment semantics

Definition at line 1052 of file wvbufbase.h.

Constructor & Destructor Documentation

◆ WvBufViewBase()

template<class T >
template<typename S >
WvBufViewBase< T >::WvBufViewBase ( WvBufBase< S > &  _buf)
inline

Creates a new buffer.

Does not take ownership of the supplied buffer.

"_buf" is a pointer to the buffer to be wrapped

Definition at line 1064 of file wvbufbase.h.


The documentation for this class was generated from the following file: