adjust eol style
This commit is contained in:
1 parent
70650ba753
commit
6e2d4bf3ca
7 files changed
+838
-838
No files matched your search
@@ -1,63 +1,63 @@
|
||||
#ifndef __devec_h__
|
||||
#define __devec_h__
|
||||
|
||||
namespace DE
|
||||
{
|
||||
|
||||
|
||||
template <unsigned int DIM>
|
||||
class Vector
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor
|
||||
Vector();
|
||||
|
||||
// destructor
|
||||
~Vector();
|
||||
|
||||
// copy constructor
|
||||
Vector(const Vector& other);
|
||||
|
||||
// assignment
|
||||
Vector& operator= (const Vector& other);
|
||||
|
||||
// addition
|
||||
Vector& operator+= (const Vector& other);
|
||||
Vector operator+ (const Vector& other);
|
||||
|
||||
// subtraction
|
||||
Vector& operator-= (const Vector& other);
|
||||
Vector operator- (const Vector& other);
|
||||
|
||||
// multiply by scalar
|
||||
Vector& operator*= (const double& multiplier);
|
||||
Vector operator* (const double& multiplier);
|
||||
|
||||
// divide by scalar
|
||||
Vector& operator/= (const double& divisor);
|
||||
Vector operator/ (const double& divisor);
|
||||
|
||||
// element access
|
||||
const double& operator[] (unsigned int i) const;
|
||||
double& operator[] (unsigned int i);
|
||||
|
||||
// data access
|
||||
operator const double* () const;
|
||||
operator double* ();
|
||||
|
||||
private:
|
||||
|
||||
// data lives here
|
||||
double tuple[DIM];
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#include "devec.inl"
|
||||
|
||||
|
||||
#endif // __devec_h__
|
||||
|
||||
#ifndef __devec_h__
|
||||
#define __devec_h__
|
||||
|
||||
namespace DE
|
||||
{
|
||||
|
||||
|
||||
template <unsigned int DIM>
|
||||
class Vector
|
||||
{
|
||||
public:
|
||||
|
||||
// default constructor
|
||||
Vector();
|
||||
|
||||
// destructor
|
||||
~Vector();
|
||||
|
||||
// copy constructor
|
||||
Vector(const Vector& other);
|
||||
|
||||
// assignment
|
||||
Vector& operator= (const Vector& other);
|
||||
|
||||
// addition
|
||||
Vector& operator+= (const Vector& other);
|
||||
Vector operator+ (const Vector& other);
|
||||
|
||||
// subtraction
|
||||
Vector& operator-= (const Vector& other);
|
||||
Vector operator- (const Vector& other);
|
||||
|
||||
// multiply by scalar
|
||||
Vector& operator*= (const double& multiplier);
|
||||
Vector operator* (const double& multiplier);
|
||||
|
||||
// divide by scalar
|
||||
Vector& operator/= (const double& divisor);
|
||||
Vector operator/ (const double& divisor);
|
||||
|
||||
// element access
|
||||
const double& operator[] (unsigned int i) const;
|
||||
double& operator[] (unsigned int i);
|
||||
|
||||
// data access
|
||||
operator const double* () const;
|
||||
operator double* ();
|
||||
|
||||
private:
|
||||
|
||||
// data lives here
|
||||
double tuple[DIM];
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#include "devec.inl"
|
||||
|
||||
|
||||
#endif // __devec_h__
|
||||
|
||||
Reference in new issue
Block a user