SFCGAL  2.3.0
Namespaces | Classes | Typedefs | Functions
SFCGAL::graph Namespace Reference

graph namespace More...

Namespaces

 algorithm
 Graph algorithm namespace.
 

Classes

struct  Edge
 [private]An edge in a GeometryGraph with minimal requirements (some algorithms could need more information) More...
 
class  GeometryGraphBuilderT
 [private]Convert Geometries to a GeometryGraph. More...
 
class  GeometryGraphT
 [private]Represents the vertices and edges for a list of geometries. More...
 
struct  Vertex
 [private]A vertex in a GeometryGraph with minimal requirements (some algorithms could need a richer class) More...
 

Typedefs

using EdgeDirection = enum{DIRECT=0, REVERSE=1}
 Specifies the direction of an edge in a graph. More...
 
using GeometryGraph = GeometryGraphT< Vertex, Edge >
 Default GeometryGraph with predefined Vertex and Edge properties for general usage. More...
 
typedef GeometryGraphBuilderT< GeometryGraph > GeometryGraphBuilder
 Geometry graph builder type. More...
 

Functions

EdgeDirection reverse (const EdgeDirection &direction)
 Returns the reverse of the given EdgeDirection. More...
 

Detailed Description

graph namespace

Todo:
should be moved from detail to SFCGAL folder

Typedef Documentation

using SFCGAL::graph::EdgeDirection = typedef enum { DIRECT = 0, REVERSE = 1 }

Specifies the direction of an edge in a graph.

Default GeometryGraph with predefined Vertex and Edge properties for general usage.

Geometry graph builder type.

Function Documentation

EdgeDirection SFCGAL::graph::reverse ( const EdgeDirection &  direction)
inline

Returns the reverse of the given EdgeDirection.

Converts DIRECT to REVERSE and REVERSE to DIRECT.

Parameters
directionThe current edge direction.
Returns
The opposite edge direction.