MRPT  1.9.9
Classes | Functions
stl_serialize_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/io/CMemoryStream.h>
#include <mrpt/serialization/CArchive.h>
#include <mrpt/serialization/CSerializable.h>
#include <mrpt/serialization/optional_serialization.h>
#include <mrpt/serialization/stl_serialization.h>
#include <memory>
Include dependency graph for stl_serialize_unittest.cpp:

Go to the source code of this file.

Classes

class  Foo< INTER_SPACE >
 

Functions

 TEST (Serialization, STL_stdvector)
 
 TEST (Serialization, STL_stdmap)
 
 TEST (Serialization, STL_complex_error_type)
 
 TEST (Serialization, optional_STL)
 
CArchiveoperator<< (CArchive &a, const Foo &f)
 
CArchiveoperator>> (CArchive &a, Foo &f)
 
 TEST (Serialization, vector_custom_type)
 
 TEST (Serialization, vector_shared_ptr)
 

Function Documentation

◆ operator<<()

CArchive& operator<< ( CArchive a,
const Foo f 
)

Definition at line 95 of file stl_serialize_unittest.cpp.

References Foo< INTER_SPACE >::m_i.

◆ operator>>()

CArchive& operator>> ( CArchive a,
Foo f 
)

Definition at line 100 of file stl_serialize_unittest.cpp.

References Foo< INTER_SPACE >::m_i.

◆ TEST() [1/6]

TEST ( Serialization  ,
STL_stdvector   
)

Definition at line 20 of file stl_serialize_unittest.cpp.

References mrpt::serialization::archiveFrom(), EXPECT_EQ(), and mrpt::io::CMemoryStream::Seek().

Here is the call graph for this function:

◆ TEST() [2/6]

TEST ( Serialization  ,
STL_stdmap   
)

Definition at line 33 of file stl_serialize_unittest.cpp.

References mrpt::serialization::archiveFrom(), EXPECT_EQ(), and mrpt::io::CMemoryStream::Seek().

Here is the call graph for this function:

◆ TEST() [3/6]

TEST ( Serialization  ,
STL_complex_error_type   
)

Definition at line 49 of file stl_serialize_unittest.cpp.

References mrpt::serialization::archiveFrom(), and mrpt::io::CMemoryStream::Seek().

Here is the call graph for this function:

◆ TEST() [4/6]

TEST ( Serialization  ,
optional_STL   
)

Definition at line 65 of file stl_serialize_unittest.cpp.

References mrpt::serialization::archiveFrom(), EXPECT_EQ(), and mrpt::io::CMemoryStream::Seek().

Here is the call graph for this function:

◆ TEST() [5/6]

TEST ( Serialization  ,
vector_custom_type   
)

Definition at line 106 of file stl_serialize_unittest.cpp.

References mrpt::serialization::archiveFrom(), EXPECT_EQ(), and mrpt::io::CMemoryStream::Seek().

Here is the call graph for this function:

◆ TEST() [6/6]

TEST ( Serialization  ,
vector_shared_ptr   
)

Definition at line 119 of file stl_serialize_unittest.cpp.

References mrpt::serialization::archiveFrom(), EXPECT_EQ(), and mrpt::io::CMemoryStream::Seek().

Here is the call graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020