PROJ C++ API
Public Types | Public Member Functions | List of all members
osgeo::proj::util::IComparable Class Referenceabstract

Interface for an object that can be compared to another. More...

#include <util.hpp>

Inheritance diagram for osgeo::proj::util::IComparable:
Inheritance graph
[legend]

Public Types

enum  Criterion { Criterion::STRICT, Criterion::EQUIVALENT }
 Comparison criterion. More...
 

Public Member Functions

virtual bool isEquivalentTo (const IComparable *other, Criterion criterion=Criterion::STRICT) const =0
 Returns whether an object is equivalent to another one. More...
 

Detailed Description

Interface for an object that can be compared to another.

Member Enumeration Documentation

Comparison criterion.

Enumerator
STRICT 

All attributes are identical.

EQUIVALENT 

The objects are equivalent for coordinate operations.

Member Function Documentation

virtual bool osgeo::proj::util::IComparable::isEquivalentTo ( const IComparable other,
Criterion  criterion = Criterion::STRICT 
) const
pure virtual

Returns whether an object is equivalent to another one.

Parameters
otherother object to compare to
criterioncomparaison criterion.
Returns
true if objects are equivalent.

Implemented in osgeo::proj::operation::ConcatenatedOperation, osgeo::proj::crs::DerivedVerticalCRS, osgeo::proj::crs::DerivedProjectedCRS, osgeo::proj::crs::DerivedGeographicCRS, osgeo::proj::crs::DerivedGeodeticCRS, osgeo::proj::crs::BoundCRS, osgeo::proj::datum::ParametricDatum, osgeo::proj::crs::CompoundCRS, osgeo::proj::datum::EngineeringDatum, osgeo::proj::crs::ParametricCRS, osgeo::proj::datum::TemporalDatum, osgeo::proj::crs::EngineeringCRS, osgeo::proj::datum::DynamicVerticalReferenceFrame, osgeo::proj::crs::TemporalCRS, osgeo::proj::datum::VerticalReferenceFrame, osgeo::proj::operation::SingleOperation, osgeo::proj::crs::ProjectedCRS, osgeo::proj::operation::OperationMethod, osgeo::proj::datum::DynamicGeodeticReferenceFrame, osgeo::proj::crs::DerivedCRS, osgeo::proj::common::ObjectUsage, osgeo::proj::datum::GeodeticReferenceFrame, osgeo::proj::operation::OperationParameterValue, osgeo::proj::crs::VerticalCRS, osgeo::proj::common::ObjectDomain, osgeo::proj::operation::ParameterValue, osgeo::proj::metadata::Extent, osgeo::proj::datum::Ellipsoid, osgeo::proj::operation::GeneralParameterValue, osgeo::proj::metadata::VerticalExtent, osgeo::proj::cs::CoordinateSystem, osgeo::proj::operation::OperationParameter, osgeo::proj::crs::GeodeticCRS, osgeo::proj::metadata::TemporalExtent, osgeo::proj::datum::PrimeMeridian, osgeo::proj::cs::CoordinateSystemAxis, osgeo::proj::operation::GeneralOperationParameter, osgeo::proj::metadata::GeographicBoundingBox, and osgeo::proj::metadata::GeographicExtent.


The documentation for this class was generated from the following file: