Wikidata::Item

Search for usage in LXR

Wikidata::Item Class Reference

#include <entities.h>

Public Member Functions

 Item (Q id, const QJsonObject &data)
 
constexpr Q id () const
 
constexpr bool isValid () const
 
template<typename T >
value (P property) const
 
template<typename T >
std::vector< T > values (P property) const
 

Detailed Description

Wikidata item.

Definition at line 113 of file entities.h.

Member Function Documentation

◆ id()

Q Wikidata::Item::id ( ) const
inlinenodiscardconstexpr

Definition at line 121 of file entities.h.

◆ isValid()

bool Wikidata::Item::isValid ( ) const
inlinenodiscardconstexpr

Definition at line 120 of file entities.h.

◆ value()

template<typename T >
T Wikidata::Item::value ( P property) const
inlinenodiscard

Definition at line 124 of file entities.h.

◆ values()

template<typename T >
std::vector< T > Wikidata::Item::values ( P property) const
inlinenodiscard

Definition at line 130 of file entities.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.