My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::ConstIterator
createIterator () 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 9376 of file context.cpp.

References p, and Private.

Referenced by alloc().

: RefCountedContext("ArgumentListContext")
{
p = new Private;
}
ArgumentListContext::ArgumentListContext ( const ArgumentList al,
Definition def,
const QCString &  relPath 
)
private

Definition at line 9381 of file context.cpp.

References ArgumentListContext::Private::addArgument(), p, and Private.

: RefCountedContext("ArgumentListContext")
{
p = new Private;
if (list)
{
const Argument *arg;
for (ali.toFirst();(arg=ali.current());++ali)
{
p->addArgument(arg,def,relPath);
}
}
}
ArgumentListContext::~ArgumentListContext ( )
private

Definition at line 9396 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

virtual int ArgumentListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 1169 of file context.h.

References RefCountedContext::addRef().

static ArgumentListContext* ArgumentListContext::alloc ( )
inlinestatic
static ArgumentListContext* ArgumentListContext::alloc ( const ArgumentList al,
Definition def,
const QCString &  relPath 
)
inlinestatic

Definition at line 1162 of file context.h.

References ArgumentListContext().

{ 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 9407 of file context.cpp.

References GenericNodeListContext::at(), and p.

{
return p->at(index);
}
int ArgumentListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 9402 of file context.cpp.

References GenericNodeListContext::count(), and p.

{
return p->count();
}
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 9412 of file context.cpp.

References GenericNodeListContext::createIterator(), and p.

{
return p->createIterator();
}
virtual int ArgumentListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 1170 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* ArgumentListContext::p
private

Definition at line 1176 of file context.h.

Referenced by ArgumentListContext(), at(), count(), createIterator(), and ~ArgumentListContext().


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