#include <Appearance.h>

Public Member Functions |
|
| void | add (int index, bool newValue) |
| void | remove (int index) |
| void add | ( | int | index, |
| bool | newValue | ||
| ) | [inline] |
{
// Insert a bool at index and set it to newValue.
//
LayerVisible::iterator it((*this).begin());
for (int i = 0; it != (*this).end(); ++it, ++i)
{
if (i == index)
{
break;
}
}
(*this).insert(it, newValue);
}
| void remove | ( | int | index | ) | [inline] |
{
// Remove the bool at index.
//
LayerVisible::iterator it((*this).begin());
for (int i = 0; it != (*this).end(); ++it, ++i)
{
if (i == index)
{
(*this).erase(it);
break;
}
}
}