HOG2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GraphOccupancyInterface Class Reference

Occupancy interface which works with graphState and graphMove A wrapper to use with an exisitng BaseMapOccupancyInterface. More...

#include <AbstractWeightedSearchAlgorithm.h>

Inheritance diagram for GraphOccupancyInterface:
Inheritance graph
[legend]
Collaboration diagram for GraphOccupancyInterface:
Collaboration graph
[legend]

Public Member Functions

 GraphOccupancyInterface (BaseMapOccupancyInterface *b, Graph *_g)
 
virtual ~GraphOccupancyInterface ()
 
virtual void SetStateOccupied (const graphState &gs, bool b)
 
virtual bool GetStateOccupied (const graphState &gs)
 
virtual bool CanMove (const graphState &gs1, const graphState &gs2)
 
virtual void MoveUnitOccupancy (const graphState &gs1, const graphState &gs2)
 
- Public Member Functions inherited from OccupancyInterface< graphState, graphMove >
virtual ~OccupancyInterface ()
 

Private Member Functions

xyLoc Convert (const graphState &gs)
 
long CalculateIndex (uint16_t x, uint16_t y)
 

Private Attributes

BaseMapOccupancyInterfaceboi
 
Graphg
 

Detailed Description

Occupancy interface which works with graphState and graphMove A wrapper to use with an exisitng BaseMapOccupancyInterface.

It converts graphState to xyLoc, and performs the computation on the BaseMapOccupancyInterface.

Definition at line 39 of file AbstractWeightedSearchAlgorithm.h.

Constructor & Destructor Documentation

◆ GraphOccupancyInterface()

GraphOccupancyInterface::GraphOccupancyInterface ( BaseMapOccupancyInterface b,
Graph _g 
)
inline

Definition at line 42 of file AbstractWeightedSearchAlgorithm.h.

References boi, and g.

◆ ~GraphOccupancyInterface()

virtual GraphOccupancyInterface::~GraphOccupancyInterface ( )
inlinevirtual

Definition at line 43 of file AbstractWeightedSearchAlgorithm.h.

Member Function Documentation

◆ CalculateIndex()

long GraphOccupancyInterface::CalculateIndex ( uint16_t  x,
uint16_t  y 
)
private

◆ CanMove()

virtual bool GraphOccupancyInterface::CanMove ( const graphState gs1,
const graphState gs2 
)
inlinevirtual

◆ Convert()

xyLoc GraphOccupancyInterface::Convert ( const graphState gs)
inlineprivate

◆ GetStateOccupied()

virtual bool GraphOccupancyInterface::GetStateOccupied ( const graphState gs)
inlinevirtual

◆ MoveUnitOccupancy()

virtual void GraphOccupancyInterface::MoveUnitOccupancy ( const graphState gs1,
const graphState gs2 
)
inlinevirtual

◆ SetStateOccupied()

virtual void GraphOccupancyInterface::SetStateOccupied ( const graphState gs,
bool  b 
)
inlinevirtual

Member Data Documentation

◆ boi

BaseMapOccupancyInterface* GraphOccupancyInterface::boi
private

◆ g

Graph* GraphOccupancyInterface::g
private

Definition at line 72 of file AbstractWeightedSearchAlgorithm.h.

Referenced by Convert(), and GraphOccupancyInterface().


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