Flow123d  jenkins-Flow123d-linux-release-multijob-198
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
TVector Class Reference

#include <myvector.h>

Public Member Functions

 TVector ()
 
 TVector (double, double, double)
 
 TVector (TPoint, TPoint)
 
 TVector (const TVector &)
 
 ~TVector ()
 
double Length () const
 
void Get (double &, double &, double &) const
 
void Get (double *) const
 
double Get (int) const
 
void SetVector (double, double, double)
 
bool IsZero ()
 
double X1 () const
 
double X2 () const
 
double X3 () const
 
TVectoroperator= (const TPoint &)
 
TVector operator+ (const TVector &)
 
TVector operator+ (const TPoint &)
 
TVector operator- (const TVector &)
 
bool operator== (const TVector &)
 

Static Public Member Functions

static int getNumInstances ()
 

Protected Member Functions

int generateId ()
 
void Compute ()
 
void CompLength ()
 

Protected Attributes

int id
 
double coors [3]
 
double length
 

Static Protected Attributes

static int numberInstance = 0
 

Friends

TVector operator* (const TVector &, double)
 
TVector operator* (double, const TVector &)
 

Detailed Description

Definition at line 7 of file myvector.h.

Constructor & Destructor Documentation

TVector::TVector ( )

Definition at line 14 of file vector.cpp.

TVector::TVector ( double  xx1,
double  xx2,
double  xx3 
)

Definition at line 24 of file vector.cpp.

TVector::TVector ( TPoint  P1,
TPoint  P2 
)

Definition at line 34 of file vector.cpp.

TVector::TVector ( const TVector x)

Definition at line 44 of file vector.cpp.

TVector::~TVector ( )

Definition at line 55 of file vector.cpp.

Member Function Documentation

void TVector::CompLength ( )
protected

Definition at line 63 of file vector.cpp.

void TVector::Compute ( )
protected

Definition at line 59 of file vector.cpp.

Here is the caller graph for this function:

int TVector::generateId ( )
protected

Definition at line 10 of file vector.cpp.

void TVector::Get ( double &  xx1,
double &  xx2,
double &  xx3 
) const

Definition at line 144 of file vector.cpp.

Here is the caller graph for this function:

void TVector::Get ( double *  U) const

Definition at line 151 of file vector.cpp.

double TVector::Get ( int  i) const

Definition at line 159 of file vector.cpp.

static int TVector::getNumInstances ( )
inlinestatic

Definition at line 46 of file myvector.h.

bool TVector::IsZero ( )

Definition at line 132 of file vector.cpp.

double TVector::Length ( ) const

Definition at line 140 of file vector.cpp.

Here is the caller graph for this function:

TVector TVector::operator+ ( const TVector V)

Definition at line 77 of file vector.cpp.

TVector TVector::operator+ ( const TPoint P)

Definition at line 89 of file vector.cpp.

TVector TVector::operator- ( const TVector V)

Definition at line 101 of file vector.cpp.

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

Definition at line 67 of file vector.cpp.

bool TVector::operator== ( const TVector U)

Definition at line 192 of file vector.cpp.

void TVector::SetVector ( double  xx1,
double  xx2,
double  xx3 
)

Definition at line 113 of file vector.cpp.

Here is the caller graph for this function:

double TVector::X1 ( ) const

Definition at line 201 of file vector.cpp.

Here is the caller graph for this function:

double TVector::X2 ( ) const

Definition at line 205 of file vector.cpp.

Here is the caller graph for this function:

double TVector::X3 ( ) const

Definition at line 209 of file vector.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

TVector operator* ( const TVector U,
double  x 
)
friend

Definition at line 120 of file vector.cpp.

TVector operator* ( double  x,
const TVector U 
)
friend

Definition at line 126 of file vector.cpp.

Member Data Documentation

double TVector::coors[3]
protected

Definition at line 12 of file myvector.h.

int TVector::id
protected

Definition at line 10 of file myvector.h.

double TVector::length
protected

Definition at line 13 of file myvector.h.

int TVector::numberInstance = 0
staticprotected

Definition at line 9 of file myvector.h.


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