Iterator over objects hierarchy
More...
#include <dabc/Iterator.h>
Iterator over objects hierarchy
Definition at line 36 of file Iterator.h.
◆ Iterator() [1/2]
dabc::Iterator::Iterator |
( |
Reference |
ref, |
|
|
int |
maxlevel = -1 |
|
) |
| |
Limit how deep iterator allowed to go inside hierarchy.
Definition at line 20 of file Iterator.cxx.
◆ Iterator() [2/2]
dabc::Iterator::Iterator |
( |
Object * |
topfolder, |
|
|
int |
maxlevel = -1 |
|
) |
| |
◆ ~Iterator()
dabc::Iterator::~Iterator |
( |
| ) |
|
|
virtual |
◆ next()
◆ current()
Object* dabc::Iterator::current |
( |
| ) |
const |
|
inline |
◆ ref()
◆ level()
unsigned dabc::Iterator::level |
( |
| ) |
const |
|
inline |
◆ parent()
Returns parents of current object.
- Parameters
-
[in] | lvl | - level of parent, 0 - top-level folder, 1 - first-level folder and so on |
- Returns
- pointer on parent object
Definition at line 91 of file Iterator.cxx.
◆ fullname()
const char* dabc::Iterator::fullname |
( |
| ) |
const |
|
inline |
◆ name()
const char* dabc::Iterator::name |
( |
| ) |
const |
|
inline |
◆ next_cast()
template<class T >
bool dabc::Iterator::next_cast |
( |
T *& |
ptr, |
|
|
bool |
goinside = true |
|
) |
| |
|
inline |
◆ PrintHieararchy()
void dabc::Iterator::PrintHieararchy |
( |
Reference |
ref | ) |
|
|
static |
◆ fTop
◆ fCurrent
◆ fIndexes
std::vector<unsigned> dabc::Iterator::fIndexes |
|
protected |
◆ fFolders
◆ fFullName
std::string dabc::Iterator::fFullName |
|
protected |
◆ fMaxLevel
int dabc::Iterator::fMaxLevel |
|
protected |
The documentation for this class was generated from the following files: