Public Types | Public Member Functions | Public Attributes

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 id2element< G, Elt > exact_t
typedef void mutable_result
typedef Elt result

Public Member Functions

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

Public Attributes

g_

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


Member Typedef Documentation

typedef Function_v2v<void> mln::Function_v2v< id2element< G, Elt > >::category [inherited]
typedef id2element< G, Elt > mln::Object< id2element< G, Elt > >::exact_t [inherited]
typedef void mln::Function_v2v< id2element< G, Elt > >::mutable_result [inherited]
template<typename G , typename Elt >
typedef Elt mln::util::internal::id2element< G, Elt >::result

Constructor & Destructor Documentation

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

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)!

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


Member Data Documentation

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