Public Types | Public Member Functions

mln::fun::v2v::component< T, i > Struct Template Reference

Functor that accesses the i-th component of a value. More...

#include <component.hh>

Inheritance diagram for mln::fun::v2v::component< T, i >:
Inheritance graph

List of all members.

Public Types

typedef Function_v2v< void > category
typedef component< T, i > exact_t
typedef void mutable_result

Public Member Functions

typedef mln_trait_value_comp (T, i) result
result operator() (const T &v) const

Detailed Description

template<typename T, unsigned i>
struct mln::fun::v2v::component< T, i >

Functor that accesses the i-th component of a value.

Definition at line 51 of file component.hh.


Member Typedef Documentation

typedef Function_v2v<void> mln::Function_v2v< component< T, i > >::category [inherited]

Reimplemented from mln::Function< component< T, i > >.

Definition at line 126 of file function.hh.

typedef component< T, i > mln::Object< component< T, i > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef void mln::Function_v2v< component< T, i > >::mutable_result [inherited]

Definition at line 127 of file function.hh.


Member Function Documentation

template<typename T , unsigned i>
typedef mln::fun::v2v::component< T, i >::mln_trait_value_comp ( T  ,
 
)
template<typename T , unsigned i>
component< T, i >::result mln::fun::v2v::component< T, i >::operator() ( const T v  )  const [inline]

Definition at line 64 of file component.hh.