Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
blob::Blob_< ContainerAllocator > Struct Template Reference

#include <Blob.h>

Public Types

typedef std::vector< value_typeBuffer
 
typedef boost::shared_ptr< BufferBufferPtr
 
typedef boost::shared_ptr< const BufferConstBufferPtr
 
typedef boost::shared_ptr< ::blob::Blob_< ContainerAllocator > const > ConstPtr
 
typedef boost::shared_ptr< ::blob::Blob_< ContainerAllocator > > Ptr
 
typedef uint32_t size_type
 
typedef Blob_< ContainerAllocator > Type
 
typedef uint8_t value_type
 

Public Member Functions

ShapeShifter asMessage () const
 
const value_typebegin () const
 
 Blob_ ()
 
 Blob_ (const ContainerAllocator &_alloc)
 
 Blob_ (const void *data, size_type size, bool compressed=false)
 
void clear ()
 
void copy ()
 
void copy (const value_type *data, size_type size)
 
const value_typedata () const
 
bool empty () const
 
const value_typeend () const
 
ConstBufferPtr getCompressedBlob () const
 
ConstBufferPtr getCopy ()
 
template<typename M >
boost::shared_ptr< M > instantiate () const
 
bool isCompressed () const
 
bool isCopy () const
 
Blob_< ContainerAllocator > & operator= (const Blob_< ContainerAllocator > &other)
 
template<typename Stream >
void read (Stream &stream)
 
template<typename M >
void serialize (const M &message)
 
uint32_t serializedLength () const
 
void set (const void *data, size_type size)
 
void set (ConstBufferPtr data)
 
void setCompressed (bool compressed)
 
bool setFromCompressedData (const void *data, uint32_t size)
 
size_type size () const
 
template<typename Stream >
void write (Stream &stream) const
 

Public Attributes

boost::shared_ptr< std::map< std::string, std::string > > __connection_header
 

Private Member Functions

bool compress () const
 
bool decompress (const uint8_t *data, uint32_t size)
 

Private Attributes

bool compressed_
 
ConstBufferPtr compressed_blob_
 
ConstBufferPtr copy_
 
const value_typepointer_
 
size_type size_
 

Detailed Description

template<class ContainerAllocator>
struct blob::Blob_< ContainerAllocator >

Definition at line 48 of file Blob.h.

Member Typedef Documentation

template<class ContainerAllocator>
typedef std::vector<value_type> blob::Blob_< ContainerAllocator >::Buffer

Definition at line 54 of file Blob.h.

template<class ContainerAllocator>
typedef boost::shared_ptr<Buffer> blob::Blob_< ContainerAllocator >::BufferPtr

Definition at line 55 of file Blob.h.

template<class ContainerAllocator>
typedef boost::shared_ptr<const Buffer> blob::Blob_< ContainerAllocator >::ConstBufferPtr

Definition at line 56 of file Blob.h.

template<class ContainerAllocator>
typedef boost::shared_ptr< ::blob::Blob_<ContainerAllocator> const> blob::Blob_< ContainerAllocator >::ConstPtr

Definition at line 77 of file Blob.h.

template<class ContainerAllocator>
typedef boost::shared_ptr< ::blob::Blob_<ContainerAllocator> > blob::Blob_< ContainerAllocator >::Ptr

Definition at line 76 of file Blob.h.

template<class ContainerAllocator>
typedef uint32_t blob::Blob_< ContainerAllocator >::size_type

Definition at line 52 of file Blob.h.

template<class ContainerAllocator>
typedef Blob_<ContainerAllocator> blob::Blob_< ContainerAllocator >::Type

Definition at line 50 of file Blob.h.

template<class ContainerAllocator>
typedef uint8_t blob::Blob_< ContainerAllocator >::value_type

Definition at line 51 of file Blob.h.

Constructor & Destructor Documentation

template<class ContainerAllocator>
blob::Blob_< ContainerAllocator >::Blob_ ( )
inline

Definition at line 58 of file Blob.h.

template<class ContainerAllocator>
blob::Blob_< ContainerAllocator >::Blob_ ( const ContainerAllocator &  _alloc)
inline

Definition at line 64 of file Blob.h.

template<class ContainerAllocator>
blob::Blob_< ContainerAllocator >::Blob_ ( const void *  data,
size_type  size,
bool  compressed = false 
)
inline

Definition at line 70 of file Blob.h.

Member Function Documentation

template<typename ContainerAllocator >
ShapeShifter blob::Blob_< ContainerAllocator >::asMessage ( ) const

Definition at line 96 of file shape_shifter.h.

template<class ContainerAllocator>
const value_type* blob::Blob_< ContainerAllocator >::begin ( ) const
inline

Definition at line 93 of file Blob.h.

template<class ContainerAllocator>
void blob::Blob_< ContainerAllocator >::clear ( )
inline

Definition at line 100 of file Blob.h.

template<class ContainerAllocator>
bool blob::Blob_< ContainerAllocator >::compress ( ) const
inlineprivate

Definition at line 243 of file Blob.h.

template<class ContainerAllocator>
void blob::Blob_< ContainerAllocator >::copy ( )
inline

Definition at line 128 of file Blob.h.

template<class ContainerAllocator>
void blob::Blob_< ContainerAllocator >::copy ( const value_type data,
size_type  size 
)
inline

Definition at line 138 of file Blob.h.

template<class ContainerAllocator>
const value_type* blob::Blob_< ContainerAllocator >::data ( ) const
inline

Definition at line 92 of file Blob.h.

template<class ContainerAllocator>
bool blob::Blob_< ContainerAllocator >::decompress ( const uint8_t *  data,
uint32_t  size 
)
inlineprivate

Definition at line 260 of file Blob.h.

template<class ContainerAllocator>
bool blob::Blob_< ContainerAllocator >::empty ( ) const
inline

Definition at line 108 of file Blob.h.

template<class ContainerAllocator>
const value_type* blob::Blob_< ContainerAllocator >::end ( ) const
inline

Definition at line 94 of file Blob.h.

template<class ContainerAllocator>
ConstBufferPtr blob::Blob_< ContainerAllocator >::getCompressedBlob ( ) const
inline

Definition at line 232 of file Blob.h.

template<class ContainerAllocator>
ConstBufferPtr blob::Blob_< ContainerAllocator >::getCopy ( )
inline

Definition at line 144 of file Blob.h.

template<class ContainerAllocator>
template<typename M >
boost::shared_ptr<M> blob::Blob_< ContainerAllocator >::instantiate ( ) const
inline

Definition at line 210 of file Blob.h.

template<class ContainerAllocator>
bool blob::Blob_< ContainerAllocator >::isCompressed ( ) const
inline

Definition at line 98 of file Blob.h.

template<class ContainerAllocator>
bool blob::Blob_< ContainerAllocator >::isCopy ( ) const
inline

Definition at line 96 of file Blob.h.

template<class ContainerAllocator>
Blob_<ContainerAllocator>& blob::Blob_< ContainerAllocator >::operator= ( const Blob_< ContainerAllocator > &  other)
inline

Definition at line 81 of file Blob.h.

template<class ContainerAllocator>
template<typename Stream >
void blob::Blob_< ContainerAllocator >::read ( Stream &  stream)
inline

Definition at line 173 of file Blob.h.

template<class ContainerAllocator>
template<typename M >
void blob::Blob_< ContainerAllocator >::serialize ( const M &  message)
inline

Definition at line 219 of file Blob.h.

template<class ContainerAllocator>
uint32_t blob::Blob_< ContainerAllocator >::serializedLength ( ) const
inline

Definition at line 194 of file Blob.h.

template<class ContainerAllocator>
void blob::Blob_< ContainerAllocator >::set ( const void *  data,
size_type  size 
)
inline

Definition at line 113 of file Blob.h.

template<class ContainerAllocator>
void blob::Blob_< ContainerAllocator >::set ( ConstBufferPtr  data)
inline

Definition at line 120 of file Blob.h.

template<class ContainerAllocator>
void blob::Blob_< ContainerAllocator >::setCompressed ( bool  compressed)
inline

Definition at line 97 of file Blob.h.

template<class ContainerAllocator>
bool blob::Blob_< ContainerAllocator >::setFromCompressedData ( const void *  data,
uint32_t  size 
)
inline

Definition at line 237 of file Blob.h.

template<class ContainerAllocator>
size_type blob::Blob_< ContainerAllocator >::size ( ) const
inline

Definition at line 91 of file Blob.h.

template<class ContainerAllocator>
template<typename Stream >
void blob::Blob_< ContainerAllocator >::write ( Stream &  stream) const
inline

Definition at line 153 of file Blob.h.

Member Data Documentation

template<class ContainerAllocator>
boost::shared_ptr<std::map<std::string, std::string> > blob::Blob_< ContainerAllocator >::__connection_header

Definition at line 78 of file Blob.h.

template<class ContainerAllocator>
bool blob::Blob_< ContainerAllocator >::compressed_
private

Definition at line 275 of file Blob.h.

template<class ContainerAllocator>
ConstBufferPtr blob::Blob_< ContainerAllocator >::compressed_blob_
mutableprivate

Definition at line 280 of file Blob.h.

template<class ContainerAllocator>
ConstBufferPtr blob::Blob_< ContainerAllocator >::copy_
private

Definition at line 279 of file Blob.h.

template<class ContainerAllocator>
const value_type* blob::Blob_< ContainerAllocator >::pointer_
private

Definition at line 276 of file Blob.h.

template<class ContainerAllocator>
size_type blob::Blob_< ContainerAllocator >::size_
private

Definition at line 277 of file Blob.h.


The documentation for this struct was generated from the following files:


blob
Author(s): Johannes Meyer
autogenerated on Sat Jul 27 2019 03:35:24