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

#include <context.h>

Inheritance diagram for MemberListContext:
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 MemberListContextalloc ()
 
static MemberListContextalloc (const MemberList *ml)
 
static MemberListContextalloc (MemberSDict *ml, bool doSort)
 

Private Member Functions

 MemberListContext ()
 
 MemberListContext (const MemberList *ml)
 
 MemberListContext (MemberSDict *ml, bool doSort)
 
 ~MemberListContext ()
 

Private Attributes

Privatep
 

Detailed Description

Definition at line 951 of file context.h.

Constructor & Destructor Documentation

MemberListContext::MemberListContext ( )
private

Definition at line 8474 of file context.cpp.

8474  : RefCountedContext("MemberListContext")
8475 {
8476  p = new Private;
8477 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:973
MemberListContext::MemberListContext ( const MemberList ml)
private

Definition at line 8479 of file context.cpp.

8479  : RefCountedContext("MemberListContext")
8480 {
8481  p = new Private;
8482  if (list)
8483  {
8484  bool details = list->listType()&MemberListType_detailedLists;
8485  MemberListIterator mli(*list);
8486  MemberDef *md;
8487  for (mli.toFirst();(md=mli.current());++mli)
8488  {
8489  if ((md->isBriefSectionVisible() && !details) ||
8490  (md->isDetailedSectionLinkable() && details)
8491  )
8492  {
8493  p->addMember(md);
8494  }
8495  }
8496  }
8497 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
bool isBriefSectionVisible() const
Definition: memberdef.cpp:1289
bool isDetailedSectionLinkable() const
Definition: memberdef.cpp:1852
Private * p
Definition: context.h:973
void addMember(MemberDef *md)
Definition: context.cpp:8468
MemberListContext::MemberListContext ( MemberSDict ml,
bool  doSort 
)
private

Definition at line 8499 of file context.cpp.

8499  : RefCountedContext("MemberListContext")
8500 {
8501  p = new Private;
8502  if (list)
8503  {
8504  if (doSort)
8505  {
8506  list->sort();
8507  }
8508  MemberSDict::Iterator it(*list);
8509  MemberDef *md;
8510  for (it.toFirst();(md=it.current());++it)
8511  {
8512  p->addMember(md);
8513  }
8514  }
8515 }
Definition: types.h:26
RefCountedContext(const char *)
Definition: context.h:109
Private * p
Definition: context.h:973
void addMember(MemberDef *md)
Definition: context.cpp:8468
friend class Iterator
Definition: sortdict.h:289
MemberListContext::~MemberListContext ( )
private

Definition at line 8517 of file context.cpp.

8518 {
8519  delete p;
8520 }
Private * p
Definition: context.h:973

Member Function Documentation

virtual int MemberListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 965 of file context.h.

965 { return RefCountedContext::addRef(); }
static MemberListContext* MemberListContext::alloc ( )
inlinestatic

Definition at line 954 of file context.h.

955  { return new MemberListContext; }
static MemberListContext* MemberListContext::alloc ( const MemberList ml)
inlinestatic

Definition at line 956 of file context.h.

957  { return new MemberListContext(ml); }
static MemberListContext* MemberListContext::alloc ( MemberSDict ml,
bool  doSort 
)
inlinestatic

Definition at line 958 of file context.h.

959  { return new MemberListContext(ml,doSort); }
TemplateVariant MemberListContext::at ( int  index) const
virtual

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 8528 of file context.cpp.

8529 {
8530  return p->at(index);
8531 }
Private * p
Definition: context.h:973
TemplateVariant at(int index) const
Definition: context.cpp:181
int MemberListContext::count ( ) const
virtual

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 8523 of file context.cpp.

8524 {
8525  return p->count();
8526 }
Private * p
Definition: context.h:973
int count() const
Definition: context.cpp:177
TemplateListIntf::ConstIterator * MemberListContext::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 8533 of file context.cpp.

8534 {
8535  return p->createIterator();
8536 }
TemplateListIntf::ConstIterator * createIterator() const
Definition: context.cpp:190
Private * p
Definition: context.h:973
virtual int MemberListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 966 of file context.h.

966 { return RefCountedContext::release(); }

Member Data Documentation

Private* MemberListContext::p
private

Definition at line 973 of file context.h.


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