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
MemberGroupListContext Class Reference

#include <context.h>

Inheritance diagram for MemberGroupListContext:
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 MemberGroupListContextalloc ()
 
static MemberGroupListContextalloc (Definition *def, const QCString &relPath, const MemberGroupList *list)
 
static MemberGroupListContextalloc (Definition *def, const QCString &relPath, const MemberGroupSDict *dict, bool subGrouping)
 

Private Member Functions

 MemberGroupListContext ()
 
 MemberGroupListContext (Definition *def, const QCString &relPath, const MemberGroupList *list)
 
 MemberGroupListContext (Definition *def, const QCString &relPath, const MemberGroupSDict *mgDict, bool subGrouping)
 
 ~MemberGroupListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 999 of file context.h.

Constructor & Destructor Documentation

MemberGroupListContext::MemberGroupListContext ( )
private

Definition at line 8839 of file context.cpp.

References p, and Private.

Referenced by alloc().

: RefCountedContext("MemberGroupListContext")
{
p = new Private;
}
MemberGroupListContext::MemberGroupListContext ( Definition def,
const QCString &  relPath,
const MemberGroupList list 
)
private

Definition at line 8844 of file context.cpp.

References MemberGroupListContext::Private::addMemberGroup(), p, and Private.

: RefCountedContext("MemberGroupListContext")
{
p = new Private;
if (list)
{
for (;(mg=mgli.current());++mgli)
{
p->addMemberGroup(def,relPath,mg);
}
}
}
MemberGroupListContext::MemberGroupListContext ( Definition def,
const QCString &  relPath,
const MemberGroupSDict mgDict,
bool  subGrouping 
)
private

Definition at line 8858 of file context.cpp.

References MemberGroupListContext::Private::addMemberGroup(), MemberGroup::allMembersInSameSection(), SIntDict< MemberGroup >::Iterator, p, and Private.

: RefCountedContext("MemberGroupListContext")
{
p = new Private;
if (dict)
{
const MemberGroup *mg;
for (di.toFirst();(mg=di.current());++di)
{
if (!mg->allMembersInSameSection() || !subGrouping)
{
p->addMemberGroup(def,relPath,mg);
}
}
}
}
MemberGroupListContext::~MemberGroupListContext ( )
private

Definition at line 8875 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

virtual int MemberGroupListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 1013 of file context.h.

References RefCountedContext::addRef().

static MemberGroupListContext* MemberGroupListContext::alloc ( )
inlinestatic
static MemberGroupListContext* MemberGroupListContext::alloc ( Definition def,
const QCString &  relPath,
const MemberGroupList list 
)
inlinestatic

Definition at line 1004 of file context.h.

References MemberGroupListContext().

{ return new MemberGroupListContext(def,relPath,list); }
static MemberGroupListContext* MemberGroupListContext::alloc ( Definition def,
const QCString &  relPath,
const MemberGroupSDict dict,
bool  subGrouping 
)
inlinestatic

Definition at line 1006 of file context.h.

References MemberGroupListContext().

{ return new MemberGroupListContext(def,relPath,dict,subGrouping); }
TemplateVariant MemberGroupListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 8886 of file context.cpp.

References GenericNodeListContext::at(), and p.

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

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 8881 of file context.cpp.

References GenericNodeListContext::count(), and p.

{
return p->count();
}
TemplateListIntf::ConstIterator * MemberGroupListContext::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 8891 of file context.cpp.

References GenericNodeListContext::createIterator(), and p.

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

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 1014 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* MemberGroupListContext::p
private

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