DynGenPar
Dynamic Generalized Parser
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DynGenPar::Rule Class Reference
Inheritance diagram for DynGenPar::Rule:
Inheritance graph

Public Member Functions

 Rule ()
 
 Rule (const QVariant &label)
 
 Rule (const QList< Cat > &list)
 
 Rule (const QList< Cat > &list, const QVariant &label)
 
QVariant label () const
 
void setLabel (const QVariant &label)
 
Ruleoperator+= (const QList< Cat > &other)
 
Ruleoperator+= (const Cat &value)
 
Ruleoperator<< (const QList< Cat > &other)
 
Ruleoperator<< (const Cat &value)
 
void add (const Cat &value)
 Java-style + the binding generator doesn't detect the inherited append. More...
 
QList< Cat > & toList ()
 for bindings More...
 
QDataStream & writeExternal (QDataStream &stream, bool writeLabel=true, bool writeAction=true) const
 implementation of the QDataStream operator<< More...
 
QDataStream & readExternal (QDataStream &stream)
 implementation of the QDataStream operator>> More...
 

Public Attributes

NextTokenConstraints nextTokenConstraints
 
Actionaction
 

Static Public Attributes

static bool serializeLabels = true
 whether the operator<<(QDataStream &, const Rule &) should serialize labels More...
 
static bool serializeActions = true
 whether the operator<<(QDataStream &, const Rule &) should serialize actions More...
 

Detailed Description

Definition at line 129 of file dyngenpar.h.

Constructor & Destructor Documentation

◆ Rule() [1/4]

DynGenPar::Rule::Rule ( )
inline

Definition at line 133 of file dyngenpar.h.

◆ Rule() [2/4]

DynGenPar::Rule::Rule ( const QVariant &  label)
inlineexplicit

Definition at line 134 of file dyngenpar.h.

◆ Rule() [3/4]

DynGenPar::Rule::Rule ( const QList< Cat > &  list)
inlineexplicit

Definition at line 136 of file dyngenpar.h.

◆ Rule() [4/4]

DynGenPar::Rule::Rule ( const QList< Cat > &  list,
const QVariant &  label 
)
inline

Definition at line 138 of file dyngenpar.h.

Member Function Documentation

◆ add()

void DynGenPar::Rule::add ( const Cat value)
inline

Java-style + the binding generator doesn't detect the inherited append.

Definition at line 161 of file dyngenpar.h.

◆ label()

QVariant DynGenPar::Rule::label ( ) const
inline

Definition at line 140 of file dyngenpar.h.

◆ operator+=() [1/2]

Rule& DynGenPar::Rule::operator+= ( const QList< Cat > &  other)
inline

Definition at line 144 of file dyngenpar.h.

◆ operator+=() [2/2]

Rule& DynGenPar::Rule::operator+= ( const Cat value)
inline

Definition at line 148 of file dyngenpar.h.

◆ operator<<() [1/2]

Rule& DynGenPar::Rule::operator<< ( const QList< Cat > &  other)
inline

Definition at line 152 of file dyngenpar.h.

◆ operator<<() [2/2]

Rule& DynGenPar::Rule::operator<< ( const Cat value)
inline

Definition at line 156 of file dyngenpar.h.

◆ readExternal()

QDataStream& DynGenPar::Rule::readExternal ( QDataStream &  stream)
inline

implementation of the QDataStream operator>>

Definition at line 176 of file dyngenpar.h.

◆ setLabel()

void DynGenPar::Rule::setLabel ( const QVariant &  label)
inline

Definition at line 141 of file dyngenpar.h.

◆ toList()

QList<Cat>& DynGenPar::Rule::toList ( )
inline

for bindings

Definition at line 165 of file dyngenpar.h.

◆ writeExternal()

QDataStream& DynGenPar::Rule::writeExternal ( QDataStream &  stream,
bool  writeLabel = true,
bool  writeAction = true 
) const
inline

implementation of the QDataStream operator<<

Definition at line 167 of file dyngenpar.h.

Member Data Documentation

◆ action

Action* DynGenPar::Rule::action

Definition at line 143 of file dyngenpar.h.

◆ nextTokenConstraints

NextTokenConstraints DynGenPar::Rule::nextTokenConstraints

Definition at line 142 of file dyngenpar.h.

◆ serializeActions

bool DynGenPar::Rule::serializeActions = true
static

whether the operator<<(QDataStream &, const Rule &) should serialize actions

Definition at line 132 of file dyngenpar.h.

◆ serializeLabels

bool DynGenPar::Rule::serializeLabels = true
static

whether the operator<<(QDataStream &, const Rule &) should serialize labels

Definition at line 131 of file dyngenpar.h.


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