WvStreams
Public Types | Public Member Functions | Protected Member Functions | List of all members
WvTypedEncoder< IT, unsigned char, S > Class Template Referenceabstract

Partial template specialization for unsigned char output buffer type to avoid compilation errors. More...

#include <wvtypedencoder.h>

Inheritance diagram for WvTypedEncoder< IT, unsigned char, S >:
Inheritance graph
[legend]

Public Types

typedef IT IType
 
typedef unsigned char OType
 
typedef WvBufBase< IType > IBuffer
 
typedef WvBufBase< OType > OBuffer
 
typedef WvBufViewBase< IType > IBufferView
 
typedef WvBufViewBase< OType > OBufferView
 

Public Member Functions

bool encode (IBuffer &inbuf, OBuffer &outbuf, bool flush=false, bool finish=false)
 Typed variant of encode(). More...
 
bool flush (IBuffer &inbuf, OBuffer &outbuf, bool finish=false)
 Typed variant of flush(). More...
 
bool encode (WvBuf &inbuf, WvBuf &outbuf, bool flush=false, bool finish=false)
 
bool flush (WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
 

Protected Member Functions

virtual bool _typedencode (IBuffer &inbuf, OBuffer &outbuf, bool flush)=0
 Typed variant of _encode(). More...
 
virtual bool _typedfinish (OBuffer &outbuf)
 Typed variant of _finish(). More...
 
virtual bool _encode (WvBuf &inbuf, WvBuf &outbuf, bool flush)
 Wrapper implementation of _encode().
 
virtual bool _finish (WvBuf &outbuf)
 Wrapper implementation of _finish().
 

Detailed Description

template<class IT, class S>
class WvTypedEncoder< IT, unsigned char, S >

Partial template specialization for unsigned char output buffer type to avoid compilation errors.

"IType" is the input buffer datatype

Definition at line 130 of file wvtypedencoder.h.

Member Function Documentation

◆ encode()

template<class IT , class S >
bool WvTypedEncoder< IT, unsigned char, S >::encode ( IBuffer inbuf,
OBuffer outbuf,
bool  flush = false,
bool  finish = false 
)
inline

Typed variant of encode().

See also
encode(WvBuf&, WvBuf&, bool, bool)

Definition at line 144 of file wvtypedencoder.h.

References WvTypedEncoder< IT, OT, S >::finish(), and WvTypedEncoder< IT, OT, S >::flush().

◆ flush()

template<class IT , class S >
bool WvTypedEncoder< IT, unsigned char, S >::flush ( IBuffer inbuf,
OBuffer outbuf,
bool  finish = false 
)
inline

Typed variant of flush().

See also
flush(WvBuf, WvBuf, bool)

Definition at line 155 of file wvtypedencoder.h.

References WvTypedEncoder< IT, OT, S >::finish().

◆ _typedencode()

template<class IT , class S >
virtual bool WvTypedEncoder< IT, unsigned char, S >::_typedencode ( IBuffer inbuf,
OBuffer outbuf,
bool  flush 
)
protectedpure virtual

Typed variant of _encode().

See also
_encode(WvBuf&, WvBuf&, bool)

◆ _typedfinish()

template<class IT , class S >
virtual bool WvTypedEncoder< IT, unsigned char, S >::_typedfinish ( OBuffer outbuf)
inlineprotectedvirtual

Typed variant of _finish().

See also
_finish(WvBuf&)

Definition at line 184 of file wvtypedencoder.h.


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