#include <FlexibleArray.h>
![Inheritance graph](classIpc_1_1Mem_1_1FlexibleArray__inherit__graph.png)
![Collaboration graph](classIpc_1_1Mem_1_1FlexibleArray__coll__graph.png)
Public Member Functions | |
FlexibleArray (const int capacity) | |
Item & | operator[] (const int idx) |
Item * | raw () |
Private Attributes | |
std::byte | start_ |
the first byte of the first array item More... | |
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
◆ FlexibleArray()
|
inlineexplicit |
Definition at line 29 of file FlexibleArray.h.
Member Function Documentation
◆ operator[]()
|
inline |
Definition at line 33 of file FlexibleArray.h.
◆ raw()
|
inline |
Definition at line 35 of file FlexibleArray.h.
Referenced by Ipc::Mem::FlexibleArray< Ipc::QueueReader >::FlexibleArray(), and Ipc::Mem::FlexibleArray< Ipc::QueueReader >::operator[]().
Member Data Documentation
◆ start_
|
private |
Definition at line 38 of file FlexibleArray.h.
Referenced by Ipc::Mem::FlexibleArray< Ipc::QueueReader >::raw().
The documentation for this class was generated from the following file:
- src/ipc/mem/FlexibleArray.h
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products