Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

gugr::vertex Struct Reference

#include <gugr_basics.h>

List of all members.

Public Methods

 vertex ()
 vertex (const vertex &other)
 vertex (const point2< rational > &av)
 ~vertex ()
vertex & operator= (const vertex &other)
point2< rational > & v () const

Public Attributes

vertex_repm_rep

Friends

bool operator== (const vertex &a, const vertex &b)


Constructor & Destructor Documentation

gugr::vertex::vertex   [inline]
 

Definition at line 157 of file gugr_basics.h.

Referenced by operator=(), and vertex().

00158   { 
00159     m_rep = NULL;
00160   }

gugr::vertex::vertex const vertex &    other [inline, explicit]
 

Definition at line 162 of file gugr_basics.h.

References vertex().

00163   {
00164     if( other.m_rep ) other.m_rep->m_refcount++;
00165     m_rep = other.m_rep;
00166   }

gugr::vertex::vertex const point2< rational > &    av [inline, explicit]
 

Definition at line 168 of file gugr_basics.h.

00169   {
00170     m_rep = new vertex_rep( av );
00171   }

gugr::vertex::~vertex   [inline]
 

Definition at line 173 of file gugr_basics.h.

00174   { 
00175     if( (m_rep != NULL) && (--m_rep->m_refcount == 0) ) delete m_rep;
00176   }


Member Function Documentation

vertex& gugr::vertex::operator= const vertex &    other [inline]
 

Definition at line 178 of file gugr_basics.h.

References vertex().

00178                                             {
00179     if( other.m_rep ) other.m_rep->m_refcount++;
00180     if( (m_rep != NULL) && (--m_rep->m_refcount == 0) ) {
00181       delete m_rep;
00182     }
00183     m_rep = other.m_rep;
00184     return( *this );    
00185   }

point2<rational>& gugr::vertex::v   const [inline]
 

Definition at line 187 of file gugr_basics.h.

00187 { return(m_rep->v); }


Friends And Related Function Documentation

bool operator== const vertex &    a,
const vertex &    b
[friend]
 

Definition at line 190 of file gugr_basics.h.

00191 {
00192   return( a.m_rep == b.m_rep );
00193 }


Member Data Documentation

vertex_rep* gugr::vertex::m_rep
 

Definition at line 155 of file gugr_basics.h.


The documentation for this struct was generated from the following file:
Generated on Mon Jan 21 04:17:55 2002 for GUL 0.6 - Geometry Utility Library by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001