rasdaman client API 10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
Public Member Functions | List of all members
r_PointDouble Class Reference

Class r_PointDouble represents an n-dimensional point of double coordinates. More...

#include <pointdouble.hh>

Public Member Functions

 r_PointDouble (r_Dimension)
 constructor getting dimensionality for stream initializing
 
 r_PointDouble (r_Dimension dim, double value)
 
 r_PointDouble (const r_Point &pt)
 
 r_PointDouble (const std::vector< double > &content)
 
 r_PointDouble (const r_PointDouble &vectorArg)
 copy constructor
 
 ~r_PointDouble ()
 destructor: cleanup dynamic memory
 
double operator[] (size_t) const
 subscriptor for read access
 
double & operator[] (size_t)
 subscriptor for write access
 
const r_PointDoubleoperator= (const r_PointDouble &)
 assignment: cleanup + copy
 
int compare_with (const r_PointDouble &p) const
 compares this point with the given point.
 
bool operator== (const r_PointDouble &vectorArg) const
 Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in lexicographic order).
 
bool operator!= (const r_PointDouble &vectorArg) const
 
bool operator< (const r_PointDouble &vectorArg) const
 
r_PointDouble operator+ (const r_PointDouble &vectorArg) const
 Two points are equal if they have the same number of dimensions and the same values.
 
r_PointDouble operator- (const r_PointDouble &vectorArg) const
 std::vector subtraction
 
r_PointDouble operator* (const r_PointDouble &vectorArg) const
 diagonal extension of multiplication across the cartesian product
 
r_PointDouble operator* (double scalarArg) const
 scalar multiplication
 
r_PointDoubleoperator+= (const r_PointDouble &a) noexcept(false)
 Same as above but of the form PointA op= PointB; PointA is modified in place.
 
r_PointDoubleoperator-= (const r_PointDouble &a) noexcept(false)
 
r_PointDoubleoperator*= (const r_PointDouble &a) noexcept(false)
 
r_PointDoubleoperator*= (double a) noexcept
 
double dotProduct (const r_PointDouble &r) const
 scalar product
 
r_Dimension dimension () const
 same as std::vector::size()
 
void print_status (std::ostream &s) const
 writes the state of the object to the specified stream
 
const std::vector< double > & getVectorContent () const
 returns the stored vector
 
r_Point toIntPoint () const
 converts the stored vector to an r_Point (integer vertices)
 

Detailed Description

Class r_PointDouble represents an n-dimensional point of double coordinates.

Constructor & Destructor Documentation

◆ r_PointDouble() [1/5]

r_PointDouble::r_PointDouble ( r_Dimension  )
explicit

constructor getting dimensionality for stream initializing

◆ r_PointDouble() [2/5]

r_PointDouble::r_PointDouble ( r_Dimension  dim,
double  value 
)

◆ r_PointDouble() [3/5]

r_PointDouble::r_PointDouble ( const r_Point pt)
explicit

◆ r_PointDouble() [4/5]

r_PointDouble::r_PointDouble ( const std::vector< double > &  content)
explicit

◆ r_PointDouble() [5/5]

r_PointDouble::r_PointDouble ( const r_PointDouble vectorArg)

copy constructor

◆ ~r_PointDouble()

r_PointDouble::~r_PointDouble ( )

destructor: cleanup dynamic memory

Member Function Documentation

◆ compare_with()

int r_PointDouble::compare_with ( const r_PointDouble p) const

compares this point with the given point.

◆ dimension()

r_Dimension r_PointDouble::dimension ( ) const

same as std::vector::size()

◆ dotProduct()

double r_PointDouble::dotProduct ( const r_PointDouble r) const

scalar product

◆ getVectorContent()

const std::vector< double > & r_PointDouble::getVectorContent ( ) const

returns the stored vector

◆ operator!=()

bool r_PointDouble::operator!= ( const r_PointDouble vectorArg) const

◆ operator*() [1/2]

r_PointDouble r_PointDouble::operator* ( const r_PointDouble vectorArg) const

diagonal extension of multiplication across the cartesian product

◆ operator*() [2/2]

r_PointDouble r_PointDouble::operator* ( double  scalarArg) const

scalar multiplication

◆ operator*=() [1/2]

r_PointDouble & r_PointDouble::operator*= ( const r_PointDouble a)

◆ operator*=() [2/2]

r_PointDouble & r_PointDouble::operator*= ( double  a)
noexcept

◆ operator+()

r_PointDouble r_PointDouble::operator+ ( const r_PointDouble vectorArg) const

Two points are equal if they have the same number of dimensions and the same values.

std::vector addition

◆ operator+=()

r_PointDouble & r_PointDouble::operator+= ( const r_PointDouble a)

Same as above but of the form PointA op= PointB; PointA is modified in place.

◆ operator-()

r_PointDouble r_PointDouble::operator- ( const r_PointDouble vectorArg) const

std::vector subtraction

◆ operator-=()

r_PointDouble & r_PointDouble::operator-= ( const r_PointDouble a)

◆ operator<()

bool r_PointDouble::operator< ( const r_PointDouble vectorArg) const

◆ operator=()

const r_PointDouble & r_PointDouble::operator= ( const r_PointDouble )

assignment: cleanup + copy

◆ operator==()

bool r_PointDouble::operator== ( const r_PointDouble vectorArg) const

Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in lexicographic order).

equal operator

◆ operator[]() [1/2]

double & r_PointDouble::operator[] ( size_t  )

subscriptor for write access

◆ operator[]() [2/2]

double r_PointDouble::operator[] ( size_t  ) const

subscriptor for read access

◆ print_status()

void r_PointDouble::print_status ( std::ostream &  s) const

writes the state of the object to the specified stream

◆ toIntPoint()

r_Point r_PointDouble::toIntPoint ( ) const

converts the stored vector to an r_Point (integer vertices)


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