Skeleton< T > Class Template Reference

#include <TAPsWXDialogPersonalRecord.hpp>

Collaboration diagram for Skeleton< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool operator< (Skeleton< T > const &v) const
bool operator<= (Skeleton< T > const &v) const
Skeleton< T > & operator= (Skeleton< T > const &v)
 Assignment Operator.
bool operator== (Skeleton< T > const &v) const
 Comparison Operators.
bool operator> (Skeleton< T > const &v) const
bool operator>= (Skeleton< T > const &v) const
 Skeleton (Skeleton< T > const &v)
 constructor by an array
 Skeleton (T a[3])
 default constructor
 Skeleton (T x=T(), T y=T(), T z=T())
 Constructors.
virtual std::string StrInfo () const
 destructor
 ~Skeleton ()
 copy constructor

Static Public Member Functions

static int Dominate (Skeleton< T > const &a, Skeleton< T > const &b)

Protected Attributes

m_tX
m_tY
m_tZ

Friends

std::ostream & operator<< (std::ostream &output, Skeleton< T > const &obj)
 Output Operator <<.


Detailed Description

template<typename T>
class Skeleton< T >

Definition at line 18 of file TAPsWXDialogPersonalRecord.hpp.


Constructor & Destructor Documentation

template<typename T>
BEGIN_NAMESPACE_TAPs Skeleton< T >::Skeleton ( x = T(),
y = T(),
z = T() 
) [inline]

Constructors.

Definition at line 20 of file TAPsWXDialogPersonalRecord.cpp.

00021     : m_tX( x ), m_tY( y ), m_tZ( z )
00022 {}  

template<typename T>
Skeleton< T >::Skeleton ( a[3]  )  [inline]

default constructor

Definition at line 25 of file TAPsWXDialogPersonalRecord.cpp.

00026     : m_tX( a[0] ), m_tY( a[1] ), m_tZ( a[2] )
00027 {}  

template<typename T>
Skeleton< T >::Skeleton ( Skeleton< T > const &  v  )  [inline]

constructor by an array

Definition at line 30 of file TAPsWXDialogPersonalRecord.cpp.

00031     : m_tX( v.m_tX ), m_tY( v.m_tY ), m_tZ( v.m_tZ )
00032 {}  

template<typename T>
Skeleton< T >::~Skeleton (  )  [inline]

copy constructor

Definition at line 35 of file TAPsWXDialogPersonalRecord.cpp.

00036 {}  


Member Function Documentation

template<typename T>
int Skeleton< T >::Dominate ( Skeleton< T > const &  a,
Skeleton< T > const &  b 
) [inline, static]

Find the dominate Skeleton between Skeleton a and Skeleton b: return 1 if a dominates b return -1 if b dominates a return 0 if neither dominates the other

Definition at line 106 of file TAPsWXDialogPersonalRecord.cpp.

00107 {
00108     if ( a > b ) return  1;
00109     if ( a < b ) return -1;
00110     return 0;
00111 }

template<typename T>
bool Skeleton< T >::operator< ( Skeleton< T > const &  v  )  const [inline]

Definition at line 66 of file TAPsWXDialogPersonalRecord.cpp.

00067 {   
00068     if ( m_tX > v.m_tX )    return false;
00069     if ( m_tY > v.m_tY )    return false;
00070     if ( m_tZ > v.m_tZ )    return false;
00071     if ( m_tX < v.m_tX )    return true;
00072     if ( m_tY < v.m_tY )    return true;
00073     if ( m_tZ < v.m_tZ )    return true;
00074 }

template<typename T>
bool Skeleton< T >::operator<= ( Skeleton< T > const &  v  )  const [inline]

Definition at line 77 of file TAPsWXDialogPersonalRecord.cpp.

00078 {   
00079     if ( m_tX > v.m_tX )    return false;
00080     if ( m_tY > v.m_tY )    return false;
00081     if ( m_tZ > v.m_tZ )    return false;
00082     return true;
00083 }

template<typename T>
Skeleton< T > & Skeleton< T >::operator= ( Skeleton< T > const &  v  )  [inline]

Assignment Operator.

Definition at line 51 of file TAPsWXDialogPersonalRecord.cpp.

00052 {   
00053     m_tX = v.m_tX;
00054     m_tY = v.m_tY;
00055     m_tZ = v.m_tZ;
00056     return *this;
00057 }

template<typename T>
bool Skeleton< T >::operator== ( Skeleton< T > const &  v  )  const [inline]

Comparison Operators.

Definition at line 62 of file TAPsWXDialogPersonalRecord.cpp.

00063 {   return ( m_tX == v.m_tX && m_tY == v.m_tY && m_tZ == v.m_tZ );  }

template<typename T>
bool Skeleton< T >::operator> ( Skeleton< T > const &  v  )  const [inline]

Definition at line 86 of file TAPsWXDialogPersonalRecord.cpp.

00087 {   
00088     if ( m_tX < v.m_tX )    return false;
00089     if ( m_tY < v.m_tY )    return false;
00090     if ( m_tZ < v.m_tZ )    return false;
00091     if ( m_tX > v.m_tX )    return true;
00092     if ( m_tY > v.m_tY )    return true;
00093     if ( m_tZ > v.m_tZ )    return true;
00094 }

template<typename T>
bool Skeleton< T >::operator>= ( Skeleton< T > const &  v  )  const [inline]

Definition at line 97 of file TAPsWXDialogPersonalRecord.cpp.

00098 {   
00099     if ( m_tX < v.m_tX )    return false;
00100     if ( m_tY < v.m_tY )    return false;
00101     if ( m_tZ < v.m_tZ )    return false;
00102     return true;
00103 }

template<typename T>
virtual std::string Skeleton< T >::StrInfo (  )  const [virtual]

destructor

Return this object info as a string


Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  output,
Skeleton< T > const &  obj 
) [friend]

Output Operator <<.

Definition at line 23 of file TAPsWXDialogPersonalRecord.hpp.

00024     {
00025         output << obj.StrInfo();
00026         return output;
00027     }


Member Data Documentation

template<typename T>
T Skeleton< T >::m_tX [protected]

Definition at line 60 of file TAPsWXDialogPersonalRecord.hpp.

template<typename T>
T Skeleton< T >::m_tY [protected]

Definition at line 60 of file TAPsWXDialogPersonalRecord.hpp.

template<typename T>
T Skeleton< T >::m_tZ [protected]

Definition at line 60 of file TAPsWXDialogPersonalRecord.hpp.


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

Generated on Mon Oct 13 11:45:56 2008 for TAPs by  doxygen 1.5.6