|
SAGA C++ API 1.6
|
The SAGA monitorable interface. More...
#include <monitorable.hpp>
Inheritance diagram for saga::detail::monitorable< Derived >:Public Types | |
| typedef saga::monitorable::cookie_handle | cookie_handle |
| A cookie_handle is a unique identifier for a callback. | |
Public Member Functions | |
| std::vector< saga::metric > | list_metrics (void) const |
| Lists all metrics assiciated with this object instance. | |
| saga::metric | get_metric (std::string name) const |
| Returns a metric associated with this object instance. | |
| cookie_handle | add_callback (std::string name, saga::callback cb) |
| Adds a callback to this object instance. | |
| void | remove_callback (std::string name, cookie_handle cookie) |
| Removes a callback from this object instance. | |
The SAGA monitorable interface.
TODO .
Definition at line 52 of file detail/monitorable.hpp.
| typedef saga::monitorable::cookie_handle saga::detail::monitorable< Derived >::cookie_handle |
A cookie_handle is a unique identifier for a callback.
TODO .
Definition at line 58 of file detail/monitorable.hpp.
| std::vector< saga::metric > saga::detail::monitorable< Derived >::list_metrics | ( | void | ) | const [inline] |
Lists all metrics assiciated with this object instance.
TODO .
Definition at line 46 of file monitorable_impl.hpp.
References saga::IncorrectState.
| saga::metric saga::detail::monitorable< Derived >::get_metric | ( | std::string | name | ) | const [inline] |
Returns a metric associated with this object instance.
| name | The metric's name |
TODO .
Definition at line 57 of file monitorable_impl.hpp.
References saga::IncorrectState.
| saga::monitorable::cookie_handle saga::detail::monitorable< Derived >::add_callback | ( | std::string | name, |
| saga::callback | cb | ||
| ) | [inline] |
Adds a callback to this object instance.
| name | The new callback's name |
| cb | The callback object |
TODO .
Definition at line 69 of file monitorable_impl.hpp.
References saga::IncorrectState.
| void saga::detail::monitorable< Derived >::remove_callback | ( | std::string | name, |
| cookie_handle | cookie | ||
| ) | [inline] |
Removes a callback from this object instance.
| name | The callback's name |
| cookie | The callback's unique handle |
TODO .
Definition at line 80 of file monitorable_impl.hpp.
References saga::IncorrectState.