Flow123d  release_2.2.0-26-ge868538
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
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 27 of file point.h.

Constructor & Destructor Documentation

TPoint::TPoint ( )

Definition at line 32 of file point.cpp.

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

Definition at line 40 of file point.cpp.

TPoint::TPoint ( const TPoint point)

Definition at line 48 of file point.cpp.

TPoint::~TPoint ( )

Definition at line 56 of file point.cpp.

Member Function Documentation

int TPoint::generateId ( )
private

Definition at line 28 of file point.cpp.

double TPoint::Get ( int  i) const

Definition at line 120 of file point.cpp.

Here is the caller graph for this function:

static int TPoint::getNumInstances ( )
inlinestatic

Definition at line 64 of file point.h.

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

Definition at line 86 of file point.cpp.

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

Definition at line 82 of file point.cpp.

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

Definition at line 59 of file point.cpp.

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

Definition at line 74 of file point.cpp.

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

Definition at line 67 of file point.cpp.

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

Definition at line 96 of file point.cpp.

Here is the caller graph for this function:

void TPoint::SetCoord ( const TVector U)

Definition at line 102 of file point.cpp.

double TPoint::X ( ) const

Definition at line 108 of file point.cpp.

Here is the caller graph for this function:

double TPoint::Y ( ) const

Definition at line 112 of file point.cpp.

Here is the caller graph for this function:

double TPoint::Z ( ) const

Definition at line 116 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 134 of file point.cpp.

Member Data Documentation

int TPoint::id
private

Definition at line 30 of file point.h.

int TPoint::numberInstance = 0
staticprivate

Definition at line 29 of file point.h.

double TPoint::x
private

Definition at line 32 of file point.h.

double TPoint::y
private

Definition at line 33 of file point.h.

double TPoint::z
private

Definition at line 34 of file point.h.


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