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

#include <context.h>

Inheritance diagram for ClassContext:
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 ClassContextalloc (ClassDef *cd)
 

Private Member Functions

 ClassContext (ClassDef *)
 
 ~ClassContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 253 of file context.h.

Constructor & Destructor Documentation

ClassContext::ClassContext ( ClassDef cd)
private

Definition at line 2627 of file context.cpp.

2627  : RefCountedContext("ClassContext")
2628 {
2629  //printf("ClassContext::ClassContext(%s)\n",cd?cd->name().data():"<none>");
2630  p = new Private(cd);
2631 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:266
ClassContext::~ClassContext ( )
private

Definition at line 2633 of file context.cpp.

2634 {
2635  delete p;
2636 }
Private * p
Definition: context.h:266

Member Function Documentation

virtual int ClassContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateStructIntf.

Definition at line 260 of file context.h.

260 { return RefCountedContext::addRef(); }
static ClassContext* ClassContext::alloc ( ClassDef cd)
inlinestatic

Definition at line 256 of file context.h.

256 { return new ClassContext(cd); }
ClassContext(ClassDef *)
Definition: context.cpp:2627
TemplateVariant ClassContext::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 2638 of file context.cpp.

2639 {
2640  return p->get(n);
2641 }
std::void_t< T > n
TemplateVariant get(const char *n) const
Definition: context.cpp:1859
Private * p
Definition: context.h:266
virtual int ClassContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateStructIntf.

Definition at line 261 of file context.h.

261 { return RefCountedContext::release(); }

Member Data Documentation

Private* ClassContext::p
private

Definition at line 266 of file context.h.


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