mln::util::internal::id2element< G, Elt > Struct Template Reference

#include <id2element.hh>

Inheritance diagram for mln::util::internal::id2element< G, Elt >:

Inheritance graph

List of all members.

Public Types

typedef Function_v2v< void > category
typedef E exact_t
typedef void mutable_result
typedef Elt result

Public Member Functions

 id2element (const Graph< G > &g)
 id2element ()
Elt operator() (unsigned id) const

Public Attributes

g_


Detailed Description

template<typename G, typename Elt>
struct mln::util::internal::id2element< G, Elt >

Definition at line 46 of file id2element.hh.


Member Typedef Documentation

template<typename E>
typedef Function_v2v<void> mln::Function_v2v< E >::category [inherited]

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 172 of file object.hh.

template<typename E>
typedef void mln::Function_v2v< E >::mutable_result [inherited]

Reimplemented in mln::util::array< T >.

Definition at line 94 of file function.hh.

template<typename G, typename Elt>
typedef Elt mln::util::internal::id2element< G, Elt >::result

Definition at line 48 of file id2element.hh.


Constructor & Destructor Documentation

template<typename G, typename Elt>
mln::util::internal::id2element< G, Elt >::id2element (  )  [inline]

Definition at line 62 of file id2element.hh.

template<typename G, typename Elt>
mln::util::internal::id2element< G, Elt >::id2element ( const Graph< G > &  g  )  [inline]

Definition at line 68 of file id2element.hh.


Member Function Documentation

template<typename G, typename Elt>
Elt mln::util::internal::id2element< G, Elt >::operator() ( unsigned  id  )  const [inline]

FIXME: cannot check whether the graph has its element since we must call the proper member according to the element type (has_v or has_e)!

Definition at line 76 of file id2element.hh.

References mln::util::internal::id2element< G, Elt >::g_.


Member Data Documentation

template<typename G, typename Elt>
G mln::util::internal::id2element< G, Elt >::g_

Definition at line 54 of file id2element.hh.

Referenced by mln::util::internal::id2element< G, Elt >::operator()().


Generated on Sun Apr 25 02:07:33 2010 for Milena (Olena) by  doxygen 1.5.6