NCBI C++ ToolKit
|
Search Toolkit Book for CCountryExtreme
#include <objects/seqfeat/SubSource.hpp>
Public Member Functions | |
CCountryExtreme (const string &country_name, int min_x, int min_y, int max_x, int max_y) | |
~CCountryExtreme (void) | |
string | GetCountry (void) const |
string | GetLevel0 (void) const |
string | GetLevel1 (void) const |
int | GetMinX (void) const |
int | GetMinY (void) const |
int | GetMaxX (void) const |
int | GetMaxY (void) const |
int | GetArea (void) const |
void | AddLine (const CCountryLine *line) |
bool | SetMinX (int min_x) |
bool | SetMinY (int min_y) |
bool | SetMaxX (int max_x) |
bool | SetMaxY (int max_y) |
bool | DoesOverlap (const CCountryExtreme *other_block) const |
bool | PreferTo (const CCountryExtreme *other_block, const string country, const string province, const bool prefer_new) const |
Private Attributes | |
string | m_CountryName |
string | m_Level0 |
string | m_Level1 |
int | m_MinX |
int | m_MinY |
int | m_MaxX |
int | m_MaxY |
int | m_Area |
Definition at line 338 of file SubSource.hpp.
CCountryExtreme::CCountryExtreme | ( | const string & | country_name, |
int | min_x, | ||
int | min_y, | ||
int | max_x, | ||
int | max_y | ||
) |
Definition at line 5368 of file SubSource.cpp.
References NStr::Find(), m_Area, m_Level0, m_Level1, m_MaxX, m_MaxY, m_MinX, m_MinY, NPOS, and NStr::TruncateSpacesInPlace().
CCountryExtreme::~CCountryExtreme | ( | void | ) |
Definition at line 5386 of file SubSource.cpp.
void CCountryExtreme::AddLine | ( | const CCountryLine * | line | ) |
Definition at line 5436 of file SubSource.cpp.
References CCountryLine::GetMaxX(), CCountryLine::GetMinX(), CCountryLine::GetY(), m_Area, SetMaxX(), SetMaxY(), SetMinX(), and SetMinY().
bool CCountryExtreme::DoesOverlap | ( | const CCountryExtreme * | other_block | ) | const |
|
inline |
Definition at line 351 of file SubSource.hpp.
References m_Area.
Referenced by CLatLonMap_Base::FindClosestToLatLon(), CLatLonMap_Base::GuessRegionForLatLon(), and CLatLonMap_Base::IsClosestToLatLon().
|
inline |
Definition at line 344 of file SubSource.hpp.
References m_CountryName.
Referenced by CSubSource::x_CalculateLatLonId().
|
inline |
Definition at line 345 of file SubSource.hpp.
References m_Level0.
Referenced by PreferTo(), and CSubSource::x_CalculateLatLonId().
|
inline |
Definition at line 346 of file SubSource.hpp.
References m_Level1.
Referenced by CLatLonMap_Base::FindClosestToLatLon(), PreferTo(), and CSubSource::x_CalculateLatLonId().
|
inline |
|
inline |
|
inline |
|
inline |
bool CCountryExtreme::PreferTo | ( | const CCountryExtreme * | other_block, |
const string | country, | ||
const string | province, | ||
const bool | prefer_new | ||
) | const |
Definition at line 5468 of file SubSource.cpp.
References NStr::EqualNocase(), GetLevel0(), GetLevel1(), NStr::IsBlank(), m_Level0, and m_Level1.
Referenced by CLatLonMap_Base::GuessRegionForLatLon().
|
private |
Definition at line 368 of file SubSource.hpp.
Referenced by AddLine(), CCountryExtreme(), and GetArea().
|
private |
Definition at line 361 of file SubSource.hpp.
Referenced by GetCountry().
|
private |
Definition at line 362 of file SubSource.hpp.
Referenced by CCountryExtreme(), GetLevel0(), and PreferTo().
|
private |
Definition at line 363 of file SubSource.hpp.
Referenced by CCountryExtreme(), GetLevel1(), and PreferTo().
|
private |
Definition at line 366 of file SubSource.hpp.
Referenced by CCountryExtreme(), DoesOverlap(), GetMaxX(), and SetMaxX().
|
private |
Definition at line 367 of file SubSource.hpp.
Referenced by CCountryExtreme(), DoesOverlap(), GetMaxY(), and SetMaxY().
|
private |
Definition at line 364 of file SubSource.hpp.
Referenced by CCountryExtreme(), DoesOverlap(), GetMinX(), and SetMinX().
|
private |
Definition at line 365 of file SubSource.hpp.
Referenced by CCountryExtreme(), DoesOverlap(), GetMinY(), and SetMinY().