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
QFragmentMap< Fragment > Class Template Reference

#include <qfragmentmap_p.h>

+ Collaboration diagram for QFragmentMap< Fragment >:

Classes

class  ConstIterator
 
class  Iterator
 

Public Member Functions

 QFragmentMap ()
 
 ~QFragmentMap ()
 
void clear ()
 
Iterator begin ()
 
Iterator end ()
 
ConstIterator begin () const
 
ConstIterator end () const
 
ConstIterator last () const
 
bool isEmpty () const
 
int numNodes () const
 
int length (uint field=0) const
 
Iterator find (int k, uint field=0)
 
ConstIterator find (int k, uint field=0) const
 
uint findNode (int k, uint field=0) const
 
uint insert_single (int key, uint length)
 
uint erase_single (uint f)
 
Fragmentfragment (uint index)
 
const Fragmentfragment (uint index) const
 
uint position (uint node, uint field=0) const
 
bool isValid (uint n) const
 
uint next (uint n) const
 
uint previous (uint n) const
 
uint size (uint node, uint field=0) const
 
void setSize (uint node, int new_size, uint field=0)
 
int firstNode () const
 

Friends

class Iterator
 
class ConstIterator
 

Detailed Description

template<class Fragment>
class QFragmentMap< Fragment >

Definition at line 684 of file qfragmentmap_p.h.

Constructor & Destructor Documentation

◆ QFragmentMap()

template<class Fragment >
QFragmentMap< Fragment >::QFragmentMap ( )
inline

Definition at line 762 of file qfragmentmap_p.h.

◆ ~QFragmentMap()

template<class Fragment >
QFragmentMap< Fragment >::~QFragmentMap ( )
inline

Definition at line 763 of file qfragmentmap_p.h.

References begin(), and it.

+ Here is the call graph for this function:

Member Function Documentation

◆ begin() [1/2]

template<class Fragment >
Iterator QFragmentMap< Fragment >::begin ( )
inline

Definition at line 777 of file qfragmentmap_p.h.

Referenced by QTextDocument::begin(), QTextDocument::firstBlock(), QTextDocumentPrivate::setLayout(), and QTextOdfWriter::writeAll().

+ Here is the caller graph for this function:

◆ begin() [2/2]

template<class Fragment >
ConstIterator QFragmentMap< Fragment >::begin ( ) const
inline

Definition at line 779 of file qfragmentmap_p.h.

◆ clear()

template<class Fragment >
void QFragmentMap< Fragment >::clear ( )
inline

Definition at line 771 of file qfragmentmap_p.h.

References begin(), and it.

Referenced by QTextDocumentPrivate::clear().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ end() [1/2]

template<class Fragment >
Iterator QFragmentMap< Fragment >::end ( )
inline

Definition at line 778 of file qfragmentmap_p.h.

Referenced by QTextOdfWriter::writeAll().

+ Here is the caller graph for this function:

◆ end() [2/2]

template<class Fragment >
ConstIterator QFragmentMap< Fragment >::end ( ) const
inline

Definition at line 780 of file qfragmentmap_p.h.

◆ erase_single()

template<class Fragment >
uint QFragmentMap< Fragment >::erase_single ( uint f)
inline

Definition at line 803 of file qfragmentmap_p.h.

References Fragment, and Q_ASSERT.

◆ find() [1/2]

template<class Fragment >
Iterator QFragmentMap< Fragment >::find ( int k,
uint field = 0 )
inline

Definition at line 788 of file qfragmentmap_p.h.

Referenced by QTextDocumentPrivate::blockCharFormatIndex(), and QTextDocumentPrivate::setCharFormat().

+ Here is the caller graph for this function:

◆ find() [2/2]

template<class Fragment >
ConstIterator QFragmentMap< Fragment >::find ( int k,
uint field = 0 ) const
inline

Definition at line 789 of file qfragmentmap_p.h.

◆ findNode()

template<class Fragment >
uint QFragmentMap< Fragment >::findNode ( int k,
uint field = 0 ) const
inline

Definition at line 791 of file qfragmentmap_p.h.

Referenced by QTextDocument::findBlock(), QTextDocument::findBlockByLineNumber(), QTextDocument::findBlockByNumber(), QTextDocumentPrivate::insert(), QTextDocumentPrivate::insertBlock(), QTextDocumentPrivate::move(), QTextDocumentPrivate::setCharFormat(), and QTextDocumentPrivate::undoRedo().

+ Here is the caller graph for this function:

◆ firstNode()

template<class Fragment >
int QFragmentMap< Fragment >::firstNode ( ) const
inline

Definition at line 835 of file qfragmentmap_p.h.

Referenced by QTextCursor::charFormat().

+ Here is the caller graph for this function:

◆ fragment() [1/2]

◆ fragment() [2/2]

template<class Fragment >
const Fragment * QFragmentMap< Fragment >::fragment ( uint index) const
inline

Definition at line 817 of file qfragmentmap_p.h.

References Q_ASSERT.

◆ insert_single()

template<class Fragment >
uint QFragmentMap< Fragment >::insert_single ( int key,
uint length )
inline

Definition at line 793 of file qfragmentmap_p.h.

References Fragment, and Q_ASSERT.

◆ isEmpty()

template<class Fragment >
bool QFragmentMap< Fragment >::isEmpty ( ) const
inline

Definition at line 784 of file qfragmentmap_p.h.

◆ isValid()

template<class Fragment >
bool QFragmentMap< Fragment >::isValid ( uint n) const
inline

Definition at line 822 of file qfragmentmap_p.h.

◆ last()

template<class Fragment >
ConstIterator QFragmentMap< Fragment >::last ( ) const
inline

Definition at line 782 of file qfragmentmap_p.h.

Referenced by QTextDocument::lastBlock().

+ Here is the caller graph for this function:

◆ length()

template<class Fragment >
int QFragmentMap< Fragment >::length ( uint field = 0) const
inline

Definition at line 786 of file qfragmentmap_p.h.

Referenced by QTextDocumentPrivate::clear(), QTextDocumentPrivate::insert(), QTextDocumentPrivate::insertBlock(), and QTextDocumentPrivate::move().

+ Here is the caller graph for this function:

◆ next()

template<class Fragment >
uint QFragmentMap< Fragment >::next ( uint n) const
inline

Definition at line 823 of file qfragmentmap_p.h.

Referenced by QTextDocumentPrivate::insertBlock(), and QTextDocumentPrivate::move().

+ Here is the caller graph for this function:

◆ numNodes()

template<class Fragment >
int QFragmentMap< Fragment >::numNodes ( ) const
inline

Definition at line 785 of file qfragmentmap_p.h.

Referenced by QTextDocumentPrivate::ensureMaximumBlockCount(), and QTextDocumentPrivate::finishEdit().

+ Here is the caller graph for this function:

◆ position()

template<class Fragment >
uint QFragmentMap< Fragment >::position ( uint node,
uint field = 0 ) const
inline

Definition at line 821 of file qfragmentmap_p.h.

Referenced by QTextDocumentPrivate::blockCharFormatIndex(), QTextTablePrivate::findCellIndex(), QTextTablePrivate::fragmentAdded(), QTextDocumentPrivate::insertBlock(), QTextDocumentPrivate::move(), operator<(), and operator<().

+ Here is the caller graph for this function:

◆ previous()

template<class Fragment >
uint QFragmentMap< Fragment >::previous ( uint n) const
inline

Definition at line 824 of file qfragmentmap_p.h.

Referenced by QTextDocumentPrivate::move().

+ Here is the caller graph for this function:

◆ setSize()

template<class Fragment >
void QFragmentMap< Fragment >::setSize ( uint node,
int new_size,
uint field = 0 )
inline

Definition at line 826 of file qfragmentmap_p.h.

References Fragment, and Q_ASSERT.

◆ size()

template<class Fragment >
uint QFragmentMap< Fragment >::size ( uint node,
uint field = 0 ) const
inline

Definition at line 825 of file qfragmentmap_p.h.

Referenced by QTextDocumentPrivate::insertBlock(), and QTextDocumentPrivate::move().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ ConstIterator

template<class Fragment >
friend class ConstIterator
friend

Definition at line 839 of file qfragmentmap_p.h.

◆ Iterator

template<class Fragment >
friend class Iterator
friend

Definition at line 838 of file qfragmentmap_p.h.


The documentation for this class was generated from the following file: