solarpowerlog trunk
CNestedCapaIterator Class Reference

#include <CNestedCapaIterator.h>

Inheritance diagram for CNestedCapaIterator:
Collaboration diagram for CNestedCapaIterator:

List of all members.

Public Member Functions

 CNestedCapaIterator (IInverterBase *b, IInverterBase *parent=NULL)
virtual bool HasNext ()
virtual pair< string,
CCapability * > 
GetNext ()
virtual ~CNestedCapaIterator ()

Detailed Description

COMMENT ME

TODO DOCUMENT ME!

Definition at line 47 of file CNestedCapaIterator.h.


Constructor & Destructor Documentation

CNestedCapaIterator::CNestedCapaIterator ( IInverterBase b,
IInverterBase parent = NULL 
)

Definition at line 41 of file CNestedCapaIterator.cpp.

CNestedCapaIterator::~CNestedCapaIterator ( ) [virtual]

Definition at line 49 of file CNestedCapaIterator.cpp.


Member Function Documentation

pair< string, CCapability * > CNestedCapaIterator::GetNext ( ) [virtual]

One could just delegate to the base class, but we want to make sure that we won't pass capas we have overriden

Warning:
do not use GetNext() without a prior HasNext()!

Reimplemented from ICapaIterator.

Definition at line 95 of file CNestedCapaIterator.cpp.

bool CNestedCapaIterator::HasNext ( ) [virtual]

Check if we have a next capa, if not, delegate to the parent, if exists. Set also the grandparent, if necessary to recurse all the way down.

Warning:
do not use GetNext() without a HasNext()!

Reimplemented from ICapaIterator.

Definition at line 59 of file CNestedCapaIterator.cpp.

Here is the call graph for this function:


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