nlib
nn::nlib::msgpack::MpObjectAsBinary Class Referencefinal

The class to provide access with byte data as an element for MpObject. More...

#include "nn/nlib/msgpack/MpObject.h"

Public Types

typedef nlib_byte_titerator
 A random-access iterator.
 
typedef const nlib_byte_tconst_iterator
 Read-only random-access iterator.
 
typedef std::reverse_iterator< iteratorreverse_iterator
 A reverse iterator.
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 Read-only reverse iterator.
 
typedef nlib_byte_treference
 A reference to an element.
 
typedef const nlib_byte_tconst_reference
 Read-only reference to an element.
 

Public Member Functions

 MpObjectAsBinary (MpObject &obj) noexcept
 
iterator begin () noexcept
 Gets the iterator pointing to the first element.
 
iterator end () noexcept
 Gets the iterator pointing beyond the last element.
 
const_iterator begin () const noexcept
 Gets the read-only iterator pointing to the first element.
 
const_iterator end () const noexcept
 Gets the read-only iterator pointing beyond the last element.
 
reverse_iterator rbegin () noexcept
 Gets the reverse iterator pointing to the last element.
 
reverse_iterator rend () noexcept
 Gets the reverse iterator pointing ahead of the first element.
 
const_reverse_iterator rbegin () const noexcept
 Gets the read-only reverse iterator pointing to the last element.
 
const_reverse_iterator rend () const noexcept
 Gets the read-only reverse iterator pointing ahead of the first element.
 
reference operator[] (size_t n) noexcept
 Gets the nth element. n must be less than the number of stored elements. More...
 
const_reference operator[] (size_t n) const noexcept
 The const decoration version of the above function.
 
uint32_t GetSize () const noexcept
 Returns the number of stored elements.
 

Detailed Description

The class to provide access with byte data as an element for MpObject.

Definition at line 692 of file MpObject.h.

Constructor & Destructor Documentation

◆ MpObjectAsBinary()

nn::nlib::msgpack::MpObjectAsBinary::MpObjectAsBinary ( MpObject obj)
inlineexplicitnoexcept
Parameters
[in]objMpObject to be accessed as binary. obj.IsBinary() must be true.

Definition at line 705 of file MpObject.h.

Member Function Documentation

◆ operator[]()

nn::nlib::msgpack::MpObjectAsBinary::operator[] ( size_t  n)
inlinenoexcept

Gets the nth element. n must be less than the number of stored elements.

Parameters
[in]nThe position of an element.
Returns
Reference to the nth element.

Definition at line 720 of file MpObject.h.


The documentation for this class was generated from the following files: