Jpp - 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 724 of file JManip.hh.

Member Typedef Documentation

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

Type definition of print function.

Definition at line 728 of file JManip.hh.

Constructor & Destructor Documentation

LAMBDA::LAMBDA ( const function_type f1)
inline

Constructor.

Parameters
f1(lambda) function

Definition at line 736 of file JManip.hh.

736  :
737  f1(f1)
738  {}
const function_type & f1
Definition: JManip.hh:756

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 748 of file JManip.hh.

749  {
750  object.f1(out);
751 
752  return out;
753  }

Member Data Documentation

const function_type& LAMBDA::f1
private

Definition at line 756 of file JManip.hh.


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