Grantlee  0.4.0
Namespaces | Defines
templates/lib/typeaccessor.h File Reference
#include "containeraccessor.h"
#include "grantlee_core_export.h"
#include <QtCore/QLinkedList>
#include <QtCore/QSet>
#include <QtCore/QSharedPointer>
#include <QtCore/QVariant>
#include <deque>
#include <list>
#include <vector>
Include dependency graph for typeaccessor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Grantlee
 

The Grantlee namespace holds all public Grantlee API.


Defines

#define GRANTLEE_ASSOCIATIVE_TYPE_CONTAINER_ACCESSOR(Container)
#define GRANTLEE_DISABLE_RANDOM_ACCESS(Container)
#define GRANTLEE_SEQUENTIAL_TYPE_CONTAINER_ACCESSOR(Container)
#define GRANTLEE_SMART_PTR_ACCESSOR(SmartPointer)

Detailed Description

Definition in file typeaccessor.h.


Define Documentation

Registers Container with Grantlee so that it can be iterated in a {% for %} tag.

Also makes the properties items, keys and values available.

See also:
Third party containers

Definition at line 192 of file typeaccessor.h.

#define GRANTLEE_DISABLE_RANDOM_ACCESS (   Container)

Disable random access to Container.

This is necessary for containers which do not have operator[].

See also:
Third party containers

Definition at line 151 of file typeaccessor.h.

Registers Container with Grantlee so that it can be iterated in a {% for %} tag.

See also:
Third party containers

Definition at line 173 of file typeaccessor.h.

#define GRANTLEE_SMART_PTR_ACCESSOR (   SmartPointer)

Allows Grantlee to access SmartPointer<QObjectSubclass> in templates.

See also:
Smart Pointers

Definition at line 209 of file typeaccessor.h.