DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | List of all members
Diades::Utils::Is< _Object > Struct Template Reference

#include <Functors.hh>

Public Types

using Object = _Object
 

Public Member Functions

Objectoperator() (Object &obj)
 
const Objectoperator() (const Object &obj) const
 

Detailed Description

template<typename _Object>
struct Diades::Utils::Is< _Object >

Unary Functor that return its argument Can be used like this. Suppose toto is a bool then Is<bool>()(toto) return the value of toto (use ??)

Definition at line 154 of file Functors.hh.

Member Typedef Documentation

◆ Object

template<typename _Object>
using Diades::Utils::Is< _Object >::Object = _Object

Definition at line 156 of file Functors.hh.

Member Function Documentation

◆ operator()() [1/2]

template<typename _Object>
Object& Diades::Utils::Is< _Object >::operator() ( Object obj)
inline
Parameters
obj
Returns
the current object

Definition at line 163 of file Functors.hh.

◆ operator()() [2/2]

template<typename _Object>
const Object& Diades::Utils::Is< _Object >::operator() ( const Object obj) const
inline
Parameters
obj
Returns
the current object (const)

Definition at line 174 of file Functors.hh.


The documentation for this struct was generated from the following file: