Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
Node< _Tp > Class Template Reference

#include <lalr.h>

+ Collaboration diagram for Node< _Tp >:

Public Types

typedef std::set< Node< _Tp > > Repository
 
typedef Repository::iterator iterator
 
typedef std::list< iterator >::iterator edge_iterator
 

Public Member Functions

QPair< edge_iterator, bool > insertEdge (iterator other) const
 
edge_iterator begin () const
 
edge_iterator end () const
 
bool operator== (const Node< _Tp > &other) const
 
bool operator!= (const Node< _Tp > &other) const
 
bool operator< (const Node< _Tp > &other) const
 

Static Public Member Functions

static iterator get (_Tp data)
 
static iterator begin_nodes ()
 
static iterator end_nodes ()
 
static Repositoryrepository ()
 

Public Attributes

bool root
 
int dfn
 
_Tp data
 
std::list< iteratorouts
 

Protected Member Functions

 Node ()
 
 Node (_Tp d)
 

Detailed Description

template<typename _Tp>
class Node< _Tp >

Definition at line 136 of file lalr.h.

Member Typedef Documentation

◆ edge_iterator

template<typename _Tp >
typedef std::list<iterator>::iterator Node< _Tp >::edge_iterator

Definition at line 141 of file lalr.h.

◆ iterator

template<typename _Tp >
typedef Repository::iterator Node< _Tp >::iterator

Definition at line 140 of file lalr.h.

◆ Repository

template<typename _Tp >
typedef std::set<Node<_Tp> > Node< _Tp >::Repository

Definition at line 139 of file lalr.h.

Constructor & Destructor Documentation

◆ Node() [1/2]

template<typename _Tp >
Node< _Tp >::Node ( )
inlineprotected

Definition at line 182 of file lalr.h.

◆ Node() [2/2]

template<typename _Tp >
Node< _Tp >::Node ( _Tp  d)
inlineprotected

Definition at line 184 of file lalr.h.

Member Function Documentation

◆ begin()

template<typename _Tp >
edge_iterator Node< _Tp >::begin ( ) const
inline

Definition at line 148 of file lalr.h.

References Node< _Tp >::outs.

◆ begin_nodes()

template<typename _Tp >
static iterator Node< _Tp >::begin_nodes ( )
inlinestatic

Definition at line 163 of file lalr.h.

References Node< _Tp >::repository().

Referenced by Automaton::buildIncludesAndFollows(), Automaton::buildReads(), and DotGraph::operator()().

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

◆ end()

template<typename _Tp >
edge_iterator Node< _Tp >::end ( ) const
inline

Definition at line 151 of file lalr.h.

References Node< _Tp >::outs.

◆ end_nodes()

template<typename _Tp >
static iterator Node< _Tp >::end_nodes ( )
inlinestatic

Definition at line 166 of file lalr.h.

References Node< _Tp >::repository().

Referenced by Automaton::buildIncludesAndFollows(), Automaton::buildReads(), and DotGraph::operator()().

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

◆ get()

template<typename _Tp >
Node< _Tp >::iterator Node< _Tp >::get ( _Tp  data)
static

Definition at line 189 of file lalr.h.

References QSet< T >::find(), QSet< T >::insert(), and it.

Referenced by Automaton::buildIncludesDigraph(), and Automaton::buildReadsDigraph().

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

◆ insertEdge()

template<typename _Tp >
QPair< typename std::list< typename Node< _Tp >::iterator >::iterator, bool > Node< _Tp >::insertEdge ( iterator  other) const

Definition at line 201 of file lalr.h.

References QSet< T >::end(), it, other(), and qMakePair().

+ Here is the call graph for this function:

◆ operator!=()

template<typename _Tp >
bool Node< _Tp >::operator!= ( const Node< _Tp > &  other) const
inline

Definition at line 157 of file lalr.h.

References other().

+ Here is the call graph for this function:

◆ operator<()

template<typename _Tp >
bool Node< _Tp >::operator< ( const Node< _Tp > &  other) const
inline

Definition at line 160 of file lalr.h.

References other().

+ Here is the call graph for this function:

◆ operator==()

template<typename _Tp >
bool Node< _Tp >::operator== ( const Node< _Tp > &  other) const
inline

Definition at line 154 of file lalr.h.

References other().

+ Here is the call graph for this function:

◆ repository()

template<typename _Tp >
static Repository & Node< _Tp >::repository ( )
inlinestatic

Definition at line 169 of file lalr.h.

Referenced by Node< _Tp >::begin_nodes(), and Node< _Tp >::end_nodes().

+ Here is the caller graph for this function:

Member Data Documentation

◆ data

template<typename _Tp >
_Tp Node< _Tp >::data
mutable

Definition at line 178 of file lalr.h.

◆ dfn

template<typename _Tp >
int Node< _Tp >::dfn
mutable

Definition at line 177 of file lalr.h.

◆ outs

template<typename _Tp >
std::list<iterator> Node< _Tp >::outs
mutable

Definition at line 179 of file lalr.h.

Referenced by Node< _Tp >::begin(), and Node< _Tp >::end().

◆ root

template<typename _Tp >
bool Node< _Tp >::root
mutable

Definition at line 176 of file lalr.h.


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