MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
ChannelReadWriteShared< DerivedContainer > Class Template Reference

Internally used by ChannelReadWriteBase! It contains the information about the channel and slot that can be shared between different ChannelRead/Write objects. More...

#include <fw/ChannelReadWrite.h>

Public Types

typedef ChannelReadWriteTraits
< DerivedContainer >
::ChannelType 
ChannelType
 
typedef ChannelReadWriteTraits
< DerivedContainer >::Lock 
Lock
 
typedef ChannelReadWriteTraits
< DerivedContainer >::SlotType 
Slot
 
typedef ChannelReadWriteTraits
< DerivedContainer >
::ValueType 
ValueType
 
typedef ChannelTypeChannelTypePtr
 

Public Member Functions

 ChannelReadWriteShared (ChannelTypePtr iChannel, Slot *iSlot)
 
 ~ChannelReadWriteShared ()
 

Public Attributes

ChannelTypePtr channel
 pointer to the channel our data/slot belongs to More...
 
Slotslot
 the slot in that channel we are pointing on (this pointer is valid unless the channel's buffer is destructed or promoted!) More...
 
Lock lock
 a shared lock for that data in the channel's buffer More...
 

Detailed Description

template<typename DerivedContainer>
class mira::ChannelReadWriteShared< DerivedContainer >

Internally used by ChannelReadWriteBase! It contains the information about the channel and slot that can be shared between different ChannelRead/Write objects.

In the destructor, this class calls the appropriate finish-method of the concrete ChannelRead/Write container below.

Member Typedef Documentation

typedef ChannelReadWriteTraits<DerivedContainer>::ChannelType ChannelType
typedef ChannelReadWriteTraits<DerivedContainer>::Lock Lock
typedef ChannelReadWriteTraits<DerivedContainer>::SlotType Slot
typedef ChannelReadWriteTraits<DerivedContainer>::ValueType ValueType

Constructor & Destructor Documentation

ChannelReadWriteShared ( ChannelTypePtr  iChannel,
Slot iSlot 
)
inline

Member Data Documentation

ChannelTypePtr channel

pointer to the channel our data/slot belongs to

Slot* slot

the slot in that channel we are pointing on (this pointer is valid unless the channel's buffer is destructed or promoted!)

Lock lock

a shared lock for that data in the channel's buffer


The documentation for this class was generated from the following file: