#include <Pointer.h>

Inheritance diagram for Ipc::Mem::Owner< Class >:
Collaboration diagram for Ipc::Mem::Owner< Class >:

Public Member Functions

 ~Owner ()
 
Class * object ()
 Raw access; handy to finalize initiatization, but avoid if possible. More...
 
template<class P1 >
Owner< Class > * New (const char *const id, const P1 &p1)
 
template<class P1 , class P2 >
Owner< Class > * New (const char *const id, const P1 &p1, const P2 &p2)
 
template<class P1 , class P2 , class P3 >
Owner< Class > * New (const char *const id, const P1 &p1, const P2 &p2, const P3 &p3)
 
template<class P1 , class P2 , class P3 , class P4 >
Owner< Class > * New (const char *const id, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4)
 

Static Public Member Functions

static OwnerNew (const char *const id)
 
template<class P1 >
static OwnerNew (const char *const id, const P1 &p1)
 
template<class P1 , class P2 >
static OwnerNew (const char *const id, const P1 &p1, const P2 &p2)
 
template<class P1 , class P2 , class P3 >
static OwnerNew (const char *const id, const P1 &p1, const P2 &p2, const P3 &p3)
 
template<class P1 , class P2 , class P3 , class P4 >
static OwnerNew (const char *const id, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4)
 
static OwnerOld (const char *const id)
 attaches to the existing shared memory segment, becoming its owner More...
 

Private Member Functions

 Owner (const char *const id)
 
 Owner (const char *const id, const off_t sharedSize)
 
 Owner (const Owner &)
 
Owneroperator= (const Owner &)
 

Private Attributes

Segment theSegment
 shared memory segment that holds the object More...
 
Class * theObject
 shared object More...
 

Detailed Description

template<class Class>
class Ipc::Mem::Owner< Class >

allocates/deallocates shared memory; creates and later destroys a Class object using that memory

Definition at line 25 of file Pointer.h.

Constructor & Destructor Documentation

◆ ~Owner()

template<class Class >
Ipc::Mem::Owner< Class >::~Owner

Definition at line 115 of file Pointer.h.

◆ Owner() [1/3]

template<class Class >
Ipc::Mem::Owner< Class >::Owner ( const char *const  id)
explicitprivate

◆ Owner() [2/3]

template<class Class >
Ipc::Mem::Owner< Class >::Owner ( const char *const  id,
const off_t  sharedSize 
)
private

◆ Owner() [3/3]

template<class Class >
Ipc::Mem::Owner< Class >::Owner ( const Owner< Class > &  )
private

Member Function Documentation

◆ New() [1/9]

template<class Class >
Owner< Class > * Ipc::Mem::Owner< Class >::New ( const char *const  id)
static

◆ New() [2/9]

template<class Class >
template<class P1 >
static Owner * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1 
)
static

◆ New() [3/9]

template<class Class >
template<class P1 >
Owner< Class > * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1 
)

◆ New() [4/9]

template<class Class >
template<class P1 , class P2 >
static Owner * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1,
const P2 &  p2 
)
static

◆ New() [5/9]

template<class Class >
template<class P1 , class P2 >
Owner< Class > * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1,
const P2 &  p2 
)

◆ New() [6/9]

template<class Class >
template<class P1 , class P2 , class P3 >
static Owner * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1,
const P2 &  p2,
const P3 &  p3 
)
static

◆ New() [7/9]

template<class Class >
template<class P1 , class P2 , class P3 >
Owner< Class > * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1,
const P2 &  p2,
const P3 &  p3 
)

◆ New() [8/9]

template<class Class >
template<class P1 , class P2 , class P3 , class P4 >
static Owner * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4 
)
static

◆ New() [9/9]

template<class Class >
template<class P1 , class P2 , class P3 , class P4 >
Owner< Class > * Ipc::Mem::Owner< Class >::New ( const char *const  id,
const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4 
)

◆ object()

template<class Class >
Class * Ipc::Mem::Owner< Class >::object ( )
inline

◆ Old()

template<class Class >
Owner< Class > * Ipc::Mem::Owner< Class >::Old ( const char *const  id)
static

Definition at line 123 of file Pointer.h.

References Must.

Referenced by createOwner().

◆ operator=()

template<class Class >
Owner & Ipc::Mem::Owner< Class >::operator= ( const Owner< Class > &  )
private

Member Data Documentation

◆ theObject

template<class Class >
Class* Ipc::Mem::Owner< Class >::theObject
private

Definition at line 54 of file Pointer.h.

Referenced by Ipc::Mem::Owner< Class >::New(), and Ipc::Mem::Owner< Class >::object().

◆ theSegment

template<class Class >
Segment Ipc::Mem::Owner< Class >::theSegment
private

Definition at line 53 of file Pointer.h.

Referenced by Ipc::Mem::Owner< Class >::Owner(), and Ipc::Mem::Owner< Class >::New().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors