COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Classes | Macros | Functions
utest-component-iterator.cpp File Reference
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <boost/timer.hpp>
#include "common/Log.hpp"
#include "common/Component.hpp"
#include "common/FindComponents.hpp"
#include "common/Group.hpp"
#include "common/Link.hpp"
#include "common/StringConversion.hpp"

Go to the source code of this file.

Classes

struct  ComponentIterationFixture
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   "Test module for iteration over components"
 

Functions

 BOOST_AUTO_TEST_CASE (test_find_parent)
 
 BOOST_AUTO_TEST_CASE (Iterator)
 Component defines begin() and end(), so BOOST_FOREACH can iterate directly. More...
 
 BOOST_AUTO_TEST_CASE (IteratorConst)
 
 BOOST_AUTO_TEST_CASE (RangeTyped)
 Use a range to get all children of a certain type. More...
 
 BOOST_AUTO_TEST_CASE (RangeFilteredTyped)
 Filtered range with type. More...
 
 BOOST_AUTO_TEST_CASE (GetByName)
 Get a named component by reference or by pointer. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveIterator)
 Recursive iteration over unspecified component types, using the Component interface. More...
 
 BOOST_AUTO_TEST_CASE (ConstRecursiveIterator)
 Recursive iteration over unspecified component types, using the Component interface, const. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveIteratorFiltered)
 Manually construct a filter. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveRange)
 Use a range to get all children. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveRangeTyped)
 Use a range to get all children of a certain type. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveRangeFilteredIterators)
 Filtered range from iterators. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveRangeFiltered)
 Filtered range from parent component. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveRangeFilteredTyped)
 Filtered range with type. More...
 
 BOOST_AUTO_TEST_CASE (RecursiveRangeEmpty)
 There are several ways to check if a range is empty. More...
 
 BOOST_AUTO_TEST_CASE (GetByNameRecursive)
 Get a named component by reference or by pointer. More...
 
 BOOST_AUTO_TEST_CASE (test_find_components)
 
 BOOST_AUTO_TEST_CASE (test_find_components_with_filter)
 
 BOOST_AUTO_TEST_CASE (test_find_components_with_tag)
 
 BOOST_AUTO_TEST_CASE (test_find_components_with_name)
 
 BOOST_AUTO_TEST_CASE (test_find_components_recursively)
 
 BOOST_AUTO_TEST_CASE (test_find_components_recursively_with_filter)
 
 BOOST_AUTO_TEST_CASE (test_find_components_recursively_with_tag)
 
 BOOST_AUTO_TEST_CASE (test_find_components_recursively_with_name)
 
 BOOST_AUTO_TEST_CASE (test_find_component)
 
 BOOST_AUTO_TEST_CASE (test_find_component_with_filter)
 
 BOOST_AUTO_TEST_CASE (test_find_component_with_name)
 
 BOOST_AUTO_TEST_CASE (test_find_component_with_tag)
 
 BOOST_AUTO_TEST_CASE (test_find_component_recursively)
 
 BOOST_AUTO_TEST_CASE (test_find_component_recursively_with_filter)
 
 BOOST_AUTO_TEST_CASE (test_find_component_recursively_with_name)
 
 BOOST_AUTO_TEST_CASE (test_find_component_recursively_with_tag)
 
 BOOST_AUTO_TEST_CASE (speed_find_tag)
 
 BOOST_AUTO_TEST_CASE (speed_find_type)
 
 BOOST_AUTO_TEST_CASE (test_range_to_vector)
 
 BOOST_AUTO_TEST_CASE (test_new_range)
 

Macro Definition Documentation

#define BOOST_TEST_DYN_LINK

Definition at line 7 of file utest-component-iterator.cpp.

#define BOOST_TEST_MODULE   "Test module for iteration over components"

Definition at line 8 of file utest-component-iterator.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( test_find_parent  )

Definition at line 169 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( Iterator  )

Component defines begin() and end(), so BOOST_FOREACH can iterate directly.

Definition at line 198 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( IteratorConst  )

Definition at line 206 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RangeTyped  )

Use a range to get all children of a certain type.

Definition at line 214 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RangeFilteredTyped  )

Filtered range with type.

Definition at line 222 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( GetByName  )

Get a named component by reference or by pointer.

Definition at line 229 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveIterator  )

Recursive iteration over unspecified component types, using the Component interface.

Definition at line 247 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( ConstRecursiveIterator  )

Recursive iteration over unspecified component types, using the Component interface, const.

Definition at line 255 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveIteratorFiltered  )

Manually construct a filter.

Definition at line 280 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveRange  )

Use a range to get all children.

Definition at line 293 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveRangeTyped  )

Use a range to get all children of a certain type.

Definition at line 301 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveRangeFilteredIterators  )

Filtered range from iterators.

Definition at line 309 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveRangeFiltered  )

Filtered range from parent component.

Definition at line 316 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveRangeFilteredTyped  )

Filtered range with type.

Definition at line 323 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( RecursiveRangeEmpty  )

There are several ways to check if a range is empty.

Definition at line 330 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( GetByNameRecursive  )

Get a named component by reference or by pointer.

Definition at line 340 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components  )

Definition at line 351 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components_with_filter  )

Definition at line 376 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components_with_tag  )

Definition at line 401 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components_with_name  )

Definition at line 432 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components_recursively  )

Definition at line 452 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components_recursively_with_filter  )

Definition at line 477 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components_recursively_with_tag  )

Definition at line 503 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_components_recursively_with_name  )

Definition at line 524 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component  )

Definition at line 544 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component_with_filter  )

Definition at line 559 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component_with_name  )

Definition at line 574 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component_with_tag  )

Definition at line 589 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component_recursively  )

Definition at line 604 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component_recursively_with_filter  )

Definition at line 619 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component_recursively_with_name  )

Definition at line 634 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_find_component_recursively_with_tag  )

Definition at line 649 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( speed_find_tag  )

Definition at line 666 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( speed_find_type  )

Definition at line 683 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_range_to_vector  )

Definition at line 700 of file utest-component-iterator.cpp.

BOOST_AUTO_TEST_CASE ( test_new_range  )

Definition at line 723 of file utest-component-iterator.cpp.

Send comments to:
COOLFluiD Web Admin