PROBI
1.0
Main Page
Classes
Files
File List
All
Classes
Functions
WeightedPoint.hpp
1
#ifndef WEIGHTEDPOINT_H
2
#define WEIGHTEDPOINT_H
3
4
#include "Point.hpp"
5
9
class
WeightedPoint
:
public
Point
10
{
11
public
:
12
// constructors
13
WeightedPoint
();
14
WeightedPoint
(
WeightedPoint
const
& point) =
default
;
15
WeightedPoint
(
Point
const
& point);
16
WeightedPoint
(std::vector<double>
const
& coordinates);
17
WeightedPoint
(std::vector<double>
const
& coordinates,
double
weight);
18
19
// accessors / mutators
20
void
setWeight(
double
weight);
21
double
getWeight()
const
;
22
23
private
:
24
double
weight;
25
};
26
27
std::ostream& operator<<(std::ostream& stream,
WeightedPoint
const
& point);
28
29
#endif
probi-source
WeightedPoint.hpp
Generated on Wed Aug 28 2013 20:04:15 for PROBI by
1.8.4