Public Types | Public Member Functions | Public Attributes

mln::graph::attribute::card_t Struct Reference

Compute the cardinality of every component in a graph. More...

#include <card.hh>

List of all members.

Public Types

typedef util::array< unsigned > result
 Type of the computed value.

Public Member Functions

void added_to_queue (unsigned id)
void final ()
template<typename G >
void init (const Graph< G > &g)
void new_component_from_vertex (unsigned id)
void next_component ()
void process_vertex (unsigned)
bool to_be_queued (unsigned id)
bool to_be_treated (unsigned id)

Public Attributes

unsigned comp
util::array< unsigned > data
util::array< bool > deja_vu_

Detailed Description

Compute the cardinality of every component in a graph.

Returns:
An array with the cardinality for each component. Components are labeled from 0.

Definition at line 61 of file graph/attribute/card.hh.


Member Typedef Documentation

Type of the computed value.

Definition at line 64 of file graph/attribute/card.hh.


Member Function Documentation

void mln::graph::attribute::card_t::added_to_queue ( unsigned  id  )  [inline]

Definition at line 90 of file graph/attribute/card.hh.

References comp, data, and deja_vu_.

void mln::graph::attribute::card_t::final (  )  [inline]

Definition at line 99 of file graph/attribute/card.hh.

template<typename G >
void mln::graph::attribute::card_t::init ( const Graph< G > &  g  )  [inline]
void mln::graph::attribute::card_t::new_component_from_vertex ( unsigned  id  )  [inline]

Definition at line 78 of file graph/attribute/card.hh.

References mln::util::array< T >::append(), data, and deja_vu_.

void mln::graph::attribute::card_t::next_component (  )  [inline]

Definition at line 96 of file graph/attribute/card.hh.

References comp.

void mln::graph::attribute::card_t::process_vertex ( unsigned   )  [inline]

Definition at line 84 of file graph/attribute/card.hh.

bool mln::graph::attribute::card_t::to_be_queued ( unsigned  id  )  [inline]

Definition at line 87 of file graph/attribute/card.hh.

References deja_vu_.

bool mln::graph::attribute::card_t::to_be_treated ( unsigned  id  )  [inline]

Definition at line 75 of file graph/attribute/card.hh.

References deja_vu_.


Member Data Documentation

Definition at line 102 of file graph/attribute/card.hh.

Referenced by added_to_queue(), init(), and next_component().

Definition at line 104 of file graph/attribute/card.hh.

Referenced by added_to_queue(), init(), and new_component_from_vertex().