SAGA Adaptor CPI v.1.0
saga::adaptors::metric Class Reference

#include <metric.hpp>

Inheritance diagram for saga::adaptors::metric:

List of all members.

Public Types

typedef saga::metric::frequency frequency
typedef
saga::monitorable::cookie_handle 
metric_cookie
typedef std::vector< std::string > strvec_type
 Attribute string vector type.
typedef std::map< std::string,
std::string > 
strmap_type
 Attribute string map type.

Public Member Functions

 metric ()
 metric (saga::object const &o)
 metric (saga::metric const &m)
 ~metric ()
metricoperator= (saga::object const &o)
metricoperator= (saga::metric const &m)
void fire (saga::context ctx=saga::context())
metric_cookie add_callback (saga::callback f)
void remove_callback (metric_cookie cookie)
saga::impl::attribute_interface * get_attr () const
void set_attribute (std::string key, std::string value)
 Brief description starts here.
void set_vector_attribute (std::string key, strvec_type value)
 Brief description starts here.
void remove_attribute (std::string key)
 Brief description starts here.

Protected Member Functions

saga::impl::metric * get_impl (void) const
TR1::shared_ptr
< saga::impl::metric > 
get_impl_sp (void) const
 metric (saga::impl::metric *impl)

Friends

bool operator== (metric const &lhs, metric const &rhs)

Detailed Description

Definition at line 31 of file adaptors/metric.hpp.


Member Typedef Documentation

typedef std::vector<std::string> saga::adaptors::metric::strvec_type

Attribute string vector type.

Reimplemented from saga::detail::attribute< metric >.

Definition at line 72 of file adaptors/metric.hpp.

typedef std::map<std::string, std::string> saga::adaptors::metric::strmap_type

Attribute string map type.

Reimplemented from saga::detail::attribute< metric >.

Definition at line 73 of file adaptors/metric.hpp.


Constructor & Destructor Documentation

saga::metric::metric ( saga::impl::metric *  impl) [explicit, protected]

Definition at line 28 of file metric.cpp.

saga::adaptors::metric::metric ( )

Definition at line 21 of file adaptors/metric.cpp.

saga::adaptors::metric::metric ( saga::object const &  o) [explicit]
saga::adaptors::metric::metric ( saga::metric const &  m)

Definition at line 51 of file adaptors/metric.cpp.

saga::adaptors::metric::~metric ( )

Definition at line 26 of file adaptors/metric.cpp.


Member Function Documentation

saga::impl::metric * saga::adaptors::metric::get_impl ( void  ) const [protected]
TR1::shared_ptr< saga::impl::metric > saga::adaptors::metric::get_impl_sp ( void  ) const [protected]

Definition at line 69 of file adaptors/metric.cpp.

metric & saga::adaptors::metric::operator= ( saga::object const &  o)

Definition at line 40 of file adaptors/metric.cpp.

References saga::BadParameter, saga::object::get_type(), and saga::object::Metric.

Referenced by operator=().

metric & saga::adaptors::metric::operator= ( saga::metric const &  m)

Definition at line 56 of file adaptors/metric.cpp.

References operator=().

void saga::adaptors::metric::fire ( saga::context  ctx = saga::context())

Definition at line 98 of file adaptors/metric.cpp.

References get_impl().

metric::metric_cookie saga::adaptors::metric::add_callback ( saga::callback  f)

Definition at line 88 of file adaptors/metric.cpp.

References get_impl().

void saga::adaptors::metric::remove_callback ( metric_cookie  cookie)

Definition at line 93 of file adaptors/metric.cpp.

References get_impl().

impl::attribute_interface * saga::detail::attribute< Derived >::get_attr ( void  ) const

Definition at line 76 of file adaptors/metric.cpp.

References get_impl().

void saga::adaptors::metric::set_attribute ( std::string  key,
std::string  value 
) [inline]

Brief description starts here.

Definition at line 92 of file adaptors/metric.hpp.

void saga::adaptors::metric::set_vector_attribute ( std::string  key,
strvec_type  value 
) [inline]

Brief description starts here.

Definition at line 102 of file adaptors/metric.hpp.

void saga::adaptors::metric::remove_attribute ( std::string  key) [inline]

Brief description starts here.

Definition at line 112 of file adaptors/metric.hpp.


Friends And Related Function Documentation

bool operator== ( metric const &  lhs,
metric const &  rhs 
) [friend]

Definition at line 82 of file adaptors/metric.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines