Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgBWSet Class Reference

#include <SgBWSet.h>

List of all members.


Detailed Description

Pair of SgPointSet's indexed by color SG_BLACK, SG_WHITE.

Definition at line 17 of file SgBWSet.h.

Public Member Functions

 SgBWSet ()
 SgBWSet (const SgPointSet &black, const SgPointSet &white)
const SgPointSetoperator[] (SgBlackWhite c) const
SgPointSetoperator[] (SgBlackWhite c)
bool operator== (const SgBWSet &other) const
bool operator!= (const SgBWSet &other) const
SgBWSetoperator|= (const SgBWSet &other)
void Clear ()
bool BothEmpty () const
bool Disjoint () const
void AssertDisjoint () const
SgPointSet Both () const
bool OneContains (SgPoint p) const
bool BothContain (SgPoint p) const

Private Attributes

SgBWArray< SgPointSetm_set


Constructor & Destructor Documentation

SgBWSet::SgBWSet (  ) 

Definition at line 20 of file SgBWSet.h.

SgBWSet::SgBWSet ( const SgPointSet black,
const SgPointSet white 
)

Definition at line 24 of file SgBWSet.h.


Member Function Documentation

void SgBWSet::AssertDisjoint (  )  const

Definition at line 63 of file SgBWSet.h.

References Disjoint(), and SG_ASSERT.

SgPointSet SgBWSet::Both (  )  const

Definition at line 68 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.

bool SgBWSet::BothContain ( SgPoint  p  )  const

Definition at line 79 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.

bool SgBWSet::BothEmpty (  )  const

Definition at line 51 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.

void SgBWSet::Clear (  ) 

Definition at line 45 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.

bool SgBWSet::Disjoint (  )  const

Definition at line 58 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.

Referenced by AssertDisjoint().

bool SgBWSet::OneContains ( SgPoint  p  )  const

Definition at line 73 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.

bool SgBWSet::operator!= ( const SgBWSet other  )  const

Definition at line 95 of file SgBWSet.h.

References operator==().

bool SgBWSet::operator== ( const SgBWSet other  )  const

Definition at line 89 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.

Referenced by operator!=().

SgPointSet& SgBWSet::operator[] ( SgBlackWhite  c  ) 

Definition at line 34 of file SgBWSet.h.

References m_set.

const SgPointSet& SgBWSet::operator[] ( SgBlackWhite  c  )  const

Definition at line 29 of file SgBWSet.h.

References m_set.

SgBWSet & SgBWSet::operator|= ( const SgBWSet other  ) 

Definition at line 100 of file SgBWSet.h.

References m_set, SG_BLACK, and SG_WHITE.


Member Data Documentation

SgBWArray<SgPointSet> SgBWSet::m_set [private]

Definition at line 86 of file SgBWSet.h.

Referenced by Both(), BothContain(), BothEmpty(), Clear(), Disjoint(), OneContains(), operator==(), operator[](), and operator|=().


The documentation for this class was generated from the following file:


17 Jun 2010 Doxygen 1.4.7