#include <adjacency_matrix.hh>
Public Types | |
typedef util::set < util::ord_pair< V > > | 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_ |
unsigned | nelements_ |
Definition at line 90 of file adjacency_matrix.hh.
typedef util::set< util::ord_pair<V> > mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::adj_t |
Data structure used to store adjacency information.
Definition at line 93 of file adjacency_matrix.hh.
mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::adjacency_matrix_impl_selector | ( | const V & | nelements | ) | [inline] |
void mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::add | ( | const V & | e1, | |
const V & | e2 | |||
) | [inline] |
Make e1
and e2
adjacent.
Definition at line 262 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, and mln::make::ord_pair().
bool mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::are_adjacent | ( | const V & | e1, | |
const V & | e2 | |||
) | const [inline] |
Check whether e1
and e2
are adjacent.
Definition at line 290 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, mln::image2d< T >::has(), and mln::make::ord_pair().
void mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::clear | ( | ) | [inline] |
Clear all adjacencies.
Definition at line 282 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_.
std::ostream & mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::print_data_ | ( | std::ostream & | ostr | ) | const [inline] |
Print data to std::out.
Definition at line 299 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_.
void mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::remove | ( | const V & | e1, | |
const V & | e2 | |||
) | [inline] |
Remove adjacency between e1
and e2
.
Definition at line 272 of file adjacency_matrix.hh.
References mln::util::internal::adjacency_matrix_impl_selector< V, Q >::adj_, mln::image2d< T >::has(), and mln::make::ord_pair().
adj_t mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::adj_ [protected] |
Definition at line 114 of file adjacency_matrix.hh.
unsigned mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::nelements_ [protected] |
Definition at line 117 of file adjacency_matrix.hh.