Classes | Namespaces | Defines | Functions
serialization.h File Reference
#include <vector>
#include <map>
#include <cstdlib>
#include <cstring>
#include <stdio.h>
#include "rtflann/ext/lz4.h"
#include "rtflann/ext/lz4hc.h"
Include dependency graph for serialization.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rtflann::serialization::access
class  rtflann::serialization::ArchiveBase
struct  rtflann::serialization::binary_object
struct  rtflann::serialization::bool_< C_ >
struct  rtflann::IndexHeaderStruct
class  rtflann::serialization::InputArchive< Archive >
class  rtflann::serialization::LoadArchive
class  rtflann::serialization::OutputArchive< Archive >
class  rtflann::serialization::SaveArchive
struct  rtflann::serialization::Serializer< T >
struct  rtflann::serialization::Serializer< binary_object >
struct  rtflann::serialization::Serializer< const binary_object >
struct  rtflann::serialization::Serializer< std::map< K, V > >
struct  rtflann::serialization::Serializer< std::vector< T > >
struct  rtflann::serialization::Serializer< T * >
struct  rtflann::serialization::Serializer< T[N]>
class  rtflann::serialization::SizeArchive

Namespaces

namespace  rtflann
namespace  rtflann::serialization

Defines

#define BASIC_TYPE_SERIALIZER(type)
#define BLOCK_BYTES   (1024 * 64)
#define ENUM_SERIALIZER(type)

Functions

 rtflann::serialization::BASIC_TYPE_SERIALIZER (char)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (unsigned char)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (short)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (int)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (long)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (unsigned long long)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (float)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (double)
 rtflann::serialization::BASIC_TYPE_SERIALIZER (bool)
const binary_object rtflann::serialization::make_binary_object (void *t, size_t size)
template<typename Archive , typename T >
void rtflann::serialization::serialize (Archive &ar, T &type)

Define Documentation

#define BASIC_TYPE_SERIALIZER (   type)
Value:
template<> \
struct Serializer<type> \
{\
    template<typename InputArchive>\
    static inline void load(InputArchive& ar, type& val)\
    {\
        ar.load(val);\
    }\
    template<typename OutputArchive>\
    static inline void save(OutputArchive& ar, const type& val)\
    {\
        ar.save(val);\
    }\
}

Definition at line 60 of file serialization.h.

#define BLOCK_BYTES   (1024 * 64)

Definition at line 374 of file serialization.h.

#define ENUM_SERIALIZER (   type)
Value:
template<>\
struct Serializer<type>\
{\
    template<typename InputArchive>\
    static inline void load(InputArchive& ar, type& val)\
    {\
        int int_val;\
        ar & int_val;\
        val = (type) int_val;\
    }\
    template<typename OutputArchive>\
    static inline void save(OutputArchive& ar, const type& val)\
    {\
        int int_val = (int)val;\
        ar & int_val;\
    }\
}

Definition at line 76 of file serialization.h.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:35