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::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 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 8824 of file context.cpp.

8824  : RefCountedContext("MemberGroupListContext")
8825 {
8826  p = new Private;
8827 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
MemberGroupListContext::MemberGroupListContext ( Definition def,
const QCString relPath,
const MemberGroupList list 
)
private

Definition at line 8829 of file context.cpp.

8829  : RefCountedContext("MemberGroupListContext")
8830 {
8831  p = new Private;
8832  if (list)
8833  {
8834  MemberGroupListIterator mgli(*list);
8835  MemberGroup *mg;
8836  for (;(mg=mgli.current());++mgli)
8837  {
8838  p->addMemberGroup(def,relPath,mg);
8839  }
8840  }
8841 }
void addMemberGroup(Definition *def, const QCString &relPath, const MemberGroup *mg)
Definition: context.cpp:8818
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
static constexpr double mg
Definition: Units.h:145
MemberGroupListContext::MemberGroupListContext ( Definition def,
const QCString relPath,
const MemberGroupSDict mgDict,
bool  subGrouping 
)
private

Definition at line 8843 of file context.cpp.

8843  : RefCountedContext("MemberGroupListContext")
8844 {
8845  p = new Private;
8846  if (dict)
8847  {
8848  MemberGroupSDict::Iterator di(*dict);
8849  const MemberGroup *mg;
8850  for (di.toFirst();(mg=di.current());++di)
8851  {
8852  if (!mg->allMembersInSameSection() || !subGrouping)
8853  {
8854  p->addMemberGroup(def,relPath,mg);
8855  }
8856  }
8857  }
8858 }
void addMemberGroup(Definition *def, const QCString &relPath, const MemberGroup *mg)
Definition: context.cpp:8818
friend class Iterator
Definition: sortdict.h:598
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
static constexpr double mg
Definition: Units.h:145
bool allMembersInSameSection() const
Definition: membergroup.h:67
MemberGroupListContext::~MemberGroupListContext ( )
private

Definition at line 8860 of file context.cpp.

8861 {
8862  delete p;
8863 }

Member Function Documentation

virtual int MemberGroupListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 1013 of file context.h.

1013 { return RefCountedContext::addRef(); }
static MemberGroupListContext* MemberGroupListContext::alloc ( )
inlinestatic

Definition at line 1002 of file context.h.

1003  { return new MemberGroupListContext; }
static MemberGroupListContext* MemberGroupListContext::alloc ( Definition def,
const QCString relPath,
const MemberGroupList list 
)
inlinestatic

Definition at line 1004 of file context.h.

1005  { 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.

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

8872 {
8873  return p->at(index);
8874 }
TemplateVariant at(int index) const
Definition: context.cpp:181
int MemberGroupListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 8866 of file context.cpp.

8867 {
8868  return p->count();
8869 }
int count() const
Definition: context.cpp:177
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 8876 of file context.cpp.

8877 {
8878  return p->createIterator();
8879 }
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
virtual int MemberGroupListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 1014 of file context.h.

1014 { return RefCountedContext::release(); }

Member Data Documentation

Private* MemberGroupListContext::p
private

Definition at line 1021 of file context.h.


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