Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
LAMBDA Struct Reference

Auxiliary data structure to convert (lambda) function to printable object. More...

#include <JManip.hh>

Public Types

typedef std::function< void(std::ostream &)> function_type
 Type definition of print function. More...
 

Public Member Functions

 LAMBDA (const function_type &f1)
 Constructor. More...
 

Private Attributes

const function_typef1
 

Friends

std::ostream & operator<< (std::ostream &out, const LAMBDA &object)
 Write printable object to output stream. More...
 

Detailed Description

Auxiliary data structure to convert (lambda) function to printable object.

The (lambda) function should conform with the type definition LAMBDA::function_type.
This data structure acts as a simple "wrapper" and should be used if the lambda has capture functionality.

Definition at line 726 of file JManip.hh.

Member Typedef Documentation

typedef std::function<void(std::ostream&)> LAMBDA::function_type

Type definition of print function.

Definition at line 730 of file JManip.hh.

Constructor & Destructor Documentation

LAMBDA::LAMBDA ( const function_type f1)
inline

Constructor.

Parameters
f1(lambda) function

Definition at line 738 of file JManip.hh.

738  :
739  f1(f1)
740  {}
const function_type & f1
Definition: JManip.hh:758

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const LAMBDA object 
)
friend

Write printable object to output stream.

Parameters
outoutput stream
objectprintable object
Returns
output stream

Definition at line 750 of file JManip.hh.

751  {
752  object.f1(out);
753 
754  return out;
755  }

Member Data Documentation

const function_type& LAMBDA::f1
private

Definition at line 758 of file JManip.hh.


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