Classes | Macros | Enumerations | Functions
test/serialization.cpp File Reference
#include <fstream>
#include <boost/test/included/unit_test.hpp>
#include "coal/fwd.hh"
#include "coal/collision.h"
#include "coal/contact_patch.h"
#include "coal/distance.h"
#include "coal/BV/OBBRSS.h"
#include "coal/BVH/BVH_model.h"
#include "coal/serialization/collision_data.h"
#include "coal/serialization/contact_patch.h"
#include "coal/serialization/AABB.h"
#include "coal/serialization/BVH_model.h"
#include "coal/serialization/hfield.h"
#include "coal/serialization/transform.h"
#include "coal/serialization/geometric_shapes.h"
#include "coal/serialization/convex.h"
#include "coal/serialization/archive.h"
#include "coal/serialization/memory.h"
#include "utility.h"
#include "fcl_resources/config.h"
#include <boost/archive/tmpdir.hpp>
#include <boost/filesystem.hpp>
Include dependency graph for test/serialization.cpp:

Go to the source code of this file.

Classes

struct  test_pointer_serialization_impl< T, is_base >
 
struct  test_pointer_serialization_impl< T, true >
 

Macros

#define BOOST_TEST_MODULE   COAL_SERIALIZATION
 

Enumerations

enum  SerializationMode { TXT = 1, XML = 2, BIN = 4, STREAM = 8 }
 

Functions

 BOOST_AUTO_TEST_CASE (test_aabb)
 
 BOOST_AUTO_TEST_CASE (test_BVHModel)
 
 BOOST_AUTO_TEST_CASE (test_collision_data)
 
 BOOST_AUTO_TEST_CASE (test_HeightField)
 
 BOOST_AUTO_TEST_CASE (test_memory_footprint)
 
 BOOST_AUTO_TEST_CASE (test_shapes)
 
 BOOST_AUTO_TEST_CASE (test_transform)
 
template<typename T >
bool check (const T &value, const T &other)
 
template<typename T >
bool check_ptr (const T *value, const T *other)
 
template<typename T >
void checkEqualStdVector (const std::vector< T > &v1, const std::vector< T > &v2)
 
template<typename T >
void test_pointer_serialization (const T &value, T &other_value, const int mode=TXT|XML|BIN|STREAM)
 
template<typename T >
void test_serialization (const T &value, const int mode=TXT|XML|BIN|STREAM)
 
template<typename T >
void test_serialization (const T &value, T &other_value, const int mode=TXT|XML|BIN|STREAM)
 
template<typename T >
void test_serialization (const T *value, T &other_value, const int mode=TXT|XML|BIN|STREAM)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   COAL_SERIALIZATION

Definition at line 35 of file test/serialization.cpp.

Enumeration Type Documentation

◆ SerializationMode

Enumerator
TXT 
XML 
BIN 
STREAM 

Definition at line 86 of file test/serialization.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( test_aabb  )

Definition at line 252 of file test/serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( test_BVHModel  )

Definition at line 328 of file test/serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( test_collision_data  )

Definition at line 257 of file test/serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( test_HeightField  )

Definition at line 419 of file test/serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( test_memory_footprint  )

Definition at line 573 of file test/serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( test_shapes  )

Definition at line 447 of file test/serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( test_transform  )

Definition at line 438 of file test/serialization.cpp.

◆ check()

template<typename T >
bool check ( const T &  value,
const T &  other 
)

Definition at line 77 of file test/serialization.cpp.

◆ check_ptr()

template<typename T >
bool check_ptr ( const T *  value,
const T *  other 
)

Definition at line 82 of file test/serialization.cpp.

◆ checkEqualStdVector()

template<typename T >
void checkEqualStdVector ( const std::vector< T > &  v1,
const std::vector< T > &  v2 
)

Definition at line 319 of file test/serialization.cpp.

◆ test_pointer_serialization()

template<typename T >
void test_pointer_serialization ( const T &  value,
T &  other_value,
const int  mode = TXT | XML | BIN | STREAM 
)

Definition at line 140 of file test/serialization.cpp.

◆ test_serialization() [1/3]

template<typename T >
void test_serialization ( const T &  value,
const int  mode = TXT | XML | BIN | STREAM 
)

Definition at line 246 of file test/serialization.cpp.

◆ test_serialization() [2/3]

template<typename T >
void test_serialization ( const T &  value,
T &  other_value,
const int  mode = TXT | XML | BIN | STREAM 
)

Definition at line 146 of file test/serialization.cpp.

◆ test_serialization() [3/3]

template<typename T >
void test_serialization ( const T *  value,
T &  other_value,
const int  mode = TXT | XML | BIN | STREAM 
)

Definition at line 89 of file test/serialization.cpp.



hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:59