KItinerary::KnowledgeDb::AlphaId

Search for usage in LXR

KItinerary::KnowledgeDb::AlphaId< T, N > Class Template Reference

#include <alphaid.h>

Inheritance diagram for KItinerary::KnowledgeDb::AlphaId< T, N >:

Public Member Functions

constexpr AlphaId (const char s[N])
 
 AlphaId (QStringView s)
 
constexpr bool isValid () const
 
constexpr bool operator!= (AlphaId< T, N > other) const
 
constexpr bool operator< (AlphaId< T, N > rhs) const
 
constexpr bool operator== (AlphaId< T, N > other) const
 
QString toString () const
 
constexpr T value () const
 

Detailed Description

template<typename T, int N>
class KItinerary::KnowledgeDb::AlphaId< T, N >

Compact storage for fixed-size identifiers consisting out of uppercase latin letters, such as IATA airport codes or ISO 3166 country codes.

Definition at line 34 of file alphaid.h.

Constructor & Destructor Documentation

template<typename T, int N>
constexpr KItinerary::KnowledgeDb::AlphaId< T, N >::AlphaId ( const char  s[N])
inlineexplicit

Create identifier from a literal.

Definition at line 39 of file alphaid.h.

template<typename T, int N>
KItinerary::KnowledgeDb::AlphaId< T, N >::AlphaId ( QStringView  s)
inlineexplicit

Create identifier from a QString.

Definition at line 50 of file alphaid.h.

Member Function Documentation

template<typename T, int N>
constexpr bool KItinerary::KnowledgeDb::AlphaId< T, N >::isValid ( ) const
inline

Returns true if this is a valid identifier.

Definition at line 57 of file alphaid.h.

template<typename T, int N>
QString KItinerary::KnowledgeDb::AlphaId< T, N >::toString ( ) const
inline

Returns a string representation of this identifier.

Definition at line 76 of file alphaid.h.

template<typename T, int N>
constexpr T KItinerary::KnowledgeDb::AlphaId< T, N >::value ( ) const
inline

for std::hash

Definition at line 82 of file alphaid.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:06:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.