My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
GenericNodeListContext Class Reference

standard template list implementation More...

Inheritance diagram for GenericNodeListContext:
TemplateListIntf AllMembersListContext::Private ArgumentListContext::Private ClassListContext::Private DirListContext::Private ExampleListContext::Private FileListContext::Private IncludeInfoListContext::Private InheritanceListContext::Private InheritedMemberInfoListContext::Private MemberGroupListContext::Private MemberListContext::Private ModuleListContext::Private NamespaceListContext::Private NestingContext::Private PageListContext::Private SearchIndicesContext::Private SymbolGroupListContext::Private SymbolIndicesContext::Private SymbolListContext::Private UsedFilesContext::Private

Public Member Functions

 GenericNodeListContext ()
 
int count () const
 
TemplateVariant at (int index) const
 
TemplateListIntf::ConstIteratorcreateIterator () const
 
void append (const TemplateVariant &ctn)
 
bool isEmpty () const
 
int addRef ()
 
int release ()
 
- Public Member Functions inherited from TemplateListIntf
virtual ~TemplateListIntf ()
 

Static Public Member Functions

static GenericNodeListContextalloc ()
 

Private Attributes

QList< TemplateVariantm_children
 
int m_refCount
 

Detailed Description

standard template list implementation

Definition at line 164 of file context.cpp.

Constructor & Destructor Documentation

GenericNodeListContext::GenericNodeListContext ( )
inline

Definition at line 167 of file context.cpp.

References m_children.

Referenced by alloc().

{
m_children.setAutoDelete(TRUE);
}

Member Function Documentation

int GenericNodeListContext::addRef ( )
inlinevirtual

Increase object's reference count

Implements TemplateListIntf.

Definition at line 203 of file context.cpp.

References m_refCount.

{
return ++m_refCount;
}
static GenericNodeListContext* GenericNodeListContext::alloc ( )
inlinestatic

Definition at line 171 of file context.cpp.

References GenericNodeListContext().

{
}
void GenericNodeListContext::append ( const TemplateVariant ctn)
inline
TemplateVariant GenericNodeListContext::at ( int  index) const
inlinevirtual
int GenericNodeListContext::count ( ) const
inlinevirtual
TemplateListIntf::ConstIterator* GenericNodeListContext::createIterator ( ) const
inlinevirtual
bool GenericNodeListContext::isEmpty ( ) const
inline

Definition at line 199 of file context.cpp.

References m_children.

{
return m_children.isEmpty();
}
int GenericNodeListContext::release ( )
inlinevirtual

Decreases object's referenc count, destroy object if 0

Implements TemplateListIntf.

Definition at line 207 of file context.cpp.

References count(), and m_refCount.

{
int count = --m_refCount;
if (count<=0)
{
delete this;
}
return count;
}

Member Data Documentation

QList<TemplateVariant> GenericNodeListContext::m_children
mutableprivate

Definition at line 217 of file context.cpp.

Referenced by append(), at(), count(), createIterator(), GenericNodeListContext(), and isEmpty().

int GenericNodeListContext::m_refCount
private

Definition at line 218 of file context.cpp.

Referenced by addRef(), and release().


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