QGIS API Documentation
4.3.0-Master (8c22baaae17)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
3d
chunks
qgschunklist_p.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgschunklist_p.h
3
--------------------------------------
4
Date : July 2017
5
Copyright : (C) 2017 by Martin Dobias
6
Email : wonder dot sk at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSCHUNKLIST_P_H
17
#define QGSCHUNKLIST_P_H
18
20
21
//
22
// W A R N I N G
23
// -------------
24
//
25
// This file is not part of the QGIS API. It exists purely as an
26
// implementation detail. This header file may change from version to
27
// version without notice, or even be removed.
28
//
29
30
#define SIP_NO_FILE
31
32
class
QgsChunkNode;
33
41
struct
QgsChunkListEntry
42
{
44
QgsChunkListEntry( QgsChunkNode *node )
45
: chunk( node )
46
{}
47
48
QgsChunkListEntry *prev =
nullptr
;
49
QgsChunkListEntry *next =
nullptr
;
50
QgsChunkNode *chunk;
51
};
52
53
67
class
QgsChunkList
68
{
69
public
:
71
QgsChunkList() =
default
;
72
74
int
trueCount()
const
;
76
int
count()
const
{
return
mCount; }
77
79
QgsChunkListEntry *first()
const
{
return
mHead; }
81
QgsChunkListEntry *last()
const
{
return
mTail; }
83
bool
isEmpty()
const
;
84
89
void
insertEntry( QgsChunkListEntry *entry, QgsChunkListEntry *next );
90
92
void
takeEntry( QgsChunkListEntry *entry );
94
QgsChunkListEntry *takeFirst();
96
QgsChunkListEntry *takeLast();
97
99
void
insertFirst( QgsChunkListEntry *entry );
101
void
insertLast( QgsChunkListEntry *entry );
102
103
private
:
104
QgsChunkListEntry *mHead =
nullptr
;
105
QgsChunkListEntry *mTail =
nullptr
;
106
int
mCount = 0;
107
};
108
110
111
#endif
// QGSCHUNKLIST_P_H
Generated on
for QGIS API Documentation by
1.17.0