WSF
WsfGrammar::M::Expr Class Reference

#include <WsfParseGrammar.hpp>

Public Member Functions

 Expr ()
 ~Expr ()=default
 Expr (const Expr &aSrc)
Exproperator= (const Expr &aRhs)
void Clear ()
void SetLiteral (const std::string &aLiteral)
void Swap (Expr &aRhs)
void PushMove (Expr &aExp)
Exproperator+= (const Expr &aExp)
size_t WordCount () const
const ExprGetWord (size_t aIndex) const
ExprGetWord (size_t aIndex)
std::vector< Expr > & words ()
const std::vector< Expr > & words () const

Static Public Member Functions

static Expr Literal (const std::string &aText)

Public Attributes

RuleType mRuleType
std::string mType
std::string mLabel
std::string mText
int mFlags

Constructor & Destructor Documentation

◆ Expr() [1/2]

WsfGrammar::M::Expr::Expr ( )
inline

◆ ~Expr()

WsfGrammar::M::Expr::~Expr ( )
default

References Expr(), and operator=().

◆ Expr() [2/2]

WsfGrammar::M::Expr::Expr ( const Expr & aSrc)

References Expr(), mFlags, mLabel, mRuleType, mText, and mType.

Member Function Documentation

◆ Clear()

void WsfGrammar::M::Expr::Clear ( )
inline

◆ GetWord() [1/2]

Expr & WsfGrammar::M::Expr::GetWord ( size_t aIndex)

References Expr().

◆ GetWord() [2/2]

const Expr & WsfGrammar::M::Expr::GetWord ( size_t aIndex) const

◆ Literal()

Expr WsfGrammar::M::Expr::Literal ( const std::string & aText)
inlinestatic

References Expr(), and SetLiteral().

Referenced by WsfGrammar::Parser::Recurrence().

◆ operator+=()

Expr & WsfGrammar::M::Expr::operator+= ( const Expr & aExp)
inline

References Expr().

◆ operator=()

Expr & WsfGrammar::M::Expr::operator= ( const Expr & aRhs)

References Expr(), mFlags, mLabel, mRuleType, mText, and mType.

Referenced by ~Expr().

◆ PushMove()

void WsfGrammar::M::Expr::PushMove ( Expr & aExp)
inline

◆ SetLiteral()

void WsfGrammar::M::Expr::SetLiteral ( const std::string & aLiteral)
inline

◆ Swap()

void WsfGrammar::M::Expr::Swap ( Expr & aRhs)

◆ WordCount()

size_t WsfGrammar::M::Expr::WordCount ( ) const
inline

◆ words() [1/2]

std::vector< Expr > & WsfGrammar::M::Expr::words ( )
inline

◆ words() [2/2]

const std::vector< Expr > & WsfGrammar::M::Expr::words ( ) const
inline

Member Data Documentation

◆ mFlags

int WsfGrammar::M::Expr::mFlags

Referenced by Expr(), Expr(), operator=(), and Swap().

◆ mLabel

std::string WsfGrammar::M::Expr::mLabel

◆ mRuleType

◆ mText

◆ mType


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved