Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Halfedge_overlay Class Reference

#include <HDS_overlay.h>

Collaboration diagram for Halfedge_overlay:

Public Types

typedef Halfedge_overlay Self
 
typedef Vertex_overlay Vertex
 
typedef Facet_overlay Facet
 
typedef Tag_true Supports_halfedge_prev
 
typedef Tag_true Supports_halfedge_vertex
 
typedef Tag_true Supports_halfedge_facet
 

Public Member Functions

 Halfedge_overlay ()
 
Vertex_overlayvertex ()
 
const Vertex_overlayvertex () const
 
void set_opposite (Halfedge_overlay *h)
 
void set_next (Halfedge_overlay *h)
 
void set_prev (Halfedge_overlay *h)
 
void set_vertex (Vertex_overlay *_v)
 
void set_facet (Facet_overlay *_f)
 
Halfedge_overlayopposite ()
 
const Halfedge_overlayopposite () const
 
Halfedge_overlaynext ()
 
const Halfedge_overlaynext () const
 
Halfedge_overlayprev ()
 
const Halfedge_overlayprev () const
 
Facet_overlayfacet ()
 
const Facet_overlayfacet () const
 
bool is_border () const
 
Vertex_overlayorigin ()
 
const Vertex_overlayorigin () const
 
Vertex_overlaydestination ()
 
const Vertex_overlaydestination () const
 

Protected Attributes

Halfedge_overlaynxt
 
char * prv
 
Facet_overlayf
 
Vertex_overlayv
 

Private Member Functions

bool is_primary () const
 
void set_primary ()
 
void unset_primary ()
 

Detailed Description

Definition at line 81 of file HDS_overlay.h.

Member Typedef Documentation

Definition at line 85 of file HDS_overlay.h.

Definition at line 83 of file HDS_overlay.h.

Definition at line 89 of file HDS_overlay.h.

Definition at line 87 of file HDS_overlay.h.

Definition at line 88 of file HDS_overlay.h.

Definition at line 84 of file HDS_overlay.h.

Constructor & Destructor Documentation

Halfedge_overlay ( )
inline

Definition at line 98 of file HDS_overlay.h.

98 : nxt(NULL), prv(NULL), f(NULL), v(NULL) {}
Halfedge_overlay * nxt
Definition: HDS_overlay.h:92
Vertex_overlay * v
Definition: HDS_overlay.h:95
Facet_overlay * f
Definition: HDS_overlay.h:94

Member Function Documentation

const Vertex_overlay* destination ( ) const
inline

Definition at line 138 of file HDS_overlay.h.

References vertex().

138 { return vertex(); }
Vertex_overlay * vertex()
Definition: HDS_overlay.h:106

Here is the call graph for this function:

const Facet_overlay* facet ( ) const
inline

Definition at line 130 of file HDS_overlay.h.

References f.

130 { return f;}
Facet_overlay * f
Definition: HDS_overlay.h:94
bool is_primary ( ) const
inlineprivate

Definition at line 140 of file HDS_overlay.h.

References prv.

Referenced by opposite(), prev(), set_prev(), set_primary(), and unset_primary().

140 { return (prv-(char*)0)&1; }

Here is the caller graph for this function:

const Halfedge_overlay* next ( ) const
inline

Definition at line 121 of file HDS_overlay.h.

References nxt.

121 { return nxt;}
Halfedge_overlay * nxt
Definition: HDS_overlay.h:92
Halfedge_overlay* opposite ( )
inline

Definition at line 118 of file HDS_overlay.h.

References is_primary().

Referenced by HDS_accessor< Tag_true >::get_next(), HDS_accessor< Tag_true >::get_opposite(), HDS_accessor< Tag_true >::get_prev(), origin(), HDS_accessor< Tag_true >::set_parent(), and Overlay_primitives::snap_blue_ridge_vertex().

118 { return is_primary() ? this+1 : this-1; }
bool is_primary() const
Definition: HDS_overlay.h:140

Here is the call graph for this function:

Here is the caller graph for this function:

const Halfedge_overlay* opposite ( ) const
inline

Definition at line 119 of file HDS_overlay.h.

References is_primary().

119 { return is_primary() ? this+1 : this-1; }
bool is_primary() const
Definition: HDS_overlay.h:140

Here is the call graph for this function:

const Vertex_overlay* origin ( ) const
inline

Definition at line 136 of file HDS_overlay.h.

References opposite(), and vertex().

136 { return opposite()->vertex(); }
Halfedge_overlay * opposite()
Definition: HDS_overlay.h:118
Vertex_overlay * vertex()
Definition: HDS_overlay.h:106

Here is the call graph for this function:

const Halfedge_overlay* prev ( ) const
inline

Definition at line 125 of file HDS_overlay.h.

References is_primary(), and prv.

126  { return (Halfedge_overlay*)(prv-is_primary()); }
bool is_primary() const
Definition: HDS_overlay.h:140

Here is the call graph for this function:

void set_facet ( Facet_overlay _f)
inline

Definition at line 116 of file HDS_overlay.h.

References f.

116 { f = _f; }
Facet_overlay * f
Definition: HDS_overlay.h:94
void set_next ( Halfedge_overlay h)
inline

Definition at line 112 of file HDS_overlay.h.

References nxt.

112 { nxt = h; }
Halfedge_overlay * nxt
Definition: HDS_overlay.h:92
void set_opposite ( Halfedge_overlay h)
inline

Definition at line 110 of file HDS_overlay.h.

References set_primary(), and unset_primary().

111  { if ( h>this) set_primary(); else unset_primary(); }
void unset_primary()
Definition: HDS_overlay.h:142

Here is the call graph for this function:

void set_prev ( Halfedge_overlay h)
inline

Definition at line 113 of file HDS_overlay.h.

References is_primary(), prev(), prv, and RFC_assertion.

114  { prv = ((char*)h)+is_primary(); RFC_assertion( prev()==h); }
bool is_primary() const
Definition: HDS_overlay.h:140
Halfedge_overlay * prev()
Definition: HDS_overlay.h:123
#define RFC_assertion
Definition: rfc_basic.h:65

Here is the call graph for this function:

void set_primary ( )
inlineprivate

Definition at line 141 of file HDS_overlay.h.

References is_primary(), and prv.

Referenced by set_opposite().

141 { if ( !is_primary()) prv+=1; }
bool is_primary() const
Definition: HDS_overlay.h:140

Here is the call graph for this function:

Here is the caller graph for this function:

void set_vertex ( Vertex_overlay _v)
inline

Definition at line 115 of file HDS_overlay.h.

References v.

115 { v = _v;}
Vertex_overlay * v
Definition: HDS_overlay.h:95
void unset_primary ( )
inlineprivate

Definition at line 142 of file HDS_overlay.h.

References is_primary(), and prv.

Referenced by set_opposite().

142 { if ( is_primary()) prv-=1; }
bool is_primary() const
Definition: HDS_overlay.h:140

Here is the call graph for this function:

Here is the caller graph for this function:

const Vertex_overlay* vertex ( ) const
inline

Definition at line 107 of file HDS_overlay.h.

References v.

107 { return v;}
Vertex_overlay * v
Definition: HDS_overlay.h:95

Member Data Documentation

Facet_overlay* f
protected

Definition at line 94 of file HDS_overlay.h.

Referenced by facet(), is_border(), and set_facet().

Halfedge_overlay* nxt
protected

Definition at line 92 of file HDS_overlay.h.

Referenced by next(), and set_next().

char* prv
protected

Definition at line 93 of file HDS_overlay.h.

Referenced by is_primary(), prev(), set_prev(), set_primary(), and unset_primary().

Vertex_overlay* v
protected

Definition at line 95 of file HDS_overlay.h.

Referenced by set_vertex(), and vertex().


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