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

#include <context.h>

Inheritance diagram for MemberContext:
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 MemberContextalloc (MemberDef *md)
 

Private Member Functions

 MemberContext (MemberDef *)
 
 ~MemberContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 348 of file context.h.

Constructor & Destructor Documentation

MemberContext::MemberContext ( MemberDef md)
private

Definition at line 5099 of file context.cpp.

5099  : RefCountedContext("MemberContext")
5100 {
5101  p = new Private(md);
5102 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:361
MemberContext::~MemberContext ( )
private

Definition at line 5104 of file context.cpp.

5105 {
5106  delete p;
5107 }
Private * p
Definition: context.h:361

Member Function Documentation

virtual int MemberContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateStructIntf.

Definition at line 355 of file context.h.

355 { return RefCountedContext::addRef(); }
static MemberContext* MemberContext::alloc ( MemberDef md)
inlinestatic

Definition at line 351 of file context.h.

351 { return new MemberContext(md); }
MemberContext(MemberDef *)
Definition: context.cpp:5099
TemplateVariant MemberContext::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 5109 of file context.cpp.

5110 {
5111  return p->get(n);
5112 }
std::void_t< T > n
Private * p
Definition: context.h:361
TemplateVariant get(const char *n) const
Definition: context.cpp:4007
virtual int MemberContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateStructIntf.

Definition at line 356 of file context.h.

356 { return RefCountedContext::release(); }

Member Data Documentation

Private* MemberContext::p
private

Definition at line 361 of file context.h.


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