46 #include <Bpp/Graphics/Point2D.h> 59 public bpp::Point2D<T>
73 Locality<T>(
const std::string name,
const T x = 0,
const T y = 0) :
74 bpp::Point2D<T>(x, y),
83 Locality<T>(
const std::string name,
const bpp::Point2D<T> &coord) :
84 bpp::Point2D<T>(coord),
106 return this->getX() == locality.getX() && this->getY() == locality.getY() &&
name_ == locality.
name_;
114 return !(locality == *
this);
129 #endif // _LOCALITY_H_ Locality< T > * clone() const
Implements the Clonable interface.
virtual bool operator!=(const Locality< T > &locality) const
The != operator.
const std::string & getName() const
Get the name of the locality.
void setName(const std::string &name)
Set the name of the locality.
virtual bool operator==(const Locality< T > &locality) const
The == operator.