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

References p, and Private.

Referenced by alloc().

: RefCountedContext("MemberListContext")
{
p = new Private;
}
MemberListContext::MemberListContext ( const MemberList ml)
private

Definition at line 8494 of file context.cpp.

References MemberListContext::Private::addMember(), MemberDef::isBriefSectionVisible(), MemberDef::isDetailedSectionLinkable(), MemberList::listType(), MemberListType_detailedLists, p, and Private.

: RefCountedContext("MemberListContext")
{
p = new Private;
if (list)
{
bool details = list->listType()&MemberListType_detailedLists;
MemberListIterator mli(*list);
MemberDef *md;
for (mli.toFirst();(md=mli.current());++mli)
{
if ((md->isBriefSectionVisible() && !details) ||
(md->isDetailedSectionLinkable() && details)
)
{
p->addMember(md);
}
}
}
}
MemberListContext::MemberListContext ( MemberSDict ml,
bool  doSort 
)
private

Definition at line 8514 of file context.cpp.

References MemberListContext::Private::addMember(), SDict< MemberDef >::Iterator, p, Private, and SDict< T >::sort().

: RefCountedContext("MemberListContext")
{
p = new Private;
if (list)
{
if (doSort)
{
list->sort();
}
MemberDef *md;
for (it.toFirst();(md=it.current());++it)
{
p->addMember(md);
}
}
}
MemberListContext::~MemberListContext ( )
private

Definition at line 8532 of file context.cpp.

References p.

{
delete p;
}

Member Function Documentation

virtual int MemberListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 965 of file context.h.

References RefCountedContext::addRef().

static MemberListContext* MemberListContext::alloc ( )
inlinestatic
static MemberListContext* MemberListContext::alloc ( const MemberList ml)
inlinestatic

Definition at line 956 of file context.h.

References MemberListContext().

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

Definition at line 958 of file context.h.

References MemberListContext().

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

Returns the element at index position index.

Implements TemplateListIntf.

Definition at line 8543 of file context.cpp.

References GenericNodeListContext::at(), and p.

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

Returns the number of elements in the list

Implements TemplateListIntf.

Definition at line 8538 of file context.cpp.

References GenericNodeListContext::count(), and p.

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

References GenericNodeListContext::createIterator(), and p.

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

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 966 of file context.h.

References RefCountedContext::release().

Member Data Documentation

Private* MemberListContext::p
private

Definition at line 973 of file context.h.

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


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