Vanetza
 
Loading...
Searching...
No Matches
vanetza::geonet::Address Class Reference

Public Member Functions

 Address (const MacAddress &)
 
bool is_manually_configured () const
 
void is_manually_configured (bool flag)
 
StationType station_type () const
 
void station_type (StationType type)
 
BitNumber< unsigned, 10 > country_code () const
 
void country_code (BitNumber< unsigned, 10 > country)
 
const MacAddressmid () const
 
void mid (const MacAddress &mid)
 
bool operator== (const Address &other) const
 
bool operator!= (const Address &other) const
 

Static Public Attributes

static constexpr std::size_t length_bytes = 8
 

Private Attributes

bool m_manually_configured
 
StationType m_station_type
 
BitNumber< unsigned, 10 > m_country_code
 
MacAddress m_mid
 

Detailed Description

Definition at line 16 of file address.hpp.

Constructor & Destructor Documentation

◆ Address() [1/2]

vanetza::geonet::Address::Address ( )

Definition at line 20 of file address.cpp.

◆ Address() [2/2]

vanetza::geonet::Address::Address ( const MacAddress addr)
explicit

Definition at line 27 of file address.cpp.

Member Function Documentation

◆ country_code() [1/2]

BitNumber< unsigned, 10 > vanetza::geonet::Address::country_code ( ) const
inline

Definition at line 27 of file address.hpp.

◆ country_code() [2/2]

void vanetza::geonet::Address::country_code ( BitNumber< unsigned, 10 >  country)
inline

Definition at line 28 of file address.hpp.

◆ is_manually_configured() [1/2]

bool vanetza::geonet::Address::is_manually_configured ( ) const
inline

Definition at line 23 of file address.hpp.

◆ is_manually_configured() [2/2]

void vanetza::geonet::Address::is_manually_configured ( bool  flag)
inline

Definition at line 24 of file address.hpp.

◆ mid() [1/2]

const MacAddress & vanetza::geonet::Address::mid ( ) const
inline

Definition at line 29 of file address.hpp.

◆ mid() [2/2]

void vanetza::geonet::Address::mid ( const MacAddress mid)
inline

Definition at line 30 of file address.hpp.

◆ operator!=()

bool vanetza::geonet::Address::operator!= ( const Address other) const

Definition at line 43 of file address.cpp.

◆ operator==()

bool vanetza::geonet::Address::operator== ( const Address other) const

Definition at line 35 of file address.cpp.

◆ station_type() [1/2]

StationType vanetza::geonet::Address::station_type ( ) const
inline

Definition at line 25 of file address.hpp.

◆ station_type() [2/2]

void vanetza::geonet::Address::station_type ( StationType  type)
inline

Definition at line 26 of file address.hpp.

Member Data Documentation

◆ length_bytes

constexpr std::size_t vanetza::geonet::Address::length_bytes = 8
staticconstexpr

Definition at line 19 of file address.hpp.

◆ m_country_code

BitNumber<unsigned, 10> vanetza::geonet::Address::m_country_code
private

Definition at line 38 of file address.hpp.

◆ m_manually_configured

bool vanetza::geonet::Address::m_manually_configured
private

Definition at line 36 of file address.hpp.

◆ m_mid

MacAddress vanetza::geonet::Address::m_mid
private

Definition at line 39 of file address.hpp.

◆ m_station_type

StationType vanetza::geonet::Address::m_station_type
private

Definition at line 37 of file address.hpp.


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