OGLplus  (0.59.0) a C++ wrapper for rendering APIs

Class storing two identifier values representing class/method pair. More...

#include <eagine/message_id.hpp>

Public Member Functions

constexpr message_id () noexcept
 Default constructor. More...
 
constexpr message_id (identifier_t c, identifier_t m) noexcept
 Construction from two identifier values.
 
constexpr message_id (identifier c, identifier m) noexcept
 Construction from two identifier objects.
 
constexpr message_id (std::tuple< identifier, identifier > t) noexcept
 Construction from a tuple of two identifier objects.
 
template<identifier_t ClassId, identifier_t MethodId>
constexpr message_id (const static_message_id< ClassId, MethodId > &) noexcept
 Construction from static_message_id value.
 
constexpr auto class_id () const noexcept -> identifier_t
 Returns the class identifier value.
 
constexpr auto class_ () const noexcept -> identifier
 Returns the class identifier.
 
constexpr auto method_id () const noexcept -> identifier_t
 Returns the method identifier value.
 
constexpr auto method () const noexcept -> identifier
 Returns the method identifier.
 
constexpr auto is_valid () const noexcept
 Checks if the stored identifier values are non-zero.
 
constexpr auto id_tuple () const noexcept -> std::tuple< identifier, identifier >
 Returns the class and method identifiers in a tuple. See class_ See method.
 
constexpr auto has_class (identifier id) const noexcept
 Checks if the class identifier matches the argument. More...
 
constexpr auto has_method (identifier id) const noexcept
 Checks if the method identifier matches the argument. More...
 

Detailed Description

Class storing two identifier values representing class/method pair.

See also
static_message_id
identifier_t
identifier

Constructor & Destructor Documentation

◆ message_id()

constexpr eagine::message_id::message_id ( )
inlineconstexprnoexcept

Default constructor.

Postcondition
!is_valid()

Member Function Documentation

◆ has_class()

constexpr auto eagine::message_id::has_class ( identifier  id) const
inlineconstexprnoexcept

Checks if the class identifier matches the argument.

See also
has_method

◆ has_method()

constexpr auto eagine::message_id::has_method ( identifier  id) const
inlineconstexprnoexcept

Checks if the method identifier matches the argument.

See also
has_class

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).