Horizon Official Technical Documentation
|
|
#include "Core/Structures/LinkedList/ReferenceList/Reference.hpp"
#include "Core/Structures/LinkedList/ReferenceList/RefManager.hpp"
#include "Core/Structures/TypeList.hpp"
#include <boost/test/unit_test.hpp>
#include <cstring>
#include <iostream>
#include <cassert>
Classes | |
class | TestRefManager< OBJECT > |
class | TestReference< OBJECT > |
class | ReferenceObject< T > |
class | GenericTestObject |
class | A |
class | B |
class | C |
struct | ContainerMapList< OBJECT > |
struct | ContainerMapList< TypeNull > |
struct | ContainerMapList< TypeList< HEAD, TAIL > > |
class | TypeRefContainer< OBJECT_TYPES > |
class | TypeContainerVisitor< VISITOR, TYPE_CONTAINER > |
class | CompareGenericTestObjectID |
struct | GenericTestObjectSearcher< PREDICATE > |
Namespaces | |
namespace | TypeListIterator |
Macros | |
#define | BOOST_TEST_MODULE "ReferenceTypeListTest" |
#define | MAX_A_TYPES 3 |
#define | MAX_B_TYPES 6 |
#define | MAX_C_TYPES 9 |
#define | ID_CHECK 42 |
Functions | |
template<class SPECIFIC_TYPE > | |
SPECIFIC_TYPE * | TypeListIterator::Insert (ContainerMapList< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *obj) |
template<class SPECIFIC_TYPE > | |
SPECIFIC_TYPE * | TypeListIterator::Insert (ContainerMapList< TypeNull > &, SPECIFIC_TYPE *) |
template<class SPECIFIC_TYPE , class T > | |
SPECIFIC_TYPE * | TypeListIterator::Insert (ContainerMapList< T > &, SPECIFIC_TYPE *) |
template<class SPECIFIC_TYPE , class HEAD , class TAIL > | |
SPECIFIC_TYPE * | TypeListIterator::Insert (ContainerMapList< TypeList< HEAD, TAIL > > &elements, SPECIFIC_TYPE *obj) |
template<class SPECIFIC_TYPE > | |
size_t | TypeListIterator::count (ContainerMapList< SPECIFIC_TYPE > const &elements, SPECIFIC_TYPE *) |
template<class SPECIFIC_TYPE > | |
size_t | TypeListIterator::count (ContainerMapList< TypeNull > const &, SPECIFIC_TYPE *) |
template<class SPECIFIC_TYPE , class T > | |
size_t | TypeListIterator::count (ContainerMapList< T > const &, SPECIFIC_TYPE *) |
template<class SPECIFIC_TYPE , class T > | |
size_t | TypeListIterator::count (ContainerMapList< TypeList< SPECIFIC_TYPE, T > > const &elements, SPECIFIC_TYPE *fake) |
template<class SPECIFIC_TYPE , class H , class T > | |
size_t | TypeListIterator::count (ContainerMapList< TypeList< H, T > > const &elements, SPECIFIC_TYPE *fake) |
template<class TypeNull > | |
size_t | TypeListIterator::count_all (ContainerMapList< TypeNull > const &elements) |
template<class H , class T > | |
size_t | TypeListIterator::count_all (ContainerMapList< TypeList< H, T > > const &elements) |
template<class VISITOR > | |
void | VisitorHelper (VISITOR &, ContainerMapList< TypeNull > &) |
template<class VISITOR , class T > | |
void | VisitorHelper (VISITOR &v, ContainerMapList< T > &c) |
template<class VISITOR , class H , class T > | |
void | VisitorHelper (VISITOR &v, ContainerMapList< TypeList< H, T > > &c) |
template<class VISITOR , class OBJECT_TYPES > | |
void | VisitorHelper (VISITOR &v, TypeRefContainer< OBJECT_TYPES > &c) |
typedef | TYPELIST_3 (A, B, C) MyTypes |
void | print_count (TypeRefContainer< MyTypes > &refContainer) |
BOOST_AUTO_TEST_CASE (ReferenceTypeListTest) | |
#define BOOST_TEST_MODULE "ReferenceTypeListTest" |
#define ID_CHECK 42 |
#define MAX_A_TYPES 3 |
#define MAX_B_TYPES 6 |
#define MAX_C_TYPES 9 |
BOOST_AUTO_TEST_CASE | ( | ReferenceTypeListTest | ) |
Searcher & Checker tests.
References TypeRefContainer< OBJECT_TYPES >::count(), GenericTestObject::get_id(), ID_CHECK, MAX_A_TYPES, MAX_B_TYPES, MAX_C_TYPES, print_count(), ReferenceObject< T >::remove_reference(), and TypeContainerVisitor< VISITOR, TYPE_CONTAINER >::Visit().
void print_count | ( | TypeRefContainer< MyTypes > & | refContainer | ) |
References TypeRefContainer< OBJECT_TYPES >::count(), and TypeRefContainer< OBJECT_TYPES >::count_all().
Referenced by BOOST_AUTO_TEST_CASE().
void VisitorHelper | ( | VISITOR & | , |
ContainerMapList< TypeNull > & | |||
) |
Referenced by TypeContainerVisitor< VISITOR, TYPE_CONTAINER >::Visit(), and VisitorHelper().
void VisitorHelper | ( | VISITOR & | v, |
ContainerMapList< T > & | c | ||
) |
References ContainerMapList< OBJECT >::_element.
void VisitorHelper | ( | VISITOR & | v, |
ContainerMapList< TypeList< H, T > > & | c | ||
) |
References VisitorHelper().
void VisitorHelper | ( | VISITOR & | v, |
TypeRefContainer< OBJECT_TYPES > & | c | ||
) |
References TypeRefContainer< OBJECT_TYPES >::get_elements(), and VisitorHelper().