Qt 4.8
|
#include <qfragmentmap_p.h>
Classes | |
class | Header |
Public Types | |
enum | { fragmentSize = sizeof(Fragment) } |
Public Functions | |
uint | erase_single (uint f) |
Fragment & | F (uint index) |
const Fragment & | F (uint index) const |
uint | findNode (int k, uint field=0) const |
Fragment * | fragment (uint index) |
const Fragment * | fragment (uint index) const |
void | init () |
uint | insert_single (int key, uint length) |
bool | isRoot (uint index) const |
bool | isValid (uint n) const |
int | length (uint field=0) const |
uint | maximum (uint n) const |
uint | minimum (uint n) const |
uint | next (uint n) const |
uint | position (uint node, uint field=0) const |
uint | previous (uint n) const |
QFragmentMapData () | |
uint | root () const |
void | setRoot (uint new_root) |
void | setSize (uint node, int new_size, uint field=0) |
uint | size (uint node, uint field=0) const |
uint | sizeLeft (uint node, uint field=0) const |
uint | sizeRight (uint node, uint field=0) const |
~QFragmentMapData () | |
Public Variables | |
union { | |
Fragment * fragments | |
Header * head | |
}; | |
Private Types | |
enum | Color { Red, Black } |
Private Functions | |
uint | createFragment () |
void | freeFragment (uint f) |
void | rebalance (uint x) |
void | removeAndRebalance (uint z) |
void | rotateLeft (uint x) |
void | rotateRight (uint x) |
Definition at line 77 of file qfragmentmap_p.h.
anonymous enum |
|
private |
Enumerator | |
---|---|
Red | |
Black |
Definition at line 79 of file qfragmentmap_p.h.
QFragmentMapData< Fragment >::QFragmentMapData | ( | ) |
Definition at line 220 of file qfragmentmap_p.h.
QFragmentMapData< Fragment >::~QFragmentMapData | ( | ) |
Definition at line 247 of file qfragmentmap_p.h.
|
private |
Definition at line 253 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::insert_single().
uint QFragmentMapData< Fragment >::erase_single | ( | uint | f | ) |
Definition at line 461 of file qfragmentmap_p.h.
|
inline |
Definition at line 111 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::createFragment(), QFragmentMapData< QTextBlockData >::erase_single(), QFragmentMapData< QTextBlockData >::findNode(), QFragmentMapData< QTextBlockData >::freeFragment(), QFragmentMapData< QTextBlockData >::init(), QFragmentMapData< QTextBlockData >::insert_single(), QFragmentMapData< QTextBlockData >::next(), QFragmentMapData< QTextBlockData >::previous(), QFragmentMapData< QTextBlockData >::rebalance(), QFragmentMapData< QTextBlockData >::rotateLeft(), and QFragmentMapData< QTextBlockData >::rotateRight().
|
inline |
Definition at line 112 of file qfragmentmap_p.h.
uint QFragmentMapData< Fragment >::findNode | ( | int | k, |
uint | field = 0 |
||
) | const |
Definition at line 638 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::insert_single().
|
inline |
Definition at line 103 of file qfragmentmap_p.h.
Referenced by QFragmentMap< QTextBlockData >::erase_single(), QFragmentMap< QTextBlockData >::insert_single(), and QFragmentMap< QTextBlockData >::setSize().
|
inline |
Definition at line 106 of file qfragmentmap_p.h.
|
private |
Definition at line 284 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::erase_single().
void QFragmentMapData< Fragment >::init | ( | ) |
Definition at line 227 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::QFragmentMapData().
uint QFragmentMapData< Fragment >::insert_single | ( | int | key, |
uint | length | ||
) |
Definition at line 658 of file qfragmentmap_p.h.
|
inline |
Definition at line 114 of file qfragmentmap_p.h.
|
inline |
Definition at line 198 of file qfragmentmap_p.h.
int QFragmentMapData< Fragment >::length | ( | uint | field = 0 | ) | const |
Definition at line 716 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::insert_single().
|
inline |
Definition at line 180 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::previous().
|
inline |
Definition at line 174 of file qfragmentmap_p.h.
uint QFragmentMapData< Fragment >::next | ( | uint | n | ) | const |
Definition at line 294 of file qfragmentmap_p.h.
|
inline |
Definition at line 118 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::insert_single(), QFragmentMap< Fragment >::Iterator::operator<(), and QFragmentMap< Fragment >::ConstIterator::operator<().
uint QFragmentMapData< Fragment >::previous | ( | uint | n | ) | const |
Definition at line 312 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::erase_single().
|
private |
Definition at line 406 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::insert_single().
|
private |
|
inline |
Definition at line 189 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::findNode(), QFragmentMapData< QTextBlockData >::insert_single(), QFragmentMapData< QTextBlockData >::length(), QFragmentMapData< QTextBlockData >::previous(), and QFragmentMapData< QTextBlockData >::rebalance().
|
private |
Definition at line 340 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::erase_single(), and QFragmentMapData< QTextBlockData >::rebalance().
|
private |
Definition at line 377 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::erase_single(), and QFragmentMapData< QTextBlockData >::rebalance().
|
inline |
Definition at line 193 of file qfragmentmap_p.h.
|
inline |
Definition at line 154 of file qfragmentmap_p.h.
|
inline |
Definition at line 149 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::findNode(), and QFragmentMapData< QTextBlockData >::length().
|
inline |
Definition at line 143 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::findNode(), and QFragmentMapData< QTextBlockData >::length().
|
inline |
Definition at line 131 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::length().
union { ... } |
Fragment* QFragmentMapData< Fragment >::fragments |
Definition at line 204 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::createFragment(), QFragmentMapData< QTextBlockData >::init(), and QFragmentMapData< QTextBlockData >::~QFragmentMapData().
Header* QFragmentMapData< Fragment >::head |
Definition at line 203 of file qfragmentmap_p.h.
Referenced by QFragmentMapData< QTextBlockData >::createFragment(), QFragmentMapData< QTextBlockData >::erase_single(), QFragmentMapData< QTextBlockData >::freeFragment(), QFragmentMapData< QTextBlockData >::init(), QFragmentMapData< QTextBlockData >::insert_single(), QFragmentMapData< QTextBlockData >::rotateLeft(), and QFragmentMapData< QTextBlockData >::rotateRight().