Cppcheck
Classes | Public Member Functions | Public Attributes | Friends | List of all members
ExprIdToken Struct Reference

#include <programmemory.h>

Classes

struct  Hash
 

Public Member Functions

 ExprIdToken ()=default
 
 ExprIdToken (const Token *tok)
 
 ExprIdToken (nonneg int exprid)
 
nonneg int getExpressionId () const
 
bool operator== (const ExprIdToken &rhs) const
 
bool operator< (const ExprIdToken &rhs) const
 
const Tokenoperator* () const NOEXCEPT
 
const Tokenoperator-> () const NOEXCEPT
 

Public Attributes

const Tokentok = nullptr
 
nonneg int exprid = 0
 

Friends

template<class T , class U >
bool operator!= (const T &lhs, const U &rhs)
 
template<class T , class U >
bool operator<= (const T &lhs, const U &rhs)
 
template<class T , class U >
bool operator> (const T &lhs, const U &rhs)
 
template<class T , class U >
bool operator>= (const T &lhs, const U &rhs)
 

Detailed Description

Definition at line 39 of file programmemory.h.

Constructor & Destructor Documentation

◆ ExprIdToken() [1/3]

ExprIdToken::ExprIdToken ( )
default

◆ ExprIdToken() [2/3]

ExprIdToken::ExprIdToken ( const Token tok)

Definition at line 44 of file programmemory.cpp.

◆ ExprIdToken() [3/3]

ExprIdToken::ExprIdToken ( nonneg int  exprid)
inline

Definition at line 50 of file programmemory.h.

Member Function Documentation

◆ getExpressionId()

nonneg int ExprIdToken::getExpressionId ( ) const

◆ operator*()

const Token& ExprIdToken::operator* ( ) const
inline

Definition at line 86 of file programmemory.h.

References tok.

◆ operator->()

const Token* ExprIdToken::operator-> ( ) const
inline

Definition at line 90 of file programmemory.h.

References tok.

◆ operator<()

bool ExprIdToken::operator< ( const ExprIdToken rhs) const
inline

Definition at line 58 of file programmemory.h.

References getExpressionId().

◆ operator==()

bool ExprIdToken::operator== ( const ExprIdToken rhs) const
inline

Definition at line 54 of file programmemory.h.

References getExpressionId().

Friends And Related Function Documentation

◆ operator!=

template<class T , class U >
bool operator!= ( const T &  lhs,
const U &  rhs 
)
friend

Definition at line 63 of file programmemory.h.

◆ operator<=

template<class T , class U >
bool operator<= ( const T &  lhs,
const U &  rhs 
)
friend

Definition at line 69 of file programmemory.h.

◆ operator>

template<class T , class U >
bool operator> ( const T &  lhs,
const U &  rhs 
)
friend

Definition at line 75 of file programmemory.h.

◆ operator>=

template<class T , class U >
bool operator>= ( const T &  lhs,
const U &  rhs 
)
friend

Definition at line 81 of file programmemory.h.

Member Data Documentation

◆ exprid

nonneg int ExprIdToken::exprid = 0

◆ tok

const Token* ExprIdToken::tok = nullptr

The documentation for this struct was generated from the following files: