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

Carries meta data for xsl:with-param as encountered in template callsites such as xsl:call-template and xsl:apply-templates. More...

#include <qwithparam_p.h>

Inheritance diagram for QPatternist::WithParam:
QPatternist::FunctionArgument QSharedData

Public Types

typedef QHash< QXmlName, PtrHash
 
typedef QExplicitlySharedDataPointer< WithParamPtr
 
- Public Types inherited from QPatternist::FunctionArgument
typedef QList< FunctionArgument::PtrList
 
typedef QExplicitlySharedDataPointer< FunctionArgumentPtr
 

Public Functions

void setSourceExpression (const Expression::Ptr &expr)
 
Expression::Ptr sourceExpression () const
 Returns the expression which is the source the value for this parameter. More...
 
 WithParam (const QXmlName name, const SequenceType::Ptr &type, const Expression::Ptr &sourceExpression)
 
- Public Functions inherited from QPatternist::FunctionArgument
 FunctionArgument (const QXmlName name, const SequenceType::Ptr &type)
 
QXmlName name () const
 
SequenceType::Ptr type () const
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Properties

Expression::Ptr m_sourceExpression
 

Additional Inherited Members

- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Carries meta data for xsl:with-param as encountered in template callsites such as xsl:call-template and xsl:apply-templates.

WithParam is similar to FunctionArgument, but has in addition a default value in the form of an Expression.

Since
4.5
Author
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com

Definition at line 75 of file qwithparam_p.h.

Typedefs

◆ Hash

Definition at line 79 of file qwithparam_p.h.

◆ Ptr

Definition at line 78 of file qwithparam_p.h.

Constructors and Destructors

◆ WithParam()

QPatternist::WithParam::WithParam ( const QXmlName  name,
const SequenceType::Ptr type,
const Expression::Ptr sourceExpression 
)
inline

sourceExpression can not be null.

Definition at line 109 of file qwithparam_p.h.

111  : FunctionArgument(name, type)
113  {
115  }
SequenceType::Ptr type() const
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Expression::Ptr m_sourceExpression
Definition: qwithparam_p.h:106
Expression::Ptr sourceExpression() const
Returns the expression which is the source the value for this parameter.
Definition: qwithparam_p.h:100
FunctionArgument(const QXmlName name, const SequenceType::Ptr &type)

Functions

◆ setSourceExpression()

void QPatternist::WithParam::setSourceExpression ( const Expression::Ptr expr)
inline

Definition at line 88 of file qwithparam_p.h.

89  {
90  Q_ASSERT(expr);
91  m_sourceExpression = expr;
92  }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
Expression::Ptr m_sourceExpression
Definition: qwithparam_p.h:106

◆ sourceExpression()

Expression::Ptr QPatternist::WithParam::sourceExpression ( ) const
inline

Returns the expression which is the source the value for this parameter.

Guaranteed to never be null.

Definition at line 100 of file qwithparam_p.h.

101  {
102  return m_sourceExpression;
103  }
Expression::Ptr m_sourceExpression
Definition: qwithparam_p.h:106

Properties

◆ m_sourceExpression

Expression::Ptr QPatternist::WithParam::m_sourceExpression
private

Definition at line 106 of file qwithparam_p.h.

Referenced by setSourceExpression(), sourceExpression(), and WithParam().


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