Public Member Functions | Private Member Functions | Private Attributes | List of all members
rtflann::serialization::SaveArchive Class Reference

#include <serialization.h>

Inheritance diagram for rtflann::serialization::SaveArchive:
Inheritance graph
[legend]

Public Member Functions

template<typename T >
void save (const T &val)
 
template<typename T >
void save (T *const &val)
 
template<typename T >
void save_binary (T *ptr, size_t size)
 
 SaveArchive (const char *filename)
 
 SaveArchive (FILE *stream)
 
 ~SaveArchive ()
 
- Public Member Functions inherited from rtflann::serialization::OutputArchive< SaveArchive >
SaveArchiveoperator& (const T &val)
 
- Public Member Functions inherited from rtflann::serialization::ArchiveBase
void * getObject ()
 
void setObject (void *object)
 

Private Member Functions

void endBlock ()
 
void flushBlock ()
 
void initBlock ()
 

Private Attributes

char * buffer_
 
char * buffer_blocks_
 
char * compressed_buffer_
 
int first_block_
 
LZ4_streamHC_tlz4Stream
 
LZ4_streamHC_t lz4Stream_body
 
size_t offset_
 
bool own_stream_
 
FILE * stream_
 

Additional Inherited Members

- Public Types inherited from rtflann::serialization::OutputArchive< SaveArchive >
typedef bool_< falseis_loading
 
typedef bool_< trueis_saving
 
- Protected Member Functions inherited from rtflann::serialization::OutputArchive< SaveArchive >
 OutputArchive ()
 

Detailed Description

Definition at line 376 of file serialization.h.

Constructor & Destructor Documentation

rtflann::serialization::SaveArchive::SaveArchive ( const char *  filename)
inline

Definition at line 482 of file serialization.h.

rtflann::serialization::SaveArchive::SaveArchive ( FILE *  stream)
inline

Definition at line 489 of file serialization.h.

rtflann::serialization::SaveArchive::~SaveArchive ( )
inline

Definition at line 494 of file serialization.h.

Member Function Documentation

void rtflann::serialization::SaveArchive::endBlock ( )
inlineprivate

Definition at line 467 of file serialization.h.

void rtflann::serialization::SaveArchive::flushBlock ( )
inlineprivate

Definition at line 412 of file serialization.h.

void rtflann::serialization::SaveArchive::initBlock ( )
inlineprivate

Definition at line 394 of file serialization.h.

template<typename T >
void rtflann::serialization::SaveArchive::save ( const T &  val)
inline

Definition at line 508 of file serialization.h.

template<typename T >
void rtflann::serialization::SaveArchive::save ( T *const &  val)
inline

Definition at line 518 of file serialization.h.

template<typename T >
void rtflann::serialization::SaveArchive::save_binary ( T *  ptr,
size_t  size 
)
inline

Definition at line 525 of file serialization.h.

Member Data Documentation

char* rtflann::serialization::SaveArchive::buffer_
private

Definition at line 385 of file serialization.h.

char* rtflann::serialization::SaveArchive::buffer_blocks_
private

Definition at line 389 of file serialization.h.

char* rtflann::serialization::SaveArchive::compressed_buffer_
private

Definition at line 390 of file serialization.h.

int rtflann::serialization::SaveArchive::first_block_
private

Definition at line 388 of file serialization.h.

LZ4_streamHC_t* rtflann::serialization::SaveArchive::lz4Stream
private

Definition at line 392 of file serialization.h.

LZ4_streamHC_t rtflann::serialization::SaveArchive::lz4Stream_body
private

Definition at line 391 of file serialization.h.

size_t rtflann::serialization::SaveArchive::offset_
private

Definition at line 386 of file serialization.h.

bool rtflann::serialization::SaveArchive::own_stream_
private

Definition at line 384 of file serialization.h.

FILE* rtflann::serialization::SaveArchive::stream_
private

Based on blockStreaming_doubleBuffer code at: https://github.com/Cyan4973/lz4/blob/master/examples/blockStreaming_doubleBuffer.c

Definition at line 383 of file serialization.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:09