Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

UniMountTree::GenIter Class Reference

#include <unimounttreegen.h>

Inherits UniMountTree::MountIter.

Collaboration diagram for UniMountTree::GenIter:

[legend]
List of all members.

Detailed Description

An iterator over the generators that might provide a key starting with the nearest match.

eg. if you have something mounted on /foo and /foo/bar/baz, and you ask for a GenIter starting at /foo/bar/baz/boo/snoot, GenIter will give you /foo/bar/baz followed by /foo; MountIter will give you /foo/bar/baz, then /foo/bar, then /foo.

Definition at line 95 of file unimounttreegen.h.

Public Types

typedef UniMountTree::MountIter ParentClass

Public Member Functions

 GenIter (UniMountTree &root, const UniConfKey &key)
 ~GenIter ()
void rewind ()
bool next ()
UniConfGen * ptr () const
 WvIterStuff (UniConfGen)
int split () const
UniConfKey key () const
UniConfKey head () const
UniConfKey tail () const
UniMountTree * node () const


Member Typedef Documentation

typedef UniMountTree::MountIter UniMountTree::GenIter::ParentClass
 

Definition at line 103 of file unimounttreegen.h.


Constructor & Destructor Documentation

UniMountTree::GenIter::GenIter (  UniMountTree &  root,
const UniConfKey &  key
) 
 

Definition at line 389 of file unimounttreegen.cc.

References GenIter().

Referenced by GenIter().

UniMountTree::GenIter::~GenIter (   ) 
 

Definition at line 397 of file unimounttreegen.cc.


Member Function Documentation

UniConfKey UniMountTree::MountIter::head (   )  const [inline]
 

Definition at line 74 of file unimounttreegen.h.

UniConfKey UniMountTree::MountIter::key (   )  const [inline]
 

Definition at line 72 of file unimounttreegen.h.

bool UniMountTree::GenIter::next (   ) 
 

Reimplemented from UniMountTree::MountIter.

Definition at line 414 of file unimounttreegen.cc.

References UniMountTree::MountIter::next(), and UniMountTree::MountIter::node().

Referenced by UniMountTreeGen::exists(), UniMountTreeGen::get(), UniMountTreeGen::haschildren(), UniMountTreeGen::KeyIter::rewind(), and UniMountTreeGen::whichmount().

UniMountTree* UniMountTree::MountIter::node (   )  const [inline]
 

Definition at line 78 of file unimounttreegen.h.

UniConfGen* UniMountTree::GenIter::ptr (   )  const [inline]
 

Reimplemented from UniMountTree::MountIter.

Definition at line 113 of file unimounttreegen.h.

Referenced by UniMountTreeGen::exists(), UniMountTreeGen::get(), UniMountTreeGen::haschildren(), UniMountTreeGen::KeyIter::rewind(), and UniMountTreeGen::whichmount().

void UniMountTree::GenIter::rewind (   ) 
 

Reimplemented from UniMountTree::MountIter.

Definition at line 403 of file unimounttreegen.cc.

References UniMountTree::MountIter::rewind().

Referenced by UniMountTreeGen::exists(), UniMountTreeGen::get(), UniMountTreeGen::haschildren(), UniMountTreeGen::KeyIter::rewind(), and UniMountTreeGen::whichmount().

int UniMountTree::MountIter::split (   )  const [inline]
 

Definition at line 70 of file unimounttreegen.h.

UniConfKey UniMountTree::MountIter::tail (   )  const [inline]
 

Definition at line 76 of file unimounttreegen.h.

Referenced by UniMountTreeGen::exists(), UniMountTreeGen::get(), UniMountTreeGen::haschildren(), UniMountTreeGen::KeyIter::rewind(), and UniMountTreeGen::whichmount().

UniMountTree::GenIter::WvIterStuff (  UniConfGen   ) 
 


The documentation for this class was generated from the following files:
Generated on Tue Oct 5 01:09:33 2004 for WvStreams by doxygen 1.3.7