My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
PageContext Class Reference

#include <context.h>

Inheritance diagram for PageContext:
RefCountedContext TemplateStructIntf

Classes

class  Private
 

Public Member Functions

virtual TemplateVariant get (const char *name) const
 
virtual int addRef ()
 
virtual int release ()
 
- Public Member Functions inherited from RefCountedContext
 RefCountedContext (const char *)
 
virtual ~RefCountedContext ()
 
int addRef ()
 
int release ()
 
- Public Member Functions inherited from TemplateStructIntf
virtual ~TemplateStructIntf ()
 

Static Public Member Functions

static PageContextalloc (PageDef *pd, bool isMainPage, bool isExample)
 

Private Member Functions

 PageContext (PageDef *, bool isMainPage, bool isExample)
 
 ~PageContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 329 of file context.h.

Constructor & Destructor Documentation

PageContext::PageContext ( PageDef pd,
bool  isMainPage,
bool  isExample 
)
private

Definition at line 3696 of file context.cpp.

References p, and Private.

Referenced by alloc().

: RefCountedContext("PageContext")
{
p = new Private(pd,isMainPage,isExample);
}
PageContext::~PageContext ( )
private

Definition at line 3701 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

virtual int PageContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateStructIntf.

Definition at line 336 of file context.h.

References RefCountedContext::addRef().

static PageContext* PageContext::alloc ( PageDef pd,
bool  isMainPage,
bool  isExample 
)
inlinestatic
TemplateVariant PageContext::get ( const char *  name) const
virtual

Gets the value for a field name.

Parameters
[in]nameThe name of the field.

Implements TemplateStructIntf.

Definition at line 3706 of file context.cpp.

References PageContext::Private::get(), and p.

{
return p->get(n);
}
virtual int PageContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateStructIntf.

Definition at line 337 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* PageContext::p
private

Definition at line 342 of file context.h.

Referenced by get(), PageContext(), and ~PageContext().


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