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

#include <context.h>

Inheritance diagram for NamespaceContext:
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 NamespaceContextalloc (NamespaceDef *nd)
 

Private Member Functions

 NamespaceContext (NamespaceDef *)
 
 ~NamespaceContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 272 of file context.h.

Constructor & Destructor Documentation

NamespaceContext::NamespaceContext ( NamespaceDef nd)
private

Definition at line 2901 of file context.cpp.

2901  : RefCountedContext("NamespaceContext")
2902 {
2903  p = new Private(nd);
2904 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:285
NamespaceContext::~NamespaceContext ( )
private

Definition at line 2906 of file context.cpp.

2907 {
2908  delete p;
2909 }
Private * p
Definition: context.h:285

Member Function Documentation

virtual int NamespaceContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateStructIntf.

Definition at line 279 of file context.h.

279 { return RefCountedContext::addRef(); }
static NamespaceContext* NamespaceContext::alloc ( NamespaceDef nd)
inlinestatic

Definition at line 275 of file context.h.

275 { return new NamespaceContext(nd); }
NamespaceContext(NamespaceDef *)
Definition: context.cpp:2901
TemplateVariant NamespaceContext::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 2911 of file context.cpp.

2912 {
2913  return p->get(n);
2914 }
std::void_t< T > n
TemplateVariant get(const char *n) const
Definition: context.cpp:2680
Private * p
Definition: context.h:285
virtual int NamespaceContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateStructIntf.

Definition at line 280 of file context.h.

280 { return RefCountedContext::release(); }

Member Data Documentation

Private* NamespaceContext::p
private

Definition at line 285 of file context.h.


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