Public Types | Public Member Functions | Protected Attributes

mln::util::internal::adjacency_matrix_impl_selector< V, metal::bool_< false > > Struct Template Reference

#include <adjacency_matrix.hh>

List of all members.

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_

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.


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.


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.

Definition at line 251 of file adjacency_matrix.hh.


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.

Definition at line 262 of file adjacency_matrix.hh.

References mln::make::ord_pair().

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.

Definition at line 290 of file adjacency_matrix.hh.

References mln::make::ord_pair().

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

Clear all adjacencies.

Definition at line 282 of file adjacency_matrix.hh.

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.

Definition at line 299 of file adjacency_matrix.hh.

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.

Definition at line 272 of file adjacency_matrix.hh.

References mln::make::ord_pair().


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.