KItinerary::KnowledgeDb::UnalignedNumber
KItinerary::KnowledgeDb::UnalignedNumber< N > Class Template Reference
#include <knowledgedb.h>
Inheritance diagram for KItinerary::KnowledgeDb::UnalignedNumber< N >:
Public Member Functions | |
constexpr | UnalignedNumber (uint32_t num) |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (UnalignedNumber< N > other) const |
constexpr bool | operator< (UnalignedNumber< N > other) const |
constexpr UnalignedNumber< N > & | operator= (uint32_t num) |
constexpr bool | operator== (UnalignedNumber< N > other) const |
constexpr UnalignedNumber< N > & | operator|= (uint32_t num) |
constexpr uint32_t | value () const |
Protected Member Functions | |
constexpr void | setValue (uint32_t num) |
Detailed Description
template<int N>
class KItinerary::KnowledgeDb::UnalignedNumber< N >
class KItinerary::KnowledgeDb::UnalignedNumber< N >
Unalinged storage of a numerical value.
This is optimized for a compact memory layout, at the expense of slightly more expensive comparison operations.
- Template Parameters
-
N the size in byte, at this point limited to at most 4
Definition at line 59 of file knowledgedb.h.
Constructor & Destructor Documentation
◆ UnalignedNumber()
template<int N>
|
inlineexplicitconstexpr |
Definition at line 62 of file knowledgedb.h.
Member Function Documentation
◆ operator uint32_t()
template<int N>
|
inlineconstexpr |
Definition at line 100 of file knowledgedb.h.
◆ operator!=()
template<int N>
|
inlineconstexpr |
Definition at line 74 of file knowledgedb.h.
◆ operator<()
template<int N>
|
inlineconstexpr |
Definition at line 81 of file knowledgedb.h.
◆ operator=()
template<int N>
|
inlineconstexpr |
Definition at line 89 of file knowledgedb.h.
◆ operator==()
template<int N>
|
inlineconstexpr |
Definition at line 67 of file knowledgedb.h.
◆ operator|=()
template<int N>
|
inlineconstexpr |
Definition at line 94 of file knowledgedb.h.
◆ setValue()
template<int N>
|
inlineconstexprprotected |
Definition at line 111 of file knowledgedb.h.
◆ value()
template<int N>
|
inlineconstexpr |
Definition at line 105 of file knowledgedb.h.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.