msbGrid  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msbGrid::Edge Class Reference

#include <edge.hh>

Inheritance diagram for msbGrid::Edge:
msbGrid::GeometricEntity

Public Types

enum  { dim = msbGrid :: dim }
 
typedef msbGrid::GeometricEntity ParentT
 
typedef msbGrid::Scalar Scalar
 
typedef msbGrid::Point Point
 
typedef msbGrid::Cell Cell
 
- Public Types inherited from msbGrid::GeometricEntity
typedef msbGrid::Color Color
 
typedef msbGrid::Point Point
 
typedef msbGrid::Edge Edge
 
typedef msbGrid::Cell Cell
 

Public Member Functions

 Edge (Point *p0, Point *p1)
 
 ~Edge ()
 
const ScalareucSize () const
 
ScalareucSize ()
 
const std::vector< Scalarpos () const
 
const bool has (const Point &p0) const
 
const int indexOf (const Point &p0) const
 
void translate (const std::vector< Scalar > &dx)
 
void infos (const std::string &name0="") const
 
- Public Member Functions inherited from msbGrid::GeometricEntity
 GeometricEntity ()
 
 ~GeometricEntity ()
 
const Colorcolor () const
 
Colorcolor ()
 
const unsigned int & Id () const
 
unsigned int & Id ()
 
const bool hasId () const
 
const bool & mark () const
 
bool & mark ()
 
const bool & onBlockBoundary () const
 
bool & onBlockBoundary ()
 
const std::vector< Scalar > & pos () const
 
std::vector< Scalar > & pos ()
 
const std::vector< Point * > & vPt () const
 
std::vector< Point * > & vPt ()
 
const std::vector< Edge * > & vEd () const
 
std::vector< Edge * > & vEd ()
 
const std::vector< Cell * > & vCel () const
 
std::vector< Cell * > & vCel ()
 
bool isIt (const GeometricEntity *ge0) const
 
void infos () const
 

Static Public Attributes

static const int verticesNumber_ = 2
 

Private Attributes

Scalar eucSize_
 

Friends

const bool superposed0 (const Edge &e0, const Edge &e1)
 
const bool superposed1 (const Edge &e0, const Edge &e1)
 
const bool superposed (const Edge &e0, const Edge &e1)
 
const bool oneSharedPoint (const Edge &e0, const Edge &e1)
 
bool addLeftSideNeighbor (const std::vector< Edge * > &ve0, std::vector< Edge * > &ve1, int &headPointIndex)
 

Additional Inherited Members

- Public Attributes inherited from msbGrid::GeometricEntity
std::vector< Scalarpos_
 
std::vector< Point * > vPt_
 
std::vector< Edge * > vEd_
 
std::vector< Cell * > vCel_
 

Detailed Description

Definition at line 28 of file edge.hh.

Member Typedef Documentation

typedef msbGrid :: Cell msbGrid::Edge::Cell

Definition at line 35 of file edge.hh.

Definition at line 31 of file edge.hh.

typedef msbGrid :: Point msbGrid::Edge::Point

Definition at line 34 of file edge.hh.

typedef msbGrid :: Scalar msbGrid::Edge::Scalar

Definition at line 33 of file edge.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
dim 

Definition at line 37 of file edge.hh.

Constructor & Destructor Documentation

msbGrid::Edge::Edge ( Point p0,
Point p1 
)
inline

Definition at line 45 of file edge.hh.

msbGrid::Edge::~Edge ( )
inline

Definition at line 57 of file edge.hh.

Member Function Documentation

const Scalar& msbGrid::Edge::eucSize ( ) const
inline

Definition at line 59 of file edge.hh.

Scalar& msbGrid::Edge::eucSize ( )
inline

Definition at line 62 of file edge.hh.

const bool msbGrid::Edge::has ( const Point p0) const
inline

Definition at line 84 of file edge.hh.

const int msbGrid::Edge::indexOf ( const Point p0) const
inline

Definition at line 89 of file edge.hh.

void msbGrid::Edge::infos ( const std::string &  name0 = "") const
inline

Definition at line 168 of file edge.hh.

const std :: vector< Scalar > msbGrid::Edge::pos ( ) const
inline

Definition at line 65 of file edge.hh.

void msbGrid::Edge::translate ( const std::vector< Scalar > &  dx)
inline

Definition at line 161 of file edge.hh.

Friends And Related Function Documentation

bool addLeftSideNeighbor ( const std::vector< Edge * > &  ve0,
std::vector< Edge * > &  ve1,
int &  headPointIndex 
)
friend

Definition at line 138 of file edge.hh.

const bool oneSharedPoint ( const Edge e0,
const Edge e1 
)
friend

Definition at line 110 of file edge.hh.

const bool superposed ( const Edge e0,
const Edge e1 
)
friend

Definition at line 105 of file edge.hh.

const bool superposed0 ( const Edge e0,
const Edge e1 
)
friend

Definition at line 95 of file edge.hh.

const bool superposed1 ( const Edge e0,
const Edge e1 
)
friend

Definition at line 100 of file edge.hh.

Member Data Documentation

Scalar msbGrid::Edge::eucSize_
private

Definition at line 41 of file edge.hh.

const int msbGrid::Edge::verticesNumber_ = 2
static

Definition at line 38 of file edge.hh.


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