#include <FixedSizeByteArray.h> [code]
Inheritance diagram for Utils::FixedSizeByteArray< Size >:

This class is used to store fixed size raw byte data and it guarantees that stored data will always be exactly Size bytes long. You can use it, for example, for identifiers or hashes storage, where their size is fixed and known.
It provides value semantics (objects copying allowed).
It does not throw its own exceptions and lets any thrown exceptions through to the user. In case an exception (e.g. bad_alloc) gets thrown, the FixedSizeByteArray object will be left in an unchanged state. Thus the class meets the strong guarantee of exception safety.
Definition at line 45 of file FixedSizeByteArray.h.
Public Member Functions | |
| FixedSizeByteArray () | |
| Default constructor. | |
| FixedSizeByteArray (const QByteArray &byteArray) | |
| Constructor. | |
| ~FixedSizeByteArray () | |
| Destructor. | |
| bool | operator== (const FixedSizeByteArray &other) const |
| Equality comparison. | |
| bool | operator!= (const FixedSizeByteArray &other) const |
| Inequality comparison. | |
| bool | operator< (const FixedSizeByteArray &other) const |
| Less than comparison. | |
| bool | operator<= (const FixedSizeByteArray &other) const |
| Less than or equal to comparison. | |
| bool | operator> (const FixedSizeByteArray &other) const |
| Greater than comparison. | |
| bool | operator>= (const FixedSizeByteArray &other) const |
| Greater than or equal to comparison. | |
| char | operator[] (uint index) const |
| Subscript operator. | |
| QByteArray | toQByteArray () const |
Static Public Member Functions | |
| static uint | size () |
Private Attributes | |
| QByteArray | array |
| Stored byte array. | |
|
|||||||||
|
Default constructor. Creates and initializes a Null FixedSizeByteArray instance of Size bytes length filled with zero bytes. Definition at line 53 of file FixedSizeByteArray.h. |
|
||||||||||
|
Constructor.
Definition at line 67 of file FixedSizeByteArray.h. |
|
|||||||||
|
Destructor. Destroys a FixedSizeByteArray object. Definition at line 80 of file FixedSizeByteArray.h. |
|
||||||||||
|
Inequality comparison.
Definition at line 101 of file FixedSizeByteArray.h. |
|
||||||||||
|
Less than comparison.
Definition at line 112 of file FixedSizeByteArray.h. |
|
||||||||||
|
Less than or equal to comparison.
Definition at line 123 of file FixedSizeByteArray.h. |
|
||||||||||
|
Equality comparison.
Definition at line 90 of file FixedSizeByteArray.h. |
|
||||||||||
|
Greater than comparison.
Definition at line 134 of file FixedSizeByteArray.h. |
|
||||||||||
|
Greater than or equal to comparison.
Definition at line 145 of file FixedSizeByteArray.h. |
|
||||||||||
|
Subscript operator.
Definition at line 157 of file FixedSizeByteArray.h. |
|
|||||||||
|
Definition at line 179 of file FixedSizeByteArray.h. |
|
|||||||||
|
Definition at line 164 of file FixedSizeByteArray.h. |
|
|||||
|
Stored byte array.
Definition at line 185 of file FixedSizeByteArray.h. |