Another STLification of a list.

This commit is contained in:
2025-08-09 11:20:20 -04:00
parent 8549ca489f
commit 4ce4fac659
2 changed files with 14 additions and 28 deletions

View File

@ -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 ()