cell.C File Reference

(r1659/r1653)

#include <iostream>
#include "cell.h"
#include "datastore.h"
#include "spline.h"
#include "util.h"

Include dependency graph for cell.C:

Go to the source code of this file.

Defines

#define define_iterators_any(cls, cell, plural, out)
#define define_iterators_canon(cls, cell, plural, out)

Functions

ostream & operator<< (ostream &stream, const BoundaryVertex &v)
 Print info.
 define_iterators_any (BoundaryVertex, edge, edges, BoundaryEdge)
ostream & operator<< (ostream &stream, const BoundaryEdge &e)
 Print info to stream.
 define_iterators_canon (BoundaryEdge, vertex, vertices, BoundaryVertex)
 define_iterators_any (BoundaryEdge, face, faces, BoundaryFace)
ostream & operator<< (ostream &stream, const BoundaryFace &f)
 Print info to stream.
 define_iterators_canon (BoundaryFace, edge, edges, BoundaryEdge)
ostream & operator<< (ostream &stream, const BezierVertex &v)
 Print info to stream.
 define_iterators_any (BezierVertex, edge, edges, BezierEdge)
ostream & operator<< (ostream &stream, const BezierEdge &e)
 Print info to stream.
 define_iterators_canon (BezierEdge, vertex, vertices, BezierVertex)
 define_iterators_any (BezierEdge, face, faces, BezierTriangle)
static int map_idx (int i, bool ccw)
ostream & operator<< (ostream &stream, const BezierTriangle &t)
 Print info to stream.
 define_iterators_canon (BezierTriangle, edge, edges, BezierEdge)
ostream & operator<< (ostream &stream, const GhostTriangle &t)
 Print info to stream.

Variables

static unsigned long id_counter = 0
 A static counter to implement unique Cell ID's.
static const double large_num = 1.0E9
static const double newton_optimal_tolerance = 1.0E-12
static const double newton_zero_tolerance = 1.0E-5
static const double newton_tolerance = 1.0E-6
static const unsigned newton_iterations = 30


Detailed Description

Author:
Mark J. Olah (mjo@andrew.cmu.edu)

Definition in file cell.C.


Define Documentation

#define define_iterators_any ( cls,
cell,
plural,
out   ) 

Value:

cls::cell##_iterator cls::begin_##plural() { \
    return cell##_iterator(super::begin_##plural()); \
  } \
  cls::cell##_const_iterator cls::begin_##plural() const { \
    return cell##_const_iterator(super::begin_##plural()); \
  } \
  cls::cell##_iterator cls::end_##plural() { \
    return cell##_iterator(super::end_##plural()); \
  } \
  cls::cell##_const_iterator cls::end_##plural() const { \
    return cell##_const_iterator(super::end_##plural()); \
  } \
  out *cls::get_any_##cell() { \
    return static_cast<out*>(super::get_any_##cell()); \
  } \
  const out *cls::get_any_##cell() const { \
    return static_cast<const out*>(super::get_any_##cell()); \
  }
Counterpart to declare_iterators_any.

Definition at line 26 of file cell.C.

#define define_iterators_canon ( cls,
cell,
plural,
out   ) 

Value:

cls::cell##_iterator cls::begin_##plural() { \
    return cell##_iterator(super::begin_##plural()); \
  } \
  cls::cell##_const_iterator cls::begin_##plural() const { \
    return cell##_const_iterator(super::begin_##plural()); \
  } \
  cls::cell##_iterator cls::end_##plural() { \
    return cell##_iterator(super::end_##plural()); \
  } \
  cls::cell##_const_iterator cls::end_##plural() const { \
    return cell##_const_iterator(super::end_##plural()); \
  } \
  out *cls::get_canon_##cell() { \
    return static_cast<out*>(super::get_canon_##cell()); \
  } \
  const out *cls::get_canon_##cell() const { \
    return static_cast<const out*>(super::get_canon_##cell()); \
  }
Counterpart to declare_iterators_canon.

Definition at line 49 of file cell.C.


Function Documentation

define_iterators_any ( BezierEdge  ,
face  ,
faces  ,
BezierTriangle   
)

define_iterators_any ( BezierVertex  ,
edge  ,
edges  ,
BezierEdge   
)

define_iterators_any ( BoundaryEdge  ,
face  ,
faces  ,
BoundaryFace   
)

define_iterators_any ( BoundaryVertex  ,
edge  ,
edges  ,
BoundaryEdge   
)

define_iterators_canon ( BezierTriangle  ,
edge  ,
edges  ,
BezierEdge   
)

Define the iterator functions.

define_iterators_canon ( BezierEdge  ,
vertex  ,
vertices  ,
BezierVertex   
)

define_iterators_canon ( BoundaryFace  ,
edge  ,
edges  ,
BoundaryEdge   
)

define_iterators_canon ( BoundaryEdge  ,
vertex  ,
vertices  ,
BoundaryVertex   
)

static int map_idx ( int  i,
bool  ccw 
) [static]

Definition at line 1462 of file cell.C.

Referenced by BezierTriangle::BezierTriangle().

ostream& operator<< ( ostream &  stream,
const GhostTriangle t 
)

Print info to stream.

Definition at line 2334 of file cell.C.

References GhostTriangle::cp, and GhostTriangle::dp.

ostream& operator<< ( ostream &  stream,
const BezierTriangle t 
)

Print info to stream.

Definition at line 2112 of file cell.C.

References FaceCell::begin_edges(), FaceCell::end_edges(), BezierTriangle::get_bdry_face(), BezierTriangle::get_cp(), BezierTriangle::get_dp(), and BezierTriangle::has_bdry_face().

Here is the call graph for this function:

ostream& operator<< ( ostream &  stream,
const BezierEdge e 
)

Print info to stream.

Definition at line 1417 of file cell.C.

References EdgeCell::begin_faces(), EdgeCell::begin_vertices(), EdgeCell::end_faces(), EdgeCell::end_vertices(), BezierEdge::get_bdry_edge(), BezierEdge::get_cp(), BezierEdge::get_dp(), BezierEdge::get_u(), and BezierEdge::is_boundary().

Here is the call graph for this function:

ostream& operator<< ( ostream &  stream,
const BezierVertex v 
)

Print info to stream.

Definition at line 1035 of file cell.C.

References VertexCell::begin_edges(), BezierVertex::containment_dimension(), VertexCell::end_edges(), BezierVertex::get_bdry_edge(), BezierVertex::get_bdry_vertex(), BezierVertex::get_cp(), BezierVertex::get_dp(), and BezierVertex::get_u().

Here is the call graph for this function:

ostream& operator<< ( ostream &  stream,
const BoundaryFace f 
)

Print info to stream.

Definition at line 735 of file cell.C.

References BoundaryFace::get_min_angle().

Here is the call graph for this function:

ostream& operator<< ( ostream &  stream,
const BoundaryEdge e 
)

Print info to stream.

Definition at line 669 of file cell.C.

References BoundaryEdge::get_fixed().

Here is the call graph for this function:

ostream& operator<< ( ostream &  stream,
const BoundaryVertex v 
)

Print info.

Definition at line 429 of file cell.C.

References VertexCell::begin_edges(), VertexCell::end_edges(), BoundaryVertex::get_bezier(), BoundaryVertex::get_cp(), and BoundaryVertex::get_fixed().

Here is the call graph for this function:


Variable Documentation

unsigned long id_counter = 0 [static]

A static counter to implement unique Cell ID's.

Definition at line 74 of file cell.C.

const double large_num = 1.0E9 [static]

Definition at line 1812 of file cell.C.

const unsigned newton_iterations = 30 [static]

Definition at line 2362 of file cell.C.

Referenced by Visualization::draw_newton().

const double newton_optimal_tolerance = 1.0E-12 [static]

Definition at line 2359 of file cell.C.

const double newton_tolerance = 1.0E-6 [static]

Definition at line 2361 of file cell.C.

const double newton_zero_tolerance = 1.0E-5 [static]

Definition at line 2360 of file cell.C.


Generated on Mon May 24 09:53:31 2010 for TUMBLE by  doxygen 1.5.2