Qt 4.8
|
Houses the data specific to the templates for a certain mode. More...
#include <qtemplatemode_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< TemplateMode > | Ptr |
Public Functions | |
void | addMode (const TemplateMode::Ptr &mode) |
void | finalize () |
const QXmlName & | name () const |
TemplateMode (const QXmlName &modeName) | |
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... | |
Public Variables | |
TemplatePattern::Vector | templatePatterns |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Static Private Functions | |
static bool | lessThanByPriority (const TemplatePattern::Ptr &t1, const TemplatePattern::Ptr &t2) |
Properties | |
const QXmlName | m_modeName |
Houses the data specific to the templates for a certain mode.
Definition at line 74 of file qtemplatemode_p.h.
Definition at line 77 of file qtemplatemode_p.h.
|
inline |
Definition at line 79 of file qtemplatemode_p.h.
|
inline |
Adds the templates in mode
to this TemplateMode.
The existing name remains.
Definition at line 117 of file qtemplatemode_p.h.
void TemplateMode::finalize | ( | ) |
Orders its templates by priority such that the first lookup always returns the template with highest priority, and removes templates shadowed by import precedence.
Definition at line 54 of file qtemplatemode.cpp.
|
inlinestaticprivate |
Definition at line 48 of file qtemplatemode.cpp.
Referenced by finalize().
|
inline |
Definition at line 112 of file qtemplatemode_p.h.
|
private |
Definition at line 102 of file qtemplatemode_p.h.
TemplatePattern::Vector QPatternist::TemplateMode::templatePatterns |
Definition at line 83 of file qtemplatemode_p.h.
Referenced by finalize(), and QPatternist::ApplyTemplate::findTemplate().