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

gugr::graph_edge Struct Reference

#include <gugr_basics.h>

List of all members.

Public Methods

 graph_edge ()
 graph_edge (graph_vertex *v0, graph_vertex *v1)
bool IsHorizontal (void)
void CalcLine (void)
void * operator new (size_t s)
void operator delete (void *p, size_t s)

Public Attributes

graph_vertexv [2]
graph_edge * e [2]
gul::ptr_int_union f [2]
line l
gul::ptr_int_union reserved [3]
graph_edge * next
graph_edge * prev


Constructor & Destructor Documentation

gugr::graph_edge::graph_edge   [inline]
 

Definition at line 348 of file gugr_basics.h.

00348 { };

gugr::graph_edge::graph_edge graph_vertex   v0,
graph_vertex   v1
[inline, explicit]
 

Definition at line 350 of file gugr_basics.h.

00351   { 
00352     v[0] = v0; v[1] = v1;
00353   }


Member Function Documentation

void gugr::graph_edge::CalcLine void    [inline]
 

Definition at line 361 of file gugr_basics.h.

Referenced by IsHorizontal().

00362   {
00363     l = line( v[0]->v.v(), v[1]->v.v() );
00364   }

bool gugr::graph_edge::IsHorizontal void    [inline]
 

Definition at line 355 of file gugr_basics.h.

References CalcLine().

00356   { 
00357     if( l.IsNULL() ) CalcLine();
00358     return( l.dy().is_zero() );
00359   }

void gugr::graph_edge::operator delete void *    p,
size_t    s
[inline]
 

Definition at line 376 of file gugr_basics.h.

References gugr::graph_edge_list, and gust::PoolFree().

00377   {
00378     PoolFree( p, s );
00379   }

void* gugr::graph_edge::operator new size_t    s [inline]
 

Definition at line 368 of file gugr_basics.h.

References gust::PoolAlloc().

00369   {
00370     size_t dummy;
00371     void *p = PoolAlloc( s, &dummy );
00372     if( p == NULL ) throw PoolAllocError();
00373     return(p);
00374   }


Member Data Documentation

struct graph_edge* gugr::graph_edge::e[2]
 

Definition at line 338 of file gugr_basics.h.

gul::ptr_int_union gugr::graph_edge::f[2]
 

Definition at line 339 of file gugr_basics.h.

line gugr::graph_edge::l
 

Definition at line 341 of file gugr_basics.h.

struct graph_edge* gugr::graph_edge::next
 

Definition at line 345 of file gugr_basics.h.

struct graph_edge* gugr::graph_edge::prev
 

Definition at line 346 of file gugr_basics.h.

gul::ptr_int_union gugr::graph_edge::reserved[3]
 

Definition at line 343 of file gugr_basics.h.

struct graph_vertex* gugr::graph_edge::v[2]
 

Definition at line 337 of file gugr_basics.h.


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