Maria GDK 5.0.0.1062
Documentation of native code in gdk_5_0_0 branch
Loading...
Searching...
No Matches
Maria::GeoIndex64 Class Reference

Public Types

enum class  ItemStateFlags : uint32_t {
  None = 0 , Active = 1 << 0 , Deleted = 1 << 1 , Filtered = 1 << 2 ,
  Historical = 1 << 3 , All = Active | Deleted | Filtered | Historical , ExternalStateSet = 1 << 7
}
 

Public Member Functions

int getMaxItemId () const
 
GeoIndex64Node * CreateNode (int level, const IndexCoord &origin)
 
template<class T >
bool FilterGenAndState (const T &item, int minGeneration, ItemStateFlags includedStates, ItemStateFlags excludedStates) const
 
bool MustFilterGenAndState (int minGeneration, ItemStateFlags includedStates, ItemStateFlags excludedStates) const
 
GeoIndex64Node & Root ()
 
void UpdatePoint (const IndexPointItem &ipi)
 
void AddPoint (const IndexPointItem &ipi)
 
void GetPoints (const IndexArea &bounds, std::vector< IndexPointItem > &result, int minGeneration=-1, ItemStateFlags includedStates=ItemStateFlags::All, ItemStateFlags excludedStates=ItemStateFlags::None) const
 
void GetPoints (const std::vector< int > &ids, std::vector< IndexPointItem > &result)
 
void GetAreas (IndexArea bounds, std::vector< IndexAreaItem > &result, int minGeneration=-1, ItemStateFlags includedStates=ItemStateFlags::All, ItemStateFlags excludedStates=ItemStateFlags::None) const
 
void GetAreaIds (IndexArea bounds, std::vector< int > &result, int minGeneration=-1, ItemStateFlags includedStates=ItemStateFlags::All, ItemStateFlags excludedStates=ItemStateFlags::None) const
 
void GetPointIds (IndexArea bounds, std::vector< int > &result, int minGeneration=-1, ItemStateFlags includedStates=ItemStateFlags::All, ItemStateFlags excludedStates=ItemStateFlags::None) const
 
int GetPointItemsCount (const IndexArea &bounds, int minGeneration=-1, ItemStateFlags includedStates=ItemStateFlags::All, ItemStateFlags excludedStates=ItemStateFlags::None) const
 
int GetAreaItemsCount (const IndexArea &bounds, int minGeneration=-1, ItemStateFlags includedStates=ItemStateFlags::All, ItemStateFlags excludedStates=ItemStateFlags::None) const
 
int GetLatestGeneration () const
 
bool DeleteItem (int id)
 
bool DeletePoint (int id)
 
bool SetPointState (int id, int generation, ItemStateFlags newState)
 
bool HasPoint (int id) const
 
void UpdateArea (const IndexAreaItem &iai)
 
void AddArea (const IndexAreaItem &iai)
 
bool HasArea (int id) const
 
bool DeleteArea (int id)
 
bool SetAreaState (int id, int generation, ItemStateFlags newItemState)
 
bool MovePoint (int id, const IndexCoord &newCoord, int generation)
 
bool MoveArea (int id, const IndexArea &newBounds, int generation)
 
int AllAreaItemsCount () const
 
int AllPointItemsCount () const
 

Static Public Member Functions

static const IGeoIndex64Projector & Projector ()
 
static IndexArea MakeBounds (double x0, double y0, double x1, double y1)
 
static std::vector< IndexArea > MakeSplitBounds (double x0, double y0, double x1, double y1)
 
static IndexCoord MakePoint (double x0, double y0)
 

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