|
| constexpr | Feature (const G &geometry) |
| |
| constexpr | Feature (G &&geometry) |
| |
| template<IFieldDefinition FieldDef> |
| constexpr bool | addAttribute (const FieldDef &fieldDefinition, math::convertible_without_loss< typename FieldDef::value_type > auto value) noexcept |
| |
| constexpr bool | hasAttribute (const IFieldDefinition auto &fieldDefinition) const noexcept |
| |
| template<IFieldDefinition FieldDef> |
| constexpr fishnet::Option< typename FieldDef::value_type > | getAttribute (const FieldDef &fieldDefinition) const noexcept |
| |
| template<IFieldDefinition FieldDef> |
| constexpr void | setAttribute (const FieldDef &fieldDefinition, math::convertible_without_loss< typename FieldDef::value_type > auto value) noexcept |
| |
| constexpr void | removeAttribute (const IFieldDefinition auto fieldDefinition) noexcept |
| |
| template<geometry::AnyGeometry O> |
| constexpr void | copyAttributes (const Feature< O > &source) noexcept |
| |
| constexpr const G & | getGeometry () const &noexcept |
| |
| constexpr G & | getGeometry () &noexcept |
| |
| constexpr G && | getGeometry () &&noexcept |
| |
| constexpr bool | operator== (const Feature< G > &feature) const noexcept |
| |
template<geometry::AnyGeometry G>
class fishnet::Feature< G >
Feature implementation storing a geometry and associated attributes.
- Template Parameters
-
| G | geometry type. A feature only ever compares and copies what it stores, so this is util::Object rather than geometry::Geometry: that admits the geometries of the geometry module as well as a type erased one, which models no single shape and would be rejected by Geometry. |