dodo::data::memory::shared Class Reference
provides shared data functionality More...
#include <dataMemoryShared.h>
Collaboration diagram for dodo::data::memory::shared:

Classes | |
| struct | __shared__ |
| defines shared data More... | |
Public Member Functions | |
| shared (const int key) | |
| constructor | |
| shared () | |
| constructor | |
| ~shared () | |
| destructor | |
| void | open (const int key) const |
| open or create shared memory object | |
| void | close () const |
| close shared memory object | |
| void * | map (unsigned long size=0) const |
| map shared data | |
| void | unmap () const |
| unmap shared data | |
| void * | data () const |
| unsigned long | size () const |
Static Public Member Functions | |
| static void | remove (int key) |
| remove the shared data from the system | |
Protected Attributes | |
| int | handle |
| shared data descriptor | |
| struct __shared__ | sh |
| shared data | |
| __key__ * | key |
| key for the shared data | |
| bool | autogenerated |
| true if key was autogenerated | |
Detailed Description
provides shared data functionality
- Note:
- if the key was not autogenerated the semaphore is not removed from the system you should call remove to remove it from the system
Definition at line 50 of file dataMemoryShared.h.
Constructor & Destructor Documentation
| dodo::data::memory::shared::shared | ( | const int | key | ) |
| dodo::data::memory::shared::shared | ( | ) |
constructor
| dodo::data::memory::shared::~shared | ( | ) |
destructor
Member Function Documentation
| void* dodo::data::memory::shared::map | ( | unsigned long | size = 0 |
) | const |
| void dodo::data::memory::shared::open | ( | const int | key | ) | const |
| static void dodo::data::memory::shared::remove | ( | int | key | ) | [static] |
| unsigned long dodo::data::memory::shared::size | ( | ) | const |
Member Data Documentation
bool dodo::data::memory::shared::autogenerated [mutable, protected] |
true if key was autogenerated
Definition at line 158 of file dataMemoryShared.h.
int dodo::data::memory::shared::handle [mutable, protected] |
Definition at line 129 of file dataMemoryShared.h.
__key__* dodo::data::memory::shared::key [protected] |
Definition at line 156 of file dataMemoryShared.h.
struct __shared__ dodo::data::memory::shared::sh [read, protected] |
Definition at line 154 of file dataMemoryShared.h.
The documentation for this class was generated from the following file:
- include/libdodo/dataMemoryShared.h
Generated on Sun Nov 8 03:44:48 2009 for libdodo by
1.6.1

