![]() |
Qt 6.x
The Qt SDK
|
#include <qgraph_p.h>
Classes | |
class | const_iterator |
Public Member Functions | |
Graph () | |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
EdgeData * | edgeData (Vertex *first, Vertex *second) |
void | createEdge (Vertex *first, Vertex *second, EdgeData *data) |
void | removeEdge (Vertex *first, Vertex *second) |
EdgeData * | takeEdge (Vertex *first, Vertex *second) |
QList< Vertex * > | adjacentVertices (Vertex *vertex) const |
QSet< Vertex * > | vertices () const |
QList< QPair< Vertex *, Vertex * > > | connections () const |
Protected Member Functions | |
void | createDirectedEdge (Vertex *from, Vertex *to, EdgeData *data) |
void | removeDirectedEdge (Vertex *from, Vertex *to) |
Definition at line 34 of file qgraph_p.h.
Definition at line 37 of file qgraph_p.h.
Definition at line 165 of file qgraph_p.h.
References QHash< Key, T >::cend(), QHash< Key, T >::constFind(), and it.
Definition at line 182 of file qgraph_p.h.
References QList< T >::append(), Graph< Vertex, EdgeData >::constBegin(), Graph< Vertex, EdgeData >::constEnd(), it, and qMakePair().
|
inline |
Definition at line 93 of file qgraph_p.h.
Referenced by Graph< Vertex, EdgeData >::connections(), and Graph< Vertex, EdgeData >::vertices().
|
inline |
Definition at line 97 of file qgraph_p.h.
Referenced by Graph< Vertex, EdgeData >::connections(), and Graph< Vertex, EdgeData >::vertices().
|
inlineprotected |
Definition at line 226 of file qgraph_p.h.
Referenced by Graph< Vertex, EdgeData >::createEdge().
|
inline |
Definition at line 118 of file qgraph_p.h.
References arg, Graph< Vertex, EdgeData >::createDirectedEdge(), Graph< Vertex, EdgeData >::edgeData(), QString::fromLatin1(), qDebug, qPrintable, and qWarning.
If there is an edge between first and second, it will return a structure containing the data associated with the edge, otherwise it will return 0.
Definition at line 108 of file qgraph_p.h.
References QHash< Key, T >::cend(), QSet< T >::cend(), QHash< Key, T >::constFind(), QSet< T >::constFind(), and it.
Referenced by Graph< Vertex, EdgeData >::createEdge(), Graph< Vertex, EdgeData >::removeEdge(), and Graph< Vertex, EdgeData >::takeEdge().
Definition at line 231 of file qgraph_p.h.
References QHash< Key, T >::end(), QHash< Key, T >::erase(), QHash< Key, T >::find(), QSet< T >::isEmpty(), it, Q_ASSERT, and QSet< T >::remove().
Referenced by Graph< Vertex, EdgeData >::removeEdge(), and Graph< Vertex, EdgeData >::takeEdge().
Definition at line 135 of file qgraph_p.h.
References arg, Graph< Vertex, EdgeData >::edgeData(), QString::fromLatin1(), qDebug, qPrintable, and Graph< Vertex, EdgeData >::removeDirectedEdge().
Definition at line 149 of file qgraph_p.h.
References arg, Graph< Vertex, EdgeData >::edgeData(), QString::fromLatin1(), qDebug, qPrintable, and Graph< Vertex, EdgeData >::removeDirectedEdge().
Referenced by createSequence().
Definition at line 174 of file qgraph_p.h.
References Graph< Vertex, EdgeData >::constBegin(), Graph< Vertex, EdgeData >::constEnd(), QSet< T >::insert(), and it.