#include <FlexibleArray.h>


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
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
◆ FlexibleArray()
|
inlineexplicit |
Definition at line 29 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::raw().
Member Function Documentation
◆ operator[]() [1/2]
|
inline |
Definition at line 34 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::items.
◆ operator[]() [2/2]
|
inline |
Definition at line 35 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::items.
◆ raw()
|
inline |
Definition at line 40 of file FlexibleArray.h.
References Ipc::Mem::FlexibleArray< Item >::items.
Referenced by Ipc::Mem::FlexibleArray< Item >::FlexibleArray().
Member Data Documentation
◆ items
|
private |
Definition at line 43 of file FlexibleArray.h.
Referenced by Ipc::Mem::FlexibleArray< Item >::operator[](), and Ipc::Mem::FlexibleArray< Item >::raw().
The documentation for this class was generated from the following file:
- src/ipc/mem/FlexibleArray.h