SAGA Adaptor CPI v.1.0
saga::adaptors::adaptor_data< Adaptor > Class Template Reference

#include <adaptor_data.hpp>

Inheritance diagram for saga::adaptors::adaptor_data< Adaptor >:

List of all members.

Public Types

typedef Adaptor adaptor_type

Public Member Functions

template<typename Cpi >
 adaptor_data (Cpi *cpi_instance)
 ~adaptor_data (void)
Adaptor * operator-> () const

Detailed Description

template<typename Adaptor>
class saga::adaptors::adaptor_data< Adaptor >

Class implementing the scoped_lock pattern for the adaptor_data

Note:
If you want to use shared data which had been registered in the adaptor_data instance in the session, just create an instance of this class at the beginning of the scope you will use the shared data in by specifying its id.

Definition at line 28 of file adaptor_data.hpp.


Member Typedef Documentation

template<typename Adaptor >
typedef Adaptor saga::adaptors::adaptor_data< Adaptor >::adaptor_type

Definition at line 38 of file adaptor_data.hpp.


Constructor & Destructor Documentation

template<typename Adaptor >
template<typename Cpi >
saga::adaptors::adaptor_data< Adaptor >::adaptor_data ( Cpi *  cpi_instance) [inline]

Constructor: Here we lock the appropriate object identified by id

Parameters:
idthe identifier for the object you want to lock.
Note:
The object you want to lock has to be registered in the current session before.

Definition at line 48 of file adaptor_data.hpp.

template<typename Adaptor >
saga::adaptors::adaptor_data< Adaptor >::~adaptor_data ( void  ) [inline]

Destructor: unlocks the object.

Definition at line 58 of file adaptor_data.hpp.


Member Function Documentation

template<typename Adaptor >
Adaptor* saga::adaptors::adaptor_data< Adaptor >::operator-> ( ) const [inline]

Definition at line 65 of file adaptor_data.hpp.


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