Public Member Functions | Private Attributes | Friends
Vector< C > Class Template Reference

Public Member Functions

 Vector (const double x, const double y)
 
C x () const
 
C y () const
 

Private Attributes

double X
 
double Y
 

Friends

Vector< Coperator+ (const Vector< C > &v1, const Vector< C > &v2)
 
std::ostream & operator<< (std::ostream &os, const Vector< C > &v)
 

Detailed Description

template<class C>
class Vector< C >

Definition at line 4 of file Test-Field.H.

Constructor & Destructor Documentation

◆ Vector()

Vector ( const double  x,
const double  y 
)
inline

Definition at line 47 of file Test-Field.H.

References x, y, and Y.

Member Function Documentation

◆ x()

C x ( ) const
inline

Definition at line 27 of file Test-Field.H.

References Vector< C >::X.

◆ y()

C y ( ) const
inline

Definition at line 32 of file Test-Field.H.

References Vector< C >::Y.

Friends And Related Function Documentation

◆ operator+

Vector<C> operator+ ( const Vector< C > &  v1,
const Vector< C > &  v2 
)
friend

Definition at line 55 of file Test-Field.H.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Vector< C > &  v 
)
friend

Definition at line 39 of file Test-Field.H.

Field Documentation

◆ X

double X
private

Definition at line 21 of file Test-Field.H.

Referenced by operator+(), operator<<(), and Vector< C >::x().

◆ Y

double Y
private

Definition at line 21 of file Test-Field.H.

Referenced by operator+(), operator<<(), and Vector< C >::y().


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