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 3681 of file context.cpp.

3681  : RefCountedContext("PageContext")
3682 {
3683  p = new Private(pd,isMainPage,isExample);
3684 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:342
PageContext::~PageContext ( )
private

Definition at line 3686 of file context.cpp.

3687 {
3688  delete p;
3689 }
Private * p
Definition: context.h:342

Member Function Documentation

virtual int PageContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateStructIntf.

Definition at line 336 of file context.h.

336 { return RefCountedContext::addRef(); }
static PageContext* PageContext::alloc ( PageDef pd,
bool  isMainPage,
bool  isExample 
)
inlinestatic

Definition at line 332 of file context.h.

332 { return new PageContext(pd,isMainPage,isExample); }
PageContext(PageDef *, bool isMainPage, bool isExample)
Definition: context.cpp:3681
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 3691 of file context.cpp.

3692 {
3693  return p->get(n);
3694 }
TemplateVariant get(const char *n) const
Definition: context.cpp:3587
std::void_t< T > n
Private * p
Definition: context.h:342
virtual int PageContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateStructIntf.

Definition at line 337 of file context.h.

337 { return RefCountedContext::release(); }

Member Data Documentation

Private* PageContext::p
private

Definition at line 342 of file context.h.


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