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
doc_src_qcache.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5
QCache<int, Employee>
cache
;
7
8
10
Employee
*
employee
=
new
Employee
;
11
employee
->
setId
(37);
12
employee
->
setName
(
"Richard Schmit"
);
13
...
14
cache.insert(
employee
->
id
(),
employee
);
16
17
19
QCache<int, MyDataStructure>
cache
(5000);
Employee
[0]
Definition
doc_src_containers.cpp:8
Employee::id
int id() const
[4]
Definition
employee.h:47
Employee::setName
void setName(const QString &name)
[3] //! [4]
Definition
employee.h:43
Employee::setId
void setId(int id)
Definition
employee.h:41
employee
Employee * employee
[0]
Definition
doc_src_qcache.cpp:10
cache
QCache< int, Employee > cache
[0]
Definition
doc_src_qcache.cpp:5
qtbase
src
corelib
doc
snippets
code
doc_src_qcache.cpp
Generated by
1.10.0