ZeroBuf  0.2.0
Zero-copy, zero-serialize, zero-hassle protocol buffers
zerobuf::render::ImageJPEG Class Reference
+ Inheritance diagram for zerobuf::render::ImageJPEG:
+ Collaboration diagram for zerobuf::render::ImageJPEG:

Public Types

typedef ::zerobuf::Vector< uint8_t > Data
 

Public Member Functions

ImageJPEG::DatagetData ()
 
const ImageJPEG::DatagetData () const
 
void setData (uint8_t const *value, size_t size)
 
std::vector< uint8_t > getDataVector () const
 
void setData (const std::vector< uint8_t > &value)
 
std::string getDataString () const
 
void setData (const std::string &value)
 
void compact (float threshold=0.1f) final
 Remove unused holes from the zerobuf. More...
 
 ImageJPEG (const std::vector< uint8_t > &dataValue)
 
 ImageJPEG (const ImageJPEG &rhs)
 
 ImageJPEG (ImageJPEG &&rhs) throw ()
 
 ImageJPEG (const ::zerobuf::Zerobuf &rhs)
 
 ImageJPEG (::zerobuf::AllocatorPtr allocator)
 
ImageJPEGoperator= (const ImageJPEG &rhs)
 
ImageJPEGoperator= (ImageJPEG &&rhs)
 
std::string getTypeName () const final
 
::zerobuf::uint128_t getTypeIdentifier () const final
 
size_t getZerobufStaticSize () const final
 
size_t getZerobufNumDynamics () const final
 
void _parseJSON (const Json::Value &json) final
 
void _createJSON (Json::Value &json) const final
 
- Public Member Functions inherited from zerobuf::Zerobuf
virtual void notifyChanging ()
 Called if any data in this object is about to change. More...
 
Zerobufoperator= (const Zerobuf &rhs)
 Assignment operator. More...
 
 Zerobuf (Zerobuf &&rhs)
 Move ctor. More...
 
Zerobufoperator= (Zerobuf &&rhs)
 Move operator. More...
 
bool operator== (const Zerobuf &rhs) const
 
bool operator!= (const Zerobuf &rhs) const
 
void reset (AllocatorPtr allocator)
 
void check () const
 

Static Public Member Functions

static size_t ZEROBUF_STATIC_SIZE ()
 
static size_t ZEROBUF_NUM_DYNAMICS ()
 

Additional Inherited Members

- Protected Member Functions inherited from zerobuf::Zerobuf
 Zerobuf (AllocatorPtr alloc)
 
const AllocatorgetAllocator () const
 
AllocatorgetAllocator ()
 
void _copyZerobufArray (const void *data, size_t size, size_t arrayNum)
 

Detailed Description

Definition at line 12 of file imageJPEG.h.

Member Function Documentation

void zerobuf::render::ImageJPEG::compact ( float  threshold = 0.1f)
finalvirtual

Remove unused holes from the zerobuf.

Compaction only occurs if the current allocation exceeds the relative threshold to the optimal size, that is, if unusedMemory divided by optimalMemory is above the threshold.

Parameters
thresholdthe compaction threshold

Reimplemented from zerobuf::Zerobuf.

size_t zerobuf::render::ImageJPEG::getZerobufNumDynamics ( ) const
inlinefinalvirtual
Returns
the number of dynamics fields of this object.

Implements zerobuf::Zerobuf.

Definition at line 42 of file imageJPEG.h.

size_t zerobuf::render::ImageJPEG::getZerobufStaticSize ( ) const
inlinefinalvirtual
Returns
the static size of this object in bytes.

Implements zerobuf::Zerobuf.

Definition at line 40 of file imageJPEG.h.


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