WvStreams
Public Member Functions | Protected Types | Protected Attributes | List of all members
WvBufCursorBase< T > Class Template Reference

A buffer that acts like a cursor over a portion of another buffer. More...

#include <wvbufbase.h>

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

Public Member Functions

 WvBufCursorBase (WvBufBase< T > &_buf, int _start, size_t _length)
 Creates a new buffer. More...
 

Protected Types

typedef T Elem
 

Protected Attributes

WvBufCursorStore mystore
 

Detailed Description

template<class T>
class WvBufCursorBase< T >

A buffer that acts like a cursor over a portion of another buffer.

The underlying buffer's get() position is not affected by reading from this 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 1014 of file wvbufbase.h.

Constructor & Destructor Documentation

◆ WvBufCursorBase()

template<class T >
WvBufCursorBase< T >::WvBufCursorBase ( WvBufBase< T > &  _buf,
int  _start,
size_t  _length 
)
inline

Creates a new buffer.

Does not take ownership of the supplied buffer.

"_buf" is a pointer to the buffer to be wrapped "_start" is the buffer offset of the window start position "_length" is the length of the window

Definition at line 1032 of file wvbufbase.h.


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