Ipc::Mem::FlexibleArray< Item > Class Template Reference

#include <FlexibleArray.h>

Inheritance diagram for Ipc::Mem::FlexibleArray< Item >:
Collaboration diagram for Ipc::Mem::FlexibleArray< Item >:

Public Member Functions

 FlexibleArray (const int capacity)
 
Item & operator[] (const int idx)
 
const Item & operator[] (const int idx) const
 
Item * raw ()
 

Private Attributes

Item items [1]
 

Detailed Description

template<class Item>
class Ipc::Mem::FlexibleArray< Item >

A "flexible array" of Items inside some shared memory space. A portable equivalent of a "Item items[];" data member. Some compilers such as Clang can only handle flexible arrays of PODs, and the current C++ standard does not allow flexible arrays at all.

Definition at line 26 of file FlexibleArray.h.

Constructor & Destructor Documentation

template<class Item>
Ipc::Mem::FlexibleArray< Item >::FlexibleArray ( const int  capacity)
inlineexplicit

Definition at line 29 of file FlexibleArray.h.

Member Function Documentation

template<class Item>
Item& Ipc::Mem::FlexibleArray< Item >::operator[] ( const int  idx)
inline

Definition at line 34 of file FlexibleArray.h.

template<class Item>
const Item& Ipc::Mem::FlexibleArray< Item >::operator[] ( const int  idx) const
inline

Definition at line 35 of file FlexibleArray.h.

template<class Item>
Item* Ipc::Mem::FlexibleArray< Item >::raw ( )
inline

Member Data Documentation

template<class Item>
Item Ipc::Mem::FlexibleArray< Item >::items[1]
private

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors