This class is used to store buffer parameters which are be used to create io buffer objects.
More...
#include <BufferInfo.hpp>
|
using | Ptr = std::shared_ptr< BufferInfo > |
|
using | BufferSize = size_t |
|
|
| BufferInfo (const BufferInfo &arg) |
| Default copy constructor.
|
|
| BufferInfo (BufferInfo &&arg) noexcept |
| Default move constructor.
|
|
BufferInfo & | operator= (const BufferInfo &arg) |
| Default assignment operator.
|
|
BufferInfo & | operator= (BufferInfo &&arg) noexcept |
| Default move-assignment operator.
|
|
| ~BufferInfo (void) |
| Default destructor.
|
|
| BufferInfo (void) |
| Default constructor.
|
|
| BufferInfo (const String &name, BufferSize size=0, BufferType type=BufferType::Data, Endianness endianness=Endianness::None) |
| Constructs an BufferInfo instance. More...
|
|
const String & | GetName (void) const |
| Returns the buffer name. More...
|
|
BufferSize | GetSize (void) const |
| Returns the buffer size. More...
|
|
BufferType | GetType (void) const |
| Returns the buffer kind. More...
|
|
Endianness | GetEndianness (void) const |
| Returns the buffer endianness. More...
|
|
Impl & | GetImpl (void) |
| For internal use only.
|
|
const Impl & | GetImpl (void) const |
|
This class is used to store buffer parameters which are be used to create io buffer objects.
◆ BufferInfo()
Arp::Io::Commons::Data::BufferInfo::BufferInfo |
( |
const String & |
name, |
|
|
BufferSize |
size = 0 , |
|
|
BufferType |
type = BufferType::Data , |
|
|
Endianness |
endianness = Endianness::None |
|
) |
| |
|
explicit |
Constructs an BufferInfo instance.
- Parameters
-
name | Name of the buffer |
size | Size of the buffer |
type | BufferKindKind of the buffer |
endianness | EndiannessEndianness of the buffer data. If the endianness is set to None, the DataManager will use the default endianness of the IO component. |
◆ GetEndianness()
Endianness Arp::Io::Commons::Data::BufferInfo::GetEndianness |
( |
void |
| ) |
const |
Returns the buffer endianness.
- Returns
- The data endianness of the buffer
◆ GetName()
const String & Arp::Io::Commons::Data::BufferInfo::GetName |
( |
void |
| ) |
const |
Returns the buffer name.
- Returns
- The name of the buffer
◆ GetSize()
BufferInfo::BufferSize Arp::Io::Commons::Data::BufferInfo::GetSize |
( |
void |
| ) |
const |
Returns the buffer size.
- Returns
- The size of the buffer
◆ GetType()
BufferType Arp::Io::Commons::Data::BufferInfo::GetType |
( |
void |
| ) |
const |
Returns the buffer kind.
- Returns
- The kind of the buffer
◆ operator==
Compares two buffer infos on equality.
- Parameters
-
lhs | The left operand to compare. |
rhs | The right operand to compare. |
- Returns
true
on equality, otherwise false
.
The documentation for this class was generated from the following files: