KItinerary::KnowledgeDb::UnalignedNumber

Search for usage in LXR

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 >

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
Nthe 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>
KItinerary::KnowledgeDb::UnalignedNumber< N >::UnalignedNumber ( uint32_t num)
inlineexplicitconstexpr

Definition at line 62 of file knowledgedb.h.

Member Function Documentation

◆ operator uint32_t()

template<int N>
KItinerary::KnowledgeDb::UnalignedNumber< N >::operator uint32_t ( ) const
inlineconstexpr

Definition at line 100 of file knowledgedb.h.

◆ operator!=()

template<int N>
bool KItinerary::KnowledgeDb::UnalignedNumber< N >::operator!= ( UnalignedNumber< N > other) const
inlineconstexpr

Definition at line 74 of file knowledgedb.h.

◆ operator<()

template<int N>
bool KItinerary::KnowledgeDb::UnalignedNumber< N >::operator< ( UnalignedNumber< N > other) const
inlineconstexpr

Definition at line 81 of file knowledgedb.h.

◆ operator=()

template<int N>
UnalignedNumber< N > & KItinerary::KnowledgeDb::UnalignedNumber< N >::operator= ( uint32_t num)
inlineconstexpr

Definition at line 89 of file knowledgedb.h.

◆ operator==()

template<int N>
bool KItinerary::KnowledgeDb::UnalignedNumber< N >::operator== ( UnalignedNumber< N > other) const
inlineconstexpr

Definition at line 67 of file knowledgedb.h.

◆ operator|=()

template<int N>
UnalignedNumber< N > & KItinerary::KnowledgeDb::UnalignedNumber< N >::operator|= ( uint32_t num)
inlineconstexpr

Definition at line 94 of file knowledgedb.h.

◆ setValue()

template<int N>
void KItinerary::KnowledgeDb::UnalignedNumber< N >::setValue ( uint32_t num)
inlineconstexprprotected

Definition at line 111 of file knowledgedb.h.

◆ value()

template<int N>
uint32_t KItinerary::KnowledgeDb::UnalignedNumber< N >::value ( ) const
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 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.