Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
fishnet::graph::JSONFileAdjacency< BaseContainer > Class Template Reference

#include <JSONFileAdjacency.hpp>

Inheritance diagram for fishnet::graph::JSONFileAdjacency< BaseContainer >:
Collaboration diagram for fishnet::graph::JSONFileAdjacency< BaseContainer >:

Public Member Functions

 JSONFileAdjacency (BaseContainer &&baseContainer, const std::filesystem::path &filePath, util::UnaryFunction< N, nlohmann::json > auto toJson, util::UnaryFunction< nlohmann::json, N > auto fromJson)
 
 ~JSONFileAdjacency ()
 
- Public Member Functions inherited from fishnet::graph::AdjacencyContainerDecorator< BaseContainer >
 AdjacencyContainerDecorator (const BaseContainer &delegate)
 
 AdjacencyContainerDecorator (BaseContainer &&delegate)
 
void addAdjacency (const N &from, const N &to)
 
void addAdjacency (N &&from, N &&to)
 
void addAdjacencies (util::forward_range_of< std::pair< N, N > > auto &&pairs)
 
bool addNode (const N &node)
 
bool addNode (N &&node)
 
bool addNodes (util::forward_range_of< N > auto &&nodes)
 
void removeNode (const N &node)
 
void removeNodes (util::forward_range_of< N > auto &&nodes)
 
void removeAdjacency (const N &from, const N &to)
 
void removeAdjacencies (util::forward_range_of< std::pair< N, N > > auto &&pairs)
 
bool contains (const N &node) const noexcept
 
bool hasAdjacency (const N &from, const N &to) const noexcept
 
auto adjacency (const N &node) const noexcept
 
auto nodes () const noexcept
 
auto getAdjacencyPairs () const noexcept
 
void clear () noexcept
 

Additional Inherited Members

- Public Types inherited from fishnet::graph::AdjacencyContainerDecorator< BaseContainer >
using node_type = typename AdjDelegate::node_type
 
using equality_predicate = typename AdjDelegate::equality_predicate
 
using hash_function = typename AdjDelegate::hash_function
 

Constructor & Destructor Documentation

◆ JSONFileAdjacency()

template<typename BaseContainer >
fishnet::graph::JSONFileAdjacency< BaseContainer >::JSONFileAdjacency ( BaseContainer &&  baseContainer,
const std::filesystem::path &  filePath,
util::UnaryFunction< N, nlohmann::json > auto  toJson,
util::UnaryFunction< nlohmann::json, N > auto  fromJson 
)
inline

◆ ~JSONFileAdjacency()

template<typename BaseContainer >
fishnet::graph::JSONFileAdjacency< BaseContainer >::~JSONFileAdjacency ( )
inline

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