libcamera v0.2.0+3-70b69666-nvm
Supporting cameras in Linux since 2019
|
Helper class for shared memory allocations. More...
#include <shared_mem_object.h>
Public Member Functions | |
template<class... Args> | |
SharedMemObject (const std::string &name, Args &&...args) | |
Contstructor for the SharedMemObject. | |
SharedMemObject (SharedMemObject< T > &&rhs) | |
Move constructor for SharedMemObject. | |
SharedMemObject< T > & | operator= (SharedMemObject< T > &&rhs) |
Operator= for SharedMemObject. | |
T * | operator-> () |
Operator-> for SharedMemObject. | |
const T * | operator-> () const |
Operator-> for SharedMemObject. | |
T & | operator* () |
Operator* for SharedMemObject. | |
const T & | operator* () const |
Operator* for SharedMemObject. | |
const SharedFD & | fd () const |
Gets the file descriptor for the underlaying storage file. | |
operator bool () const | |
Operator bool() for SharedMemObject. | |
Static Public Attributes | |
static constexpr std::size_t | SIZE = sizeof(T) |
The size of the object that is going to be stored here. | |
Helper class for shared memory allocations.
Takes a template T which is used to indicate the data type of the object stored.
|
inline |
Contstructor for the SharedMemObject.
[in] | name | The requested name. |
[in] | args | Any additional args. |
|
inline |
Move constructor for SharedMemObject.
[in] | rhs | The object to move. |
|
inline |
Gets the file descriptor for the underlaying storage file.
|
inlineexplicit |
Operator bool() for SharedMemObject.
|
inline |
Operator* for SharedMemObject.
|
inline |
Operator* for SharedMemObject.
|
inline |
Operator-> for SharedMemObject.
|
inline |
Operator-> for SharedMemObject.
|
inline |
Operator= for SharedMemObject.
[in] | rhs | The SharedMemObject object to take the data from. |