Grantlee
0.3.0
|
#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>
Go to the source code of this file.
Namespaces | |
namespace | Grantlee |
The Grantlee namespace holds all public Grantlee API. |
Macros | |
#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) |
Definition in file typeaccessor.h.
#define GRANTLEE_ASSOCIATIVE_TYPE_CONTAINER_ACCESSOR | ( | Container | ) |
Registers Container with Grantlee so that it can be iterated in a {% for %}
tag.
Also makes the properties items
, keys
and values
available.
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[].
Definition at line 151 of file typeaccessor.h.
#define GRANTLEE_SEQUENTIAL_TYPE_CONTAINER_ACCESSOR | ( | Container | ) |
Registers Container with Grantlee so that it can be iterated in a {% for %}
tag.
Definition at line 173 of file typeaccessor.h.
#define GRANTLEE_SMART_PTR_ACCESSOR | ( | SmartPointer | ) |
Allows Grantlee to access SmartPointer<QObjectSubclass> in templates.
Definition at line 209 of file typeaccessor.h.