Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ModuleContext Class Reference

#include <context.h>

Inheritance diagram for ModuleContext:
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 ModuleContextalloc (GroupDef *gd)
 

Private Member Functions

 ModuleContext (GroupDef *)
 
 ~ModuleContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 368 of file context.h.

Constructor & Destructor Documentation

ModuleContext::ModuleContext ( GroupDef gd)
private

Definition at line 5654 of file context.cpp.

5654  : RefCountedContext("ModuleContext")
5655 {
5656  p = new Private(gd);
5657 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:381
ModuleContext::~ModuleContext ( )
private

Definition at line 5659 of file context.cpp.

5660 {
5661  delete p;
5662 }
Private * p
Definition: context.h:381

Member Function Documentation

virtual int ModuleContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateStructIntf.

Definition at line 375 of file context.h.

375 { return RefCountedContext::addRef(); }
static ModuleContext* ModuleContext::alloc ( GroupDef gd)
inlinestatic

Definition at line 371 of file context.h.

371 { return new ModuleContext(gd); }
ModuleContext(GroupDef *)
Definition: context.cpp:5654
TemplateVariant ModuleContext::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 5664 of file context.cpp.

5665 {
5666  return p->get(n);
5667 }
TemplateVariant get(const char *n) const
Definition: context.cpp:5175
std::void_t< T > n
Private * p
Definition: context.h:381
virtual int ModuleContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateStructIntf.

Definition at line 376 of file context.h.

376 { return RefCountedContext::release(); }

Member Data Documentation

Private* ModuleContext::p
private

Definition at line 381 of file context.h.


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