#include <adjacency_matrix.hh>

Public Types | |
| typedef image2d< bool > | adj_t |
| Data structure used to store adjacency information. | |
Public Member Functions | |
| void | add (const V &e1, const V &e2) |
Make e1 and e2 adjacent. | |
| adjacency_matrix_impl_selector (const V &nelements) | |
| Constructor. | |
| bool | are_adjacent (const V &e1, const V &e2) const |
Check whether e1 and e2 are adjacent. | |
| void | clear () |
| Clear all adjacencies. | |
| std::ostream & | print_data_ (std::ostream &ostr) const |
| Print data to std::out. | |
| void | remove (const V &e1, const V &e2) |
Remove adjacency between e1 and e2. | |
Protected Attributes | |
| adj_t | adj_ |
Definition at line 59 of file adjacency_matrix.hh.
| typedef image2d<bool> mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_t |
Data structure used to store adjacency information.
Reimplemented in mln::util::adjacency_matrix< V >.
Definition at line 62 of file adjacency_matrix.hh.
| mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adjacency_matrix_impl_selector | ( | const V & | nelements | ) |
Constructor.
Definition at line 179 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::clear().
| void mln::util::internal::adjacency_matrix_impl_selector< V, Q >::add | ( | const V & | e1, | |
| const V & | e2 | |||
| ) |
Make e1 and e2 adjacent.
Definition at line 187 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, mln::opt::at(), mln::internal::image_base< T, S, E >::is_valid(), and mln::image2d< T >::nrows().
| bool mln::util::internal::adjacency_matrix_impl_selector< V, Q >::are_adjacent | ( | const V & | e1, | |
| const V & | e2 | |||
| ) | const |
Check whether e1 and e2 are adjacent.
Definition at line 223 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, mln::opt::at(), mln::internal::image_base< T, S, E >::is_valid(), and mln::image2d< T >::nrows().
| void mln::util::internal::adjacency_matrix_impl_selector< V, Q >::clear | ( | ) |
Clear all adjacencies.
Definition at line 215 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, mln::data::fill(), and mln::internal::image_base< T, S, E >::is_valid().
Referenced by mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adjacency_matrix_impl_selector().
| std::ostream & mln::util::internal::adjacency_matrix_impl_selector< V, Q >::print_data_ | ( | std::ostream & | ostr | ) | const |
Print data to std::out.
Definition at line 237 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, mln::internal::image_base< T, S, E >::is_valid(), and mln::debug::println().
| void mln::util::internal::adjacency_matrix_impl_selector< V, Q >::remove | ( | const V & | e1, | |
| const V & | e2 | |||
| ) |
Remove adjacency between e1 and e2.
Definition at line 201 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, mln::opt::at(), mln::internal::image_base< T, S, E >::is_valid(), and mln::image2d< T >::nrows().
adj_t mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_ [protected] |
Definition at line 83 of file adjacency_matrix.hh.
Referenced by mln::util::internal::adjacency_matrix_impl_selector< V, Q >::add(), mln::util::internal::adjacency_matrix_impl_selector< V, Q >::are_adjacent(), mln::util::internal::adjacency_matrix_impl_selector< V, Q >::clear(), mln::util::internal::adjacency_matrix_impl_selector< V, Q >::print_data_(), and mln::util::internal::adjacency_matrix_impl_selector< V, Q >::remove().
1.7.1