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

#include <context.h>

Inheritance diagram for FileContext:
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 FileContextalloc (FileDef *fd)
 

Private Member Functions

 FileContext (FileDef *)
 
 ~FileContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 291 of file context.h.

Constructor & Destructor Documentation

FileContext::FileContext ( FileDef fd)
private

Definition at line 3349 of file context.cpp.

3349  : RefCountedContext("FileContext")
3350 {
3351  p = new Private(fd);
3352 }
Private * p
Definition: context.h:304
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
FileContext::~FileContext ( )
private

Definition at line 3354 of file context.cpp.

3355 {
3356  delete p;
3357 }
Private * p
Definition: context.h:304

Member Function Documentation

virtual int FileContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateStructIntf.

Definition at line 298 of file context.h.

298 { return RefCountedContext::addRef(); }
static FileContext* FileContext::alloc ( FileDef fd)
inlinestatic

Definition at line 294 of file context.h.

294 { return new FileContext(fd); }
FileContext(FileDef *)
Definition: context.cpp:3349
TemplateVariant FileContext::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 3359 of file context.cpp.

3360 {
3361  return p->get(n);
3362 }
Private * p
Definition: context.h:304
std::void_t< T > n
TemplateVariant get(const char *n) const
Definition: context.cpp:2964
virtual int FileContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateStructIntf.

Definition at line 299 of file context.h.

299 { return RefCountedContext::release(); }

Member Data Documentation

Private* FileContext::p
private

Definition at line 304 of file context.h.


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