#include <SgPointSet.h>
A SgSimpleSet is like a SgPointSet, except that it's more efficient at marking points and testing for marked points, while taking more time to clear, and not providing bit operations on the whole set.
Definition at line 526 of file SgPointSet.h.
Public Member Functions | |
SgSimpleSet () | |
void | Include (SgPoint p) |
void | Exclude (SgPoint p) |
bool | Contains (SgPoint p) const |
void | Clear () |
bool | IsEmpty () const |
bool | NonEmpty () const |
void | GetPoints (SgPointSet *points) const |
bool | NewMark (SgPoint p) |
Private Attributes | |
bool | m_mark [SG_MAXPOINT] |
Marked points. |
SgSimpleSet::SgSimpleSet | ( | ) |
void SgSimpleSet::Clear | ( | ) |
Definition at line 575 of file SgPointSet.h.
References m_mark, and SG_MAXPOINT.
Referenced by SgSimpleSet().
bool SgSimpleSet::Contains | ( | SgPoint | p | ) | const |
Definition at line 570 of file SgPointSet.h.
References m_mark.
Referenced by GetPoints(), IsEmpty(), and NewMark().
void SgSimpleSet::Exclude | ( | SgPoint | p | ) |
void SgSimpleSet::GetPoints | ( | SgPointSet * | points | ) | const |
Definition at line 593 of file SgPointSet.h.
References SgPointSet::Clear(), Contains(), SgPointSet::Include(), and SG_MAXPOINT.
void SgSimpleSet::Include | ( | SgPoint | p | ) |
Definition at line 558 of file SgPointSet.h.
References m_mark, and SG_ASSERT_BOARDRANGE.
Referenced by NewMark().
bool SgSimpleSet::IsEmpty | ( | ) | const |
Definition at line 580 of file SgPointSet.h.
References Contains(), and SG_MAXPOINT.
Referenced by NonEmpty().
bool SgSimpleSet::NewMark | ( | SgPoint | p | ) |
bool SgSimpleSet::NonEmpty | ( | ) | const |
bool SgSimpleSet::m_mark[SG_MAXPOINT] [private] |
Marked points.
Definition at line 549 of file SgPointSet.h.
Referenced by Clear(), Contains(), Exclude(), and Include().