Flow123d  release_2.2.0-914-gf1a3a4f
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
ngh::TPoint Class Reference

#include <point.h>

Public Member Functions

 TPoint ()
 
 TPoint (double, double, double)
 
 TPoint (const TPoint &)
 
 ~TPoint ()
 
TPointoperator= (TPoint *)
 
TPointoperator+ (TPoint *)
 
bool operator== (TPoint *)
 
TPointoperator= (const TPoint &)
 
TPointoperator= (const TVector &)
 
TVector operator- (const TPoint &) const
 
TPoint operator+ (const TPoint &) const
 
bool operator== (const TPoint &) const
 
void SetCoord (double, double, double)
 
void SetCoord (const TVector &)
 
double X () const
 
double Y () const
 
double Z () const
 
double Get (int) const
 

Static Public Member Functions

static int getNumInstances ()
 

Private Member Functions

int generateId ()
 

Private Attributes

int id
 
double x
 
double y
 
double z
 

Static Private Attributes

static int numberInstance = 0
 

Friends

std::ostream & operator<< (std::ostream &, const TPoint &)
 

Detailed Description

Definition at line 29 of file point.h.

Constructor & Destructor Documentation

ngh::TPoint::TPoint ( )

Definition at line 35 of file point.cpp.

ngh::TPoint::TPoint ( double  x,
double  y,
double  z 
)

Definition at line 43 of file point.cpp.

ngh::TPoint::TPoint ( const TPoint point)

Definition at line 51 of file point.cpp.

ngh::TPoint::~TPoint ( )

Definition at line 59 of file point.cpp.

Member Function Documentation

int ngh::TPoint::generateId ( )
private

Definition at line 31 of file point.cpp.

double ngh::TPoint::Get ( int  i) const

Definition at line 123 of file point.cpp.

Here is the caller graph for this function:

static int ngh::TPoint::getNumInstances ( )
inlinestatic

Definition at line 66 of file point.h.

TPoint* ngh::TPoint::operator+ ( TPoint )
TPoint ngh::TPoint::operator+ ( const TPoint P) const

Definition at line 89 of file point.cpp.

TVector ngh::TPoint::operator- ( const TPoint P) const

Definition at line 85 of file point.cpp.

TPoint* ngh::TPoint::operator= ( TPoint )
TPoint & ngh::TPoint::operator= ( const TPoint P)

Definition at line 62 of file point.cpp.

TPoint & ngh::TPoint::operator= ( const TVector U)

Definition at line 77 of file point.cpp.

bool ngh::TPoint::operator== ( TPoint )
bool ngh::TPoint::operator== ( const TPoint P) const

Definition at line 70 of file point.cpp.

void ngh::TPoint::SetCoord ( double  x,
double  y,
double  z 
)

Definition at line 99 of file point.cpp.

Here is the caller graph for this function:

void ngh::TPoint::SetCoord ( const TVector U)

Definition at line 105 of file point.cpp.

double ngh::TPoint::X ( ) const

Definition at line 111 of file point.cpp.

Here is the caller graph for this function:

double ngh::TPoint::Y ( ) const

Definition at line 115 of file point.cpp.

Here is the caller graph for this function:

double ngh::TPoint::Z ( ) const

Definition at line 119 of file point.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const TPoint P 
)
friend

Definition at line 137 of file point.cpp.

Member Data Documentation

int ngh::TPoint::id
private

Definition at line 32 of file point.h.

int ngh::TPoint::numberInstance = 0
staticprivate

Definition at line 31 of file point.h.

double ngh::TPoint::x
private

Definition at line 34 of file point.h.

double ngh::TPoint::y
private

Definition at line 35 of file point.h.

double ngh::TPoint::z
private

Definition at line 36 of file point.h.


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