Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
SymbolStack Class Reference

#include <symbols.h>

Inheritance diagram for SymbolStack:
Collaboration diagram for SymbolStack:

Public Member Functions

const SafeSymbolsconstTop () const
bool hasNext ()
Token next ()
bool test (Token)
const Symbolsymbol () const
Token token ()
QByteArray lexem () const
QByteArray unquotedLexem ()
bool dontReplaceSymbol (const QByteArray &name) const
QSet< QByteArrayexcludeSymbols () const
Public Member Functions inherited from QStack< SafeSymbols >
void swap (QStack< SafeSymbols > &other) noexcept
void push (const SafeSymbols &t)
 Adds element t to the top of the stack.
SafeSymbols pop ()
 Removes the top item from the stack and returns it.
SafeSymbolstop ()
 Returns a reference to the stack's top item.
Public Member Functions inherited from QList< SafeSymbols >
DataPointerdata_ptr () &
 QList (DataPointer dd) noexcept
QList< SafeSymbols > & operator= (std::initializer_list< SafeSymbols > args)
void swap (QList &other) noexcept
QTypeTraits::compare_eq_result_container< QList, U > operator== (const QList &other) const
QTypeTraits::compare_eq_result_container< QList, U > operator!= (const QList &other) const
QTypeTraits::compare_lt_result_container< QList, U > operator< (const QList &other) const noexcept(noexcept(std::lexicographical_compare< typename QList< U >::const_iterator, typename QList::const_iterator >(std::declval< QList< U > >().begin(), std::declval< QList< U > >().end(), other.begin(), other.end())))
QTypeTraits::compare_lt_result_container< QList, U > operator> (const QList &other) const noexcept(noexcept(other< std::declval< QList< U > >()))
QTypeTraits::compare_lt_result_container< QList, U > operator<= (const QList &other) const noexcept(noexcept(other< std::declval< QList< U > >()))
QTypeTraits::compare_lt_result_container< QList, U > operator>= (const QList &other) const noexcept(noexcept(std::declval< QList< U > >()< other))
constexpr qsizetype size () const noexcept
constexpr qsizetype count () const noexcept
constexpr qsizetype length () const noexcept
constexpr bool isEmpty () const noexcept
void resize (qsizetype size)
void resizeForOverwrite (qsizetype size)
qsizetype capacity () const
void reserve (qsizetype size)
void squeeze ()
void detach ()
bool isDetached () const noexcept
bool isSharedWith (const QList< SafeSymbols > &other) const
pointer data ()
const_pointer constData () const noexcept
void clear ()
const_reference at (qsizetype i) const noexcept
reference operator[] (qsizetype i)
void append (parameter_type t)
void prepend (rvalue_ref t)
reference emplaceBack (Args &&... args)
reference emplaceFront (Args &&... args)
iterator insert (qsizetype i, parameter_type t)
QListassign (qsizetype n, parameter_type t)
iterator emplace (const_iterator before, Args &&... args)
void replace (qsizetype i, parameter_type t)
void remove (qsizetype i, qsizetype n=1)
void removeFirst () noexcept
void removeLast () noexcept
value_type takeFirst ()
value_type takeLast ()
QList< SafeSymbols > & fill (parameter_type t, qsizetype size=-1)
void removeAt (qsizetype i)
qsizetype removeAll (const AT &t)
bool removeOne (const AT &t)
qsizetype removeIf (Predicate pred)
SafeSymbols takeAt (qsizetype i)
void move (qsizetype from, qsizetype to)
iterator begin ()
iterator end ()
const_iterator cbegin () const noexcept
const_iterator cend () const noexcept
const_iterator constBegin () const noexcept
const_iterator constEnd () const noexcept
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator crbegin () const noexcept
const_reverse_iterator crend () const noexcept
iterator erase (const_iterator begin, const_iterator end)
SafeSymbolsfirst ()
const SafeSymbolsconstFirst () const noexcept
SafeSymbolslast ()
const SafeSymbolsconstLast () const noexcept
bool startsWith (parameter_type t) const
bool endsWith (parameter_type t) const
QList< SafeSymbolsmid (qsizetype pos, qsizetype len=-1) const
QList< SafeSymbolssliced (qsizetype pos) const
SafeSymbols value (qsizetype i) const
void swapItemsAt (qsizetype i, qsizetype j)
void push_back (parameter_type t)
void push_front (rvalue_ref t)
void pop_back () noexcept
void pop_front () noexcept
reference emplace_back (Args &&... args)
bool empty () const noexcept
reference front ()
reference back ()
void shrink_to_fit ()
constexpr qsizetype max_size () const noexcept
QList< SafeSymbols > & operator+= (const QList< SafeSymbols > &l)
QList< SafeSymbolsoperator+ (const QList< SafeSymbols > &l) const &
QList< SafeSymbols > & operator<< (parameter_type t)
QList< SafeSymbolstoList () const noexcept
QList< SafeSymbolstoVector () const noexcept
Public Member Functions inherited from QListSpecialMethodsBase< SafeSymbols >
qsizetype indexOf (const AT &t, qsizetype from=0) const noexcept
qsizetype lastIndexOf (const AT &t, qsizetype from=-1) const noexcept
bool contains (const AT &t) const noexcept

Additional Inherited Members

Public Types inherited from QList< SafeSymbols >
using Type
using value_type
using pointer
using const_pointer
using reference
using const_reference
using size_type
using difference_type
using parameter_type
using rvalue_ref
using Iterator
using ConstIterator
using reverse_iterator
using const_reverse_iterator
Static Public Member Functions inherited from QList< SafeSymbols >
static constexpr qsizetype maxSize ()
static QList< SafeSymbolsfromList (const QList< SafeSymbols > &list) noexcept
static QList< SafeSymbolsfromVector (const QList< SafeSymbols > &vector) noexcept
static QList< SafeSymbolsfromReadOnlyData (const SafeSymbols(&t)[N]) noexcept
Protected Types inherited from QListSpecialMethodsBase< SafeSymbols >
using Self
Protected Member Functions inherited from QListSpecialMethods< SafeSymbols >
 QListSpecialMethods ()=default
Protected Member Functions inherited from QListSpecialMethodsBase< SafeSymbols >
 QListSpecialMethodsBase ()=default
Selfself ()

Detailed Description

Definition at line 85 of file symbols.h.

Member Function Documentation

◆ constTop()

const SafeSymbols & SymbolStack::constTop ( ) const
inline

Definition at line 88 of file symbols.h.

Referenced by hasNext(), next(), and symbol().

Here is the caller graph for this function:

◆ dontReplaceSymbol()

bool SymbolStack::dontReplaceSymbol ( const QByteArray & name) const
inline

Definition at line 125 of file symbols.h.

◆ excludeSymbols()

QSet< QByteArray > SymbolStack::excludeSymbols ( ) const
inline

Definition at line 133 of file symbols.h.

◆ hasNext()

bool SymbolStack::hasNext ( )
inline

Definition at line 89 of file symbols.h.

References constTop().

Referenced by Preprocessor::macroExpand(), and Preprocessor::macroExpandIdentifier().

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

◆ lexem()

QByteArray SymbolStack::lexem ( ) const
inline

Definition at line 104 of file symbols.h.

References symbol().

Here is the call graph for this function:

◆ next()

Token SymbolStack::next ( )
inline

Definition at line 94 of file symbols.h.

References constTop().

Referenced by Preprocessor::macroExpand(), Preprocessor::macroExpandIdentifier(), and test().

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

◆ symbol()

const Symbol & SymbolStack::symbol ( ) const
inline

Definition at line 102 of file symbols.h.

References constTop().

Referenced by lexem(), Preprocessor::macroExpand(), Preprocessor::macroExpandIdentifier(), token(), and unquotedLexem().

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

◆ test()

bool SymbolStack::test ( Token token)
inline

Definition at line 111 of file symbols.h.

References next().

Referenced by Preprocessor::macroExpandIdentifier().

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

◆ token()

Token SymbolStack::token ( )
inline

Definition at line 103 of file symbols.h.

References symbol(), and Symbol::token.

Here is the call graph for this function:

◆ unquotedLexem()

QByteArray SymbolStack::unquotedLexem ( )
inline

Definition at line 105 of file symbols.h.

References symbol().

Here is the call graph for this function:

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