|
stmm-games-doc
0.32.0
|

Classes | |
| class | const_iterator |
| Coords iterator. More... | |
Public Member Functions | |
| Coords () noexcept | |
| Constructor. More... | |
| Coords (int32_t nAtLeastSize) noexcept | |
| Constructor. More... | |
| void | reInit () noexcept |
| Clears the instance. More... | |
| void | reInit (int32_t nAtLeastSize) noexcept |
| Clears the instance. More... | |
| int32_t | size () const noexcept |
| The number of (unique) coords in the instance. More... | |
| bool | isEmpty () const noexcept |
| Whether set is empty. More... | |
| void | add (int32_t nX, int32_t nY) noexcept |
| Add a coord. More... | |
| void | add (NPoint oXY) noexcept |
| Add a coord. More... | |
| void | addRect (int32_t nX, int32_t nY, int32_t nW, int32_t nH) noexcept |
| Add all cords in a rectangle. More... | |
| void | addRect (NRect oRect) noexcept |
| Add all cords in a rectangle. More... | |
| bool | contains (int32_t nX, int32_t nY) const noexcept |
| Whether the instance contains a coord. More... | |
| bool | contains (NPoint oXY) const noexcept |
| Whether the instance contains a coord. More... | |
| bool | remove (int32_t nX, int32_t nY) noexcept |
| Removes a coord if it exists. More... | |
| bool | remove (NPoint oXY) noexcept |
| Removes a coord if it exists. More... | |
| void | removeInRect (int32_t nX, int32_t nY, int32_t nW, int32_t nH) noexcept |
| Remove all coords within a rect. More... | |
| void | removeInRect (NRect oRect) noexcept |
| Add all cords in a rectangle. More... | |
| NRect | getMinMax () const noexcept |
| Get the smallest recangle containing all the coords. More... | |
| void | add (const Coords &oCoords) noexcept |
| Add another coords to this instance. More... | |
| void | remove (const Coords &oCoords) noexcept |
| Remove all the coords of another instance,. More... | |
| const_iterator | begin () const noexcept |
| Coords::const_iterator | end () const noexcept |
| bool | remove (const const_iterator &it) noexcept |
Protected Member Functions | |
| Coords (bool bTileCoords) noexcept | |
| Coords (bool bTileCoords, int32_t nAtLeastSize) noexcept | |
| const_iterator | find (int32_t nX, int32_t nY) const noexcept |
| Returns the iterator. More... | |
| int32_t & | getOrCreate (NPoint oXY) noexcept |
| void | clearData (int32_t nAtLeastSize) noexcept |
Coords class.
Beware! This class is final, only meant to be subclassed by TileCoords.
|
noexcept |
Constructor.
|
explicitnoexcept |
Constructor.
| nAtLeastSize | The indicative minimum number of unique values. |
|
explicitprotectednoexcept |
|
protectednoexcept |
|
noexcept |
Add a coord.
Might invalidate iterators.
| nX | The x. |
| nY | The y. |
|
noexcept |
Add a coord.
Might invalidate iterators.
| oXY | The coord to add. |
|
noexcept |
Add another coords to this instance.
| oCoords | Thee coords to add. |
|
noexcept |
Add all cords in a rectangle.
Might invalidate iterators.
Example: add(1,2,2,1) adds coords (1,2), (2,2).
| nX | The x. |
| nY | The y. |
| nW | The width. Must be > 0. |
| nH | The height. Must be > 0. |
|
noexcept |
Add all cords in a rectangle.
See addRect(int32_t nX, int32_t nY, int32_t nW, int32_t nH).
| oRect | The rectangle. |
|
inlinenoexcept |
|
protectednoexcept |
|
noexcept |
Whether the instance contains a coord.
| nX | The x. |
| nY | The y. |
|
noexcept |
Whether the instance contains a coord.
| oXY | The coord. |
|
inlinenoexcept |
|
protectednoexcept |
Returns the iterator.
| nX | The x. |
| nY | The y. |
|
noexcept |
Get the smallest recangle containing all the coords.
|
protectednoexcept |
|
noexcept |
Whether set is empty.
|
noexcept |
Clears the instance.
All iterators become invalid.
|
noexcept |
Clears the instance.
All iterators become invalid.
| nAtLeastSize | The indicative minimum number of unique values. |
|
noexcept |
Removes a coord if it exists.
| nX | The x. |
| nY | The y. |
|
noexcept |
Removes a coord if it exists.
| oXY | The coord. |
|
noexcept |
Remove all the coords of another instance,.
| oCoords | The coords to remove, |
|
noexcept |
|
noexcept |
Remove all coords within a rect.
| nX | The x. |
| nY | The y. |
| nW | The width. Must be > 0. |
| nH | The height. Must be > 0. |
|
noexcept |
Add all cords in a rectangle.
See removeInRect(int32_t nX, int32_t nY, int32_t nW, int32_t nH).
| oRect | The rectangle. |
|
noexcept |
The number of (unique) coords in the instance.
1.8.13