Added 'Visited' flag functions
This commit is contained in:
parent
fca4bdc2d5
commit
d3c1165fe6
|
@ -24,6 +24,9 @@
|
|||
History
|
||||
|
||||
$Log: not supported by cvs2svn $
|
||||
Revision 1.2 2004/04/03 13:33:55 cignoni
|
||||
Missing include
|
||||
|
||||
Revision 1.1 2004/03/29 08:36:26 cignoni
|
||||
First working version!
|
||||
|
||||
|
@ -175,10 +178,12 @@ public:
|
|||
bool IsW() const {return (Flags() & NOTWRITE)== 0;}
|
||||
/// This funcion checks whether the vertex is both readable and modifiable
|
||||
bool IsRW() const {return (Flags() & (NOTREAD | NOTWRITE)) == 0;}
|
||||
/// checks if the vertex is Modified
|
||||
/// checks if the vertex is Selected
|
||||
bool IsS() const {return (Flags() & SELECTED) != 0;}
|
||||
/// checks if the vertex is readable
|
||||
/// checks if the vertex is a border one
|
||||
bool IsB() const {return (Flags() & BORDER) != 0;}
|
||||
/// checks if the vertex Has been visited
|
||||
bool IsV() const {return (Flags() & VISITED) != 0;}
|
||||
|
||||
/** Set the flag value
|
||||
@param flagp Valore da inserire nel flag
|
||||
|
@ -208,6 +213,8 @@ public:
|
|||
void ClearS() {Flags() &= ~SELECTED;}
|
||||
void SetB() {Flags() |=BORDER;}
|
||||
void ClearB() {Flags() &=~BORDER;}
|
||||
void SetV() {Flags() |=VISITED;}
|
||||
void ClearV() {Flags() &=~VISITED;}
|
||||
|
||||
/// Return the first bit that is not still used
|
||||
static int &LastBitFlag()
|
||||
|
|
Loading…
Reference in New Issue