|
MetroCollect
2.3.4
|
Class managing a pointer to a dynamically sized type. More...
#include <SourceEthtool.h>
Public Types | |
| using | ValueType = T |
| The type of the object managed. More... | |
| using | PaddingType = P |
| Elementary memory unit. More... | |
Public Member Functions | |
| EthtoolPointer () noexcept | |
| Construct a new, empty Ethtool Pointer object. More... | |
| EthtoolPointer (uint32_t cmd, size_t padding=0) noexcept | |
| Construct a new Ethtool Pointer object. More... | |
| template<typename Q > | |
| EthtoolPointer (EthtoolPointer< T, Q > &&other) noexcept | |
| Move constructor. More... | |
| EthtoolPointer (EthtoolPointer &)=delete | |
| Deleted copy constructor. More... | |
| template<typename Q > | |
| EthtoolPointer & | operator= (EthtoolPointer< T, Q > &&other) noexcept |
| Move assignment operator. More... | |
| EthtoolPointer & | operator= (EthtoolPointer &)=delete |
| Deleted copy assignment operator. More... | |
| ~EthtoolPointer () | |
| Destroy the Ethtool Pointer object. More... | |
| T & | operator* () |
| Dereferences pointer to the managed object. More... | |
| const T & | operator* () const |
| Dereferences pointer to the managed object. More... | |
| T * | operator-> () noexcept |
| Dereferences pointer to the managed object. More... | |
| const T * | operator-> () const noexcept |
| Dereferences pointer to the managed object. More... | |
| size_t | paddingSize () const noexcept |
| Padding size appended after the object. More... | |
| size_t | totalSizeInBytes () const noexcept |
| Total size of the managed object. More... | |
| caddr_t | raw () const noexcept |
| Returns the raw managed pointer with Ethtool-specific type. More... | |
Protected Attributes | |
| size_t | paddingSize_ |
| Size of added dynamic padding, in multiples of type P size. More... | |
| T * | pointer_ = nullptr |
| Managed pointer. More... | |
Class managing a pointer to a dynamically sized type.
| T | The type of the object managed |
| P | Elementary memory unit, defaults to char (1 byte) |
Definition at line 57 of file SourceEthtool.h.
| using MetroCollect::MetricsSource::SourceEthtool::EthtoolPointer< T, P >::PaddingType = P |
Elementary memory unit.
Definition at line 60 of file SourceEthtool.h.
| using MetroCollect::MetricsSource::SourceEthtool::EthtoolPointer< T, P >::ValueType = T |
The type of the object managed.
Definition at line 59 of file SourceEthtool.h.
|
inlinenoexcept |
Construct a new, empty Ethtool Pointer object.
Definition at line 70 of file SourceEthtool.h.
|
inlinenoexcept |
Construct a new Ethtool Pointer object.
| cmd | Ethtool cmd value |
| padding | Padding size to append after the object |
Definition at line 78 of file SourceEthtool.h.
|
inlinenoexcept |
Move constructor.
| Q | other elementary memory unit |
| other | EthtoolPointer to move |
Definition at line 91 of file SourceEthtool.h.
|
delete |
Deleted copy constructor.
|
inline |
Destroy the Ethtool Pointer object.
Definition at line 125 of file SourceEthtool.h.
|
inline |
Dereferences pointer to the managed object.
Definition at line 135 of file SourceEthtool.h.
|
inline |
Dereferences pointer to the managed object.
Definition at line 144 of file SourceEthtool.h.
|
inlinenoexcept |
Dereferences pointer to the managed object.
Definition at line 153 of file SourceEthtool.h.
|
inlinenoexcept |
Dereferences pointer to the managed object.
Definition at line 162 of file SourceEthtool.h.
|
inlinenoexcept |
Move assignment operator.
| Q | other elementary memory unit |
| other | Ethtool Pointer to move |
Definition at line 108 of file SourceEthtool.h.
|
delete |
Deleted copy assignment operator.
|
inlinenoexcept |
Padding size appended after the object.
Definition at line 172 of file SourceEthtool.h.
|
inlinenoexcept |
Returns the raw managed pointer with Ethtool-specific type.
Definition at line 190 of file SourceEthtool.h.

|
inlinenoexcept |
|
protected |
Size of added dynamic padding, in multiples of type P size.
Definition at line 63 of file SourceEthtool.h.
|
protected |
Managed pointer.
Definition at line 64 of file SourceEthtool.h.