My Project
|
Default implementation of a context value of type struct. More...
#include <template.h>
Classes | |
class | Private |
Private data of a template struct object. More... | |
Public Member Functions | |
virtual TemplateVariant | get (const char *name) const |
virtual int | addRef () |
virtual int | release () |
virtual void | set (const char *name, const TemplateVariant &v) |
Public Member Functions inherited from TemplateStructIntf | |
virtual | ~TemplateStructIntf () |
Static Public Member Functions | |
static TemplateStruct * | alloc () |
Private Member Functions | |
TemplateStruct () | |
virtual | ~TemplateStruct () |
Private Attributes | |
Private * | p |
Default implementation of a context value of type struct.
Definition at line 426 of file template.h.
|
private |
|
privatevirtual |
|
virtual |
Increase object's reference count
Implements TemplateStructIntf.
Definition at line 261 of file template.cpp.
References p, and TemplateStruct::Private::refCount.
|
static |
Creates an instance with ref count set to 0.
Definition at line 295 of file template.cpp.
References TemplateStruct().
Referenced by ClassContext::Private::addExamples(), MemberContext::Private::addExamples(), TemplateContextImpl::addIndexEntry(), FilterAlphaIndex::apply(), DefinitionContext< T >::Cachable< NamespaceContext::Private >::Cachable(), TemplateNodeRepeat::render(), TemplateNodeRange::render(), TemplateNodeFor::render(), TemplateNodeBlock::render(), and TemplateNodeMarkers::render().
|
virtual |
Gets the value for a field name.
[in] | name | The name of the field. |
Implements TemplateStructIntf.
Definition at line 289 of file template.cpp.
References TemplateStruct::Private::fields, and p.
|
virtual |
Decreases object's referenc count, destroy object if 0
Implements TemplateStructIntf.
Definition at line 266 of file template.cpp.
References p, and TemplateStruct::Private::refCount.
|
virtual |
Sets the value the field of a struct
[in] | name | The name of the field. |
[in] | v | The value to set. |
Definition at line 276 of file template.cpp.
References TemplateStruct::Private::fields, and p.
Referenced by ClassContext::Private::addExamples(), MemberContext::Private::addExamples(), TemplateContextImpl::addIndexEntry(), FilterAlphaIndex::apply(), DefinitionContext< T >::Cachable< NamespaceContext::Private >::Cachable(), TemplateContextImpl::closeSubIndex(), TemplateContextImpl::openSubIndex(), TemplateNodeRepeat::render(), TemplateNodeRange::render(), TemplateNodeFor::render(), TemplateNodeBlock::render(), and TemplateNodeMarkers::render().
|
private |
Definition at line 450 of file template.h.
Referenced by addRef(), get(), release(), set(), TemplateStruct(), and ~TemplateStruct().