$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > > Struct Template Reference

#include <mln/util/adjacency_matrix.hh>

Public Member Functions

 adjacency_matrix_impl_selector (const V &nelements)
void add (const V &e1, const V &e2)
bool are_adjacent (const V &e1, const V &e2) const
void clear ()
std::ostream & print_data_ (std::ostream &ostr) const
void remove (const V &e1, const V &e2)

Protected Attributes

adj_t adj_
unsigned nelements_

Public Types

typedef util::set
< util::ord_pair< V > > 
adj_t

Detailed Description

template<typename V>
struct mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >

Definition at line 90 of file adjacency_matrix.hh.

Constructor & Destructor Documentation

template<typename V >
mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::adjacency_matrix_impl_selector ( const V &  nelements)

Constructor.

Member Function Documentation

template<typename V >
void mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::add ( const V &  e1,
const V &  e2 
)

Make e1 and e2 adjacent.

template<typename V >
bool mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::are_adjacent ( const V &  e1,
const V &  e2 
) const

Check whether e1 and e2 are adjacent.

template<typename V >
void mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::clear ( )

Clear all adjacencies.

template<typename V >
std::ostream& mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::print_data_ ( std::ostream &  ostr) const

Print data to std::out.

template<typename V >
void mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::remove ( const V &  e1,
const V &  e2 
)

Remove adjacency between e1 and e2.

Member Data Documentation

template<typename V >
adj_t mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::adj_
protected

Definition at line 114 of file adjacency_matrix.hh.

template<typename V >
unsigned mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > >::nelements_
protected

Definition at line 117 of file adjacency_matrix.hh.

Member Typedef Documentation

template<typename V >
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.