Class to access a named mapped segment published from another process.
More...
#include <mapped.h>
Inherits MappedMemory.
|
|
void | copy (unsigned member, T &buffer) |
| |
| unsigned | count (void) const |
| | Get count of typed member objects held in this map. More...
|
| |
|
volatile const T * | get (unsigned member) |
| |
| | mapped_view (const char *name) |
| | Map existing named memory segment. More...
|
| |
| volatile const T * | operator() (unsigned member) |
| | Access typed member object in the mapped segment. More...
|
| |
| volatile const T & | operator[] (unsigned member) |
| | Reference typed member object in the mapped segment. More...
|
| |
template<class T>
class ucommon::mapped_view< T >
Class to access a named mapped segment published from another process.
This offers a simple typed vector interface to access the shared memory segment in read-only mode.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 469 of file mapped.h.
◆ mapped_view()
Map existing named memory segment.
The size of the map is derived from the existing map alone.
- Parameters
-
| name | of memory segment to map. |
Definition at line 480 of file mapped.h.
◆ count()
Get count of typed member objects held in this map.
- Returns
- count of typed member objects.
Definition at line 509 of file mapped.h.
◆ operator()()
Access typed member object in the mapped segment.
- Parameters
-
- Returns
- typed object pointer.
Definition at line 488 of file mapped.h.
◆ operator[]()
Reference typed member object in the mapped segment.
- Parameters
-
- Returns
- typed object reference.
Definition at line 496 of file mapped.h.
The documentation for this class was generated from the following file: