bpp-popgen
2.2.0
|
#include <Bpp/PopGen/Locality.h>
Public Member Functions | |
Locality (const std::string name, const T x=0, const T y=0) | |
Build a new locality with name and coordinates. More... | |
Locality (const std::string name, const bpp::Point2D< T > &coord) | |
Build a new locality with name and coordinates. More... | |
virtual | ~Locality () |
Destroy a locality. More... | |
Locality< T > * | clone () const |
Implements the Clonable interface. More... | |
virtual bool | operator== (const Locality< T > &locality) const |
The == operator. More... | |
virtual bool | operator!= (const Locality< T > &locality) const |
The != operator. More... | |
void | setName (const std::string &name) |
Set the name of the locality. More... | |
const std::string & | getName () const |
Get the name of the locality. More... | |
Protected Attributes | |
std::string | name_ |
The Locality class.
This is a class derivated from the Point2D class. It's a Point2D with a name.
Definition at line 58 of file Locality.h.
|
inline |
Build a new locality with name and coordinates.
name | The name of the locality. |
x | The longitude. |
y | The latitude. |
Definition at line 73 of file Locality.h.
|
inline |
Build a new locality with name and coordinates.
name | The name of the locality. |
coord | The coordinates of the locality. |
Definition at line 83 of file Locality.h.
|
inlinevirtual |
Destroy a locality.
Definition at line 90 of file Locality.h.
|
inline |
Implements the Clonable interface.
Definition at line 97 of file Locality.h.
|
inline |
Get the name of the locality.
Definition at line 125 of file Locality.h.
Referenced by bpp::PopgenlibIO::parseLocality_(), and bpp::PopgenlibIO::write().
|
inlinevirtual |
The != operator.
Definition at line 112 of file Locality.h.
|
inlinevirtual |
The == operator.
returns true if both name and coordinates are identical between the two Locality objects.
Definition at line 104 of file Locality.h.
|
inline |
Set the name of the locality.
Definition at line 120 of file Locality.h.
Referenced by bpp::PopgenlibIO::parseLocality_().
|
protected |
Definition at line 62 of file Locality.h.
Referenced by bpp::Locality< double >::getName(), bpp::Locality< double >::operator==(), and bpp::Locality< double >::setName().