#include <gmvl_connection_cache.h>
Public Member Functions | |
gmvl_connection_cache () | |
~gmvl_connection_cache () | |
void | add (const gmvl_node_sptr node1, const gmvl_node_sptr node2) |
vcl_vector< int > | get_connected_nodes (const gmvl_node_sptr node) const |
vcl_vector< int > | get_connected_nodes (const gmvl_node_sptr node1, const gmvl_node_sptr node2) const |
vcl_vector< int > | get_connected_nodes (const gmvl_node_sptr node1, const gmvl_node_sptr node2, const gmvl_node_sptr node3) const |
vcl_vector< int > | get_connected_nodes (const vcl_vector< gmvl_node_sptr > nodes) const |
void | rebuild () |
Protected Attributes | |
vcl_vector< gmvl_connection_sptr > | connections_ |
vcl_vector< vcl_vector< int > > | cache_ |
vbl_bit_array_2d | cachebool_ |
Friends | |
vcl_ostream & | operator<< (vcl_ostream &os, const gmvl_connection_cache &c) |
Definition at line 17 of file gmvl_connection_cache.h.
gmvl_connection_cache::gmvl_connection_cache | ( | ) |
Definition at line 17 of file gmvl_connection_cache.cxx.
gmvl_connection_cache::~gmvl_connection_cache | ( | ) |
Definition at line 21 of file gmvl_connection_cache.cxx.
void gmvl_connection_cache::add | ( | const gmvl_node_sptr | node1, |
const gmvl_node_sptr | node2 | ||
) |
Definition at line 27 of file gmvl_connection_cache.cxx.
vcl_vector<int> gmvl_connection_cache::get_connected_nodes | ( | const gmvl_node_sptr | node | ) | const [inline] |
Definition at line 29 of file gmvl_connection_cache.h.
vcl_vector< int > gmvl_connection_cache::get_connected_nodes | ( | const gmvl_node_sptr | node1, |
const gmvl_node_sptr | node2 | ||
) | const |
Definition at line 60 of file gmvl_connection_cache.cxx.
vcl_vector< int > gmvl_connection_cache::get_connected_nodes | ( | const gmvl_node_sptr | node1, |
const gmvl_node_sptr | node2, | ||
const gmvl_node_sptr | node3 | ||
) | const |
Definition at line 73 of file gmvl_connection_cache.cxx.
vcl_vector< int > gmvl_connection_cache::get_connected_nodes | ( | const vcl_vector< gmvl_node_sptr > | nodes | ) | const |
Definition at line 88 of file gmvl_connection_cache.cxx.
void gmvl_connection_cache::rebuild | ( | ) |
Definition at line 112 of file gmvl_connection_cache.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
const gmvl_connection_cache & | c | ||
) | [friend] |
Definition at line 151 of file gmvl_connection_cache.cxx.
vcl_vector<vcl_vector<int> > gmvl_connection_cache::cache_ [protected] |
Definition at line 48 of file gmvl_connection_cache.h.
vbl_bit_array_2d gmvl_connection_cache::cachebool_ [protected] |
Definition at line 51 of file gmvl_connection_cache.h.
vcl_vector<gmvl_connection_sptr> gmvl_connection_cache::connections_ [protected] |
Definition at line 45 of file gmvl_connection_cache.h.