Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Plugger::Iter Class Reference

#include <elm/sys/Plugger.h>

+ Inheritance diagram for Plugger::Iter:

Public Member Functions

 Iter (Plugger &_plugger, bool end=false)
 
 ~Iter (void)
 
bool ended (void) const
 
String item (void) const
 
void next (void)
 
Pluginplug (void) const
 
Path path (void) const
 
- Public Member Functions inherited from PreIterator< Iter, String >
bool operator() () const
 
bool operator! () const
 
String operator* () const
 
String operator-> () const
 
Iter & operator++ ()
 
void operator++ (int)
 
bool operator== (const Iter &i) const
 
bool operator!= (const Iter &i) const
 

Additional Inherited Members

- Public Types inherited from PreIterator< Iter, String >
typedef String t
 
typedef String return_t
 

Constructor & Destructor Documentation

◆ Iter()

Iter ( Plugger _plugger,
bool  end = false 
)

Build a new iterator.

Parameters
pluggerUsed plugger.
boolIf true, builds an end iterator (default to false).

◆ ~Iter()

~Iter ( void  )

Member Function Documentation

◆ ended()

bool ended ( void  ) const

Test if the iteration is ended.

Returns
True if it is ended.

◆ item()

String item ( void  ) const

Get the current plugin name.

Returns
Current plugin name.

References String::length(), Path::namePart(), and String::substring().

◆ next()

void next ( void  )

Go to the next plugin.

◆ path()

Path path ( void  ) const

Get the path of the current plug-in.

Returns
Plug-in path.

◆ plug()

Plugin * plug ( void  ) const

Plug the current plugin.

Returns
Matching plugin.

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