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

#include <context.h>

Inheritance diagram for ArgumentListContext:
RefCountedContext TemplateListIntf

Classes

class  Private
 

Public Member Functions

virtual int count () const
 
virtual TemplateVariant at (int index) const
 
virtual TemplateListIntf::ConstIteratorcreateIterator () 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 TemplateListIntf
virtual ~TemplateListIntf ()
 

Static Public Member Functions

static ArgumentListContextalloc ()
 
static ArgumentListContextalloc (const ArgumentList *al, Definition *def, const QCString &relPath)
 

Private Member Functions

 ArgumentListContext ()
 
 ArgumentListContext (const ArgumentList *al, Definition *def, const QCString &relPath)
 
 ~ArgumentListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 1158 of file context.h.

Constructor & Destructor Documentation

ArgumentListContext::ArgumentListContext ( )
private

Definition at line 9361 of file context.cpp.

9361  : RefCountedContext("ArgumentListContext")
9362 {
9363  p = new Private;
9364 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
ArgumentListContext::ArgumentListContext ( const ArgumentList al,
Definition def,
const QCString relPath 
)
private

Definition at line 9366 of file context.cpp.

9367  : RefCountedContext("ArgumentListContext")
9368 {
9369  p = new Private;
9370  if (list)
9371  {
9372  ArgumentListIterator ali(*list);
9373  const Argument *arg;
9374  for (ali.toFirst();(arg=ali.current());++ali)
9375  {
9376  p->addArgument(arg,def,relPath);
9377  }
9378  }
9379 }
void addArgument(const Argument *arg, Definition *def, const QCString &relPath)
Definition: context.cpp:9355
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
This class contains the information about the argument of a function or template. ...
Definition: arguments.h:28
ArgumentListContext::~ArgumentListContext ( )
private

Definition at line 9381 of file context.cpp.

9382 {
9383  delete p;
9384 }

Member Function Documentation

virtual int ArgumentListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 1169 of file context.h.

1169 { return RefCountedContext::addRef(); }
static ArgumentListContext* ArgumentListContext::alloc ( )
inlinestatic

Definition at line 1161 of file context.h.

1161 { return new ArgumentListContext; }
static ArgumentListContext* ArgumentListContext::alloc ( const ArgumentList al,
Definition def,
const QCString relPath 
)
inlinestatic

Definition at line 1162 of file context.h.

1163  { return new ArgumentListContext(al,def,relPath); }
TemplateVariant ArgumentListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 9392 of file context.cpp.

9393 {
9394  return p->at(index);
9395 }
TemplateVariant at(int index) const
Definition: context.cpp:181
int ArgumentListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 9387 of file context.cpp.

9388 {
9389  return p->count();
9390 }
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * ArgumentListContext::createIterator ( ) const
virtual

Creates a new iterator for this list.

Note
the user should call delete on the returned pointer.

Implements TemplateListIntf.

Definition at line 9397 of file context.cpp.

9398 {
9399  return p->createIterator();
9400 }
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int ArgumentListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 1170 of file context.h.

1170 { return RefCountedContext::release(); }

Member Data Documentation

Private* ArgumentListContext::p
private

Definition at line 1176 of file context.h.


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