Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplacesearchresult_p.h File Reference

(cd4db512ae08836f5fa1d746000052215cf70a9c)

#include "qplacesearchresult.h"
#include "qplacesearchrequest.h"
#include <QSharedData>
#include <QtLocation/QPlaceIcon>
+ Include dependency graph for qplacesearchresult_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QPlaceSearchResultPrivate
 

Macros

#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
 
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)    Class::Class(const QPlaceSearchResult &other) : QPlaceSearchResult() { Class##Private::copyIfPossible(d_ptr, other); }
 
#define Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER(Class, ResultType)
 

Macro Definition Documentation

◆ Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER

#define Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER ( Class,
ResultType )
Value:
QPlaceSearchResultPrivate *clone() const override { return new Class##Private(*this); } \
QPlaceSearchResult::SearchResultType type() const override {return ResultType;} \
static void copyIfPossible(QSharedDataPointer<QPlaceSearchResultPrivate> &d_ptr, const QPlaceSearchResult &other) \
{ \
if (other.type() == ResultType) \
d_ptr = extract_d(other); \
else \
d_ptr = new Class##Private; \
}
\inmodule QtLocation
SearchResultType
Defines the type of search result.
GLenum type
QSharedPointer< T > other(t)
[5]

Definition at line 34 of file qplacesearchresult_p.h.

◆ Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR

#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR ( Class)     Class::Class(const QPlaceSearchResult &other) : QPlaceSearchResult() { Class##Private::copyIfPossible(d_ptr, other); }

Definition at line 31 of file qplacesearchresult_p.h.

◆ Q_IMPLEMENT_SEARCHRESULT_D_FUNC

#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC ( Class)
Value:
Class##Private *Class::d_func() { return reinterpret_cast<Class##Private *>(d_ptr.data()); } \
const Class##Private *Class::d_func() const { return reinterpret_cast<const Class##Private *>(d_ptr.constData()); } \

Definition at line 27 of file qplacesearchresult_p.h.