atlas::util::PartitionPolygon class

Base classes

class Polygon
Polygon.

Derived classes

class atlas::grid::StructuredPartitionPolygon
StructuredPartitionPolygon class that holds the boundary of a structured grid partition.
class atlas::mesh::PartitionPolygon
Polygon class that holds the boundary of a mesh partition.
class ExplicitPartitionPolygon

Public types

class RectangleXY
using PointsXY = std::vector<Point2>
using PointsLonLat = std::vector<Point2>
using edge_set_t = std::set<edge_t, typename edge_t::LessThan>
using container_t = std::vector<idx_t>

Constructors, destructors, conversion operators

Polygon()
Polygon(const edge_set_t&)
operator bool() const

Public functions

auto inscribedDomain() const -> const RectangleXY& virtual
Return inscribed rectangular domain (not rotated)
auto halo() const -> idx_t virtual
Return value of halo.
auto footprint() const -> size_t virtual
Return the memory footprint of the Polygon.
void outputPythonScript(const eckit::PathName&, const eckit::Configuration& = util::NoConfig()) const virtual
Output a python script that plots the partition.
auto json(const eckit::Configuration& = util::NoConfig()) const -> std::string virtual
Output a JSON file with partition polygons.
auto xy() const -> PointsXY pure virtual
All (x,y) coordinates defining a polygon. Last point should match first.
auto lonlat() const -> PointsLonLat pure virtual
All (lon,lat) coordinates defining a polygon. Last point should match first.
void allGather(PartitionPolygons&) const pure virtual
auto operator+=(const Polygon&) -> Polygon&
void print(std::ostream&) const
auto assign(T... args) -> T
auto at(T... args) -> T
auto back(T... args) -> T
auto begin(T... args) -> T
auto capacity(T... args) -> T
auto cbegin(T... args) -> T
auto cend(T... args) -> T
auto clear(T... args) -> T
auto crbegin(T... args) -> T
auto crend(T... args) -> T
auto data(T... args) -> T
auto emplace(T... args) -> T
auto emplace_back(T... args) -> T
auto empty(T... args) -> T
auto end(T... args) -> T
auto erase(T... args) -> T
auto front(T... args) -> T
auto get_allocator(T... args) -> T
auto insert(T... args) -> T
auto max_size(T... args) -> T
auto operator[](T... args) -> T
auto pop_back(T... args) -> T
auto push_back(T... args) -> T
auto rbegin(T... args) -> T
auto rend(T... args) -> T
auto reserve(T... args) -> T
auto resize(T... args) -> T
auto shrink_to_fit(T... args) -> T
auto size(T... args) -> T
auto swap(T... args) -> T