Vanetza
 
Loading...
Searching...
No Matches
vanetza::security::v2::IntX Class Reference

IntX specified in TS 103 097 v1.2.1, section 4.2.1. More...

#include <int_x.hpp>

Inheritance diagram for vanetza::security::v2::IntX:

Public Types

using integer_type = std::uintmax_t
 

Public Member Functions

constexpr IntX (integer_type x)
 
void set (integer_type x)
 
constexpr integer_type get () const
 
constexpr bool operator== (const IntX &other) const
 
constexpr bool operator== (integer_type other) const
 
ByteBuffer encode () const
 

Static Public Member Functions

static boost::optional< IntXdecode (const ByteBuffer &)
 

Private Attributes

integer_type m_value
 

Detailed Description

IntX specified in TS 103 097 v1.2.1, section 4.2.1.

Definition at line 18 of file int_x.hpp.

Member Typedef Documentation

◆ integer_type

using vanetza::security::v2::IntX::integer_type = std::uintmax_t

Definition at line 23 of file int_x.hpp.

Constructor & Destructor Documentation

◆ IntX() [1/2]

constexpr vanetza::security::v2::IntX::IntX ( )
inlineconstexpr

Definition at line 24 of file int_x.hpp.

◆ IntX() [2/2]

constexpr vanetza::security::v2::IntX::IntX ( integer_type  x)
inlineexplicitconstexpr

Definition at line 25 of file int_x.hpp.

Member Function Documentation

◆ decode()

boost::optional< IntX > vanetza::security::v2::IntX::decode ( const ByteBuffer &  buffer)
static

Definition at line 21 of file int_x.cpp.

◆ encode()

ByteBuffer vanetza::security::v2::IntX::encode ( ) const

Definition at line 16 of file int_x.cpp.

◆ get()

constexpr integer_type vanetza::security::v2::IntX::get ( ) const
inlineconstexpr

Definition at line 28 of file int_x.hpp.

◆ operator==() [1/2]

constexpr bool vanetza::security::v2::IntX::operator== ( const IntX other) const
inlineconstexpr

Definition at line 30 of file int_x.hpp.

◆ operator==() [2/2]

constexpr bool vanetza::security::v2::IntX::operator== ( integer_type  other) const
inlineconstexpr

Definition at line 35 of file int_x.hpp.

◆ set()

void vanetza::security::v2::IntX::set ( integer_type  x)

Definition at line 11 of file int_x.cpp.

Member Data Documentation

◆ m_value

integer_type vanetza::security::v2::IntX::m_value
private

Definition at line 44 of file int_x.hpp.


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