Classes | Typedefs | Functions
signal-ptr.cpp File Reference
#include <dynamic-graph/debug.h>
#include <dynamic-graph/entity.h>
#include <dynamic-graph/factory.h>
#include <dynamic-graph/pool.h>
#include <dynamic-graph/signal-base.h>
#include <dynamic-graph/signal-ptr.h>
#include <dynamic-graph/signal-time-dependent.h>
#include <dynamic-graph/signal.h>
#include <boost/foreach.hpp>
#include <iostream>
#include <string>
#include <boost/test/output_test_stream.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test_suite.hpp>
Include dependency graph for signal-ptr.cpp:

Go to the source code of this file.

Classes

class  DummyClass< T >
 

Typedefs

typedef dynamicgraph::SignalTimeDependent< double, int > sigDouble_t
 
typedef dynamicgraph::SignalTimeDependent< std::string, int > sigString_t
 

Functions

 BOOST_AUTO_TEST_CASE (normal_cst_test)
 
 BOOST_AUTO_TEST_CASE (normal_test)
 
 BOOST_AUTO_TEST_CASE (plug_signal_string)
 
 BOOST_AUTO_TEST_CASE (set_signal_string)
 

Typedef Documentation

◆ sigDouble_t

Definition at line 28 of file signal-ptr.cpp.

◆ sigString_t

Definition at line 29 of file signal-ptr.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( normal_cst_test  )

This create a ExceptionSignal::NOT_INITIALIZED

Testing const getPtr() interface: no plug case

Test needUpdate without plug

Testing getAbsatractPtr() interface: no plug

Testing const getAbstractPtr() interface: no plug case

Definition at line 83 of file signal-ptr.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( normal_test  )

Plugging signal.

Try to plug an incompatible signal. leave

Plug the signal.

Should be NOT_INITIALIZED becase the last plug on sigstr failed.

Test sigPtrAbstract with a normal plug.

Should be NOT_INITIALIZED becase the last plug on sigstr failed.

Test the case where the plug ref is zero.

Definition at line 144 of file signal-ptr.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( plug_signal_string  )

Definition at line 268 of file signal-ptr.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( set_signal_string  )

Definition at line 308 of file signal-ptr.cpp.



dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03