Developer Documentation
Loading...
Searching...
No Matches
PluginFunctions::ObjectRange Class Reference

Range adapter for ObjectIterator. More...

#include <OpenFlipper/BasePlugin/PluginFunctions.hh>

Public Member Functions

 ObjectRange (IteratorRestriction _restriction=ALL_OBJECTS, DataType _dataType=DATA_ALL)
 
ObjectIterator begin () const
 
ObjectIterator end () const
 

Private Attributes

IteratorRestriction restriction_
 
DataType dataType_
 

Detailed Description

Range adapter for ObjectIterator.

An iterator range suitable for iterating over objects using a C++11 range-based for loop.

Note
Use the PluginFunction::objects factory function as a shorthand for creating object ranges.

Definition at line 604 of file PluginFunctions.hh.

Constructor & Destructor Documentation

◆ ObjectRange()

PluginFunctions::ObjectRange::ObjectRange ( IteratorRestriction  _restriction = ALL_OBJECTS,
DataType  _dataType = DATA_ALL 
)
inlineexplicit

Definition at line 606 of file PluginFunctions.hh.

Member Function Documentation

◆ begin()

ObjectIterator PluginFunctions::ObjectRange::begin ( ) const
inline

Definition at line 612 of file PluginFunctions.hh.

◆ end()

ObjectIterator PluginFunctions::ObjectRange::end ( ) const
inline

Definition at line 616 of file PluginFunctions.hh.

Member Data Documentation

◆ dataType_

DataType PluginFunctions::ObjectRange::dataType_
private

Definition at line 622 of file PluginFunctions.hh.

◆ restriction_

IteratorRestriction PluginFunctions::ObjectRange::restriction_
private

Definition at line 621 of file PluginFunctions.hh.


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