DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
FrameKey Struct Reference

Stable frame identifier: normalized CAN ID and frame type. More...

#include <definition_key.h>

Public Member Functions

 FrameKey (std::uint32_t id, bool extended)
 Create a key from a normalized identifier and frame type.
 
bool operator== (const FrameKey &other) const
 Compare all logical identity fields.
 

Public Attributes

std::uint32_t canId = 0U
 
bool isExtended = false
 

Detailed Description

Stable frame identifier: normalized CAN ID and frame type.

Definition at line 15 of file definition_key.h.

Constructor & Destructor Documentation

◆ FrameKey()

FrameKey::FrameKey ( std::uint32_t  id,
bool  extended 
)
inline

Create a key from a normalized identifier and frame type.

Definition at line 22 of file definition_key.h.

Member Function Documentation

◆ operator==()

bool FrameKey::operator== ( const FrameKey &  other) const
inline

Compare all logical identity fields.

Definition at line 27 of file definition_key.h.

References canId, and isExtended.

Member Data Documentation

◆ canId

std::uint32_t FrameKey::canId = 0U

Normalized CAN identifier.

Definition at line 16 of file definition_key.h.

Referenced by FrameKeyHasher::operator()(), and operator==().

◆ isExtended

bool FrameKey::isExtended = false

True for extended CAN frames.

Definition at line 17 of file definition_key.h.

Referenced by FrameKeyHasher::operator()(), and operator==().


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