Qt 4.8
Public Functions | Properties | List of all members
QPatternist::ProjectedPath Class Reference

#include <qprojectedexpression_p.h>

Inheritance diagram for QPatternist::ProjectedPath:
QPatternist::ProjectedExpression

Public Functions

virtual Action actionForElement (const QXmlName name, ProjectedExpression::Ptr &next) const
 
 ProjectedPath (const ProjectedExpression::Ptr left, const ProjectedExpression::Ptr right)
 
- Public Functions inherited from QPatternist::ProjectedExpression
virtual ~ProjectedExpression ()
 

Properties

const ProjectedExpression::Ptr m_left
 
const ProjectedExpression::Ptr m_right
 

Additional Inherited Members

- Public Types inherited from QPatternist::ProjectedExpression
enum  Action { Move = 0, Skip = 1, Keep = 2, KeepSubtree = 4 | Keep }
 
typedef ProjectedExpressionPtr
 
typedef QVector< ProjectedExpression::PtrVector
 

Detailed Description

Definition at line 129 of file qprojectedexpression_p.h.

Constructors and Destructors

◆ ProjectedPath()

QPatternist::ProjectedPath::ProjectedPath ( const ProjectedExpression::Ptr  left,
const ProjectedExpression::Ptr  right 
)
inline

Definition at line 132 of file qprojectedexpression_p.h.

133  : m_left(left),
134  m_right(right)
135  {
136  Q_ASSERT(m_left);
137  Q_ASSERT(m_right);
138  }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
const ProjectedExpression::Ptr m_left
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
const ProjectedExpression::Ptr m_right

Functions

◆ actionForElement()

virtual Action QPatternist::ProjectedPath::actionForElement ( const QXmlName  name,
ProjectedExpression::Ptr next 
) const
inlinevirtual

Reimplemented from QPatternist::ProjectedExpression.

Definition at line 140 of file qprojectedexpression_p.h.

142  {
143  ProjectedExpression::Ptr &candidateNext = next;
144  const Action a = m_left->actionForElement(name, candidateNext);
145 
146  if(a != Skip)
147  {
148  /* The test accepted it, so let's replace us with the new step. */
149  next = candidateNext;
150  }
151 
152  return a;
153  }
long ASN1_INTEGER_get ASN1_INTEGER * a
virtual Action actionForElement(const QXmlName name, ProjectedExpression::Ptr &next) const
const ProjectedExpression::Ptr m_left

Properties

◆ m_left

const ProjectedExpression::Ptr QPatternist::ProjectedPath::m_left
private

Definition at line 156 of file qprojectedexpression_p.h.

◆ m_right

const ProjectedExpression::Ptr QPatternist::ProjectedPath::m_right
private

Definition at line 157 of file qprojectedexpression_p.h.


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