Another STLification of a list.
This commit is contained in:
21
dw/fltkui.hh
21
dw/fltkui.hh
@ -401,32 +401,25 @@ private:
|
||||
public dw::core::ui::RadioButtonResource::GroupIterator
|
||||
{
|
||||
private:
|
||||
lout::container::typed::Iterator <FltkRadioButtonResource> it;
|
||||
std::list< FltkRadioButtonResource * >::iterator pos;
|
||||
std::list< FltkRadioButtonResource * >::iterator last;
|
||||
|
||||
public:
|
||||
inline FltkGroupIterator (lout::container::typed::List
|
||||
<FltkRadioButtonResource>
|
||||
*list)
|
||||
{ it = list->iterator (); }
|
||||
inline FltkGroupIterator (std::list< FltkRadioButtonResource * > &list )
|
||||
{ pos = list.begin (); last = list.end(); }
|
||||
|
||||
bool hasNext ();
|
||||
dw::core::ui::RadioButtonResource *getNext ();
|
||||
void unref ();
|
||||
};
|
||||
|
||||
lout::container::typed::List <FltkRadioButtonResource> *list;
|
||||
|
||||
protected:
|
||||
~Group ();
|
||||
std::list< FltkRadioButtonResource * > list;
|
||||
|
||||
public:
|
||||
Group (FltkRadioButtonResource *radioButtonResource);
|
||||
|
||||
inline lout::container::typed::Iterator <FltkRadioButtonResource>
|
||||
iterator ()
|
||||
{
|
||||
return list->iterator ();
|
||||
}
|
||||
auto begin () { return list.begin(); }
|
||||
auto end () { return list.end(); }
|
||||
|
||||
inline dw::core::ui::RadioButtonResource::GroupIterator
|
||||
*groupIterator ()
|
||||
|
||||
Reference in New Issue
Block a user