Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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.
 

Public Member Functions

 LAMBDA (const function_type &f1)
 Constructor.
 

Private Attributes

const function_typef1
 

Friends

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

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

◆ function_type

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::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 Symbol Documentation

◆ operator<<

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

◆ f1

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: