cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
Loading...
Searching...
No Matches
msgpack_light::const_extension_ref Class Reference

Class to access constant extension value. More...

#include <msgpack_light/details/extension_ref.h>

Collaboration diagram for msgpack_light::const_extension_ref:

Public Member Functions

 const_extension_ref (const details::extension_data &data)
 Constructor.
binary_view data () const noexcept
 Get the data of the value.
std::int8_t type () const
 Get the type.

Private Attributes

const details::extension_datadata_
 Data.

Detailed Description

Class to access constant extension value.

Note
Instances of this class can be created from msgpack_light::object, msgpack_light::const_object_ref, msgpack_light::mutable_object_ref classes.
Warning
This class only holds pointers to data in msgpack_light::object class, do not call functions in this class without msgpack_light::object instances holding the data.

Definition at line 40 of file extension_ref.h.

Constructor & Destructor Documentation

◆ const_extension_ref()

msgpack_light::const_extension_ref::const_extension_ref ( const details::extension_data & data)
inlineexplicit

Constructor.

Parameters
[in]dataData.

Definition at line 47 of file extension_ref.h.

Member Function Documentation

◆ data()

binary_view msgpack_light::const_extension_ref::data ( ) const
inlinenodiscardnoexcept

Get the data of the value.

Returns
Data.

Definition at line 62 of file extension_ref.h.

◆ type()

std::int8_t msgpack_light::const_extension_ref::type ( ) const
inlinenodiscard

Get the type.

Returns
Type.

Definition at line 55 of file extension_ref.h.

Member Data Documentation

◆ data_

const details::extension_data* msgpack_light::const_extension_ref::data_
private

Data.

Definition at line 68 of file extension_ref.h.


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