Rizin
unix-like reverse engineering framework and cli tools
gzomanip< T > Class Template Reference

#include <zfstream.h>

Public Member Functions

 gzomanip (gzofstream &(*f)(gzofstream &, T), T v)
 

Private Attributes

gzofstream &(* func )(gzofstream &, T)
 
T val
 

Friends

gzofstreamoperator<< (gzofstream &, const gzomanip< T > &)
 

Detailed Description

template<class T>
class gzomanip< T >

Definition at line 92 of file zfstream.h.

Constructor & Destructor Documentation

◆ gzomanip()

template<class T >
gzomanip< T >::gzomanip ( gzofstream &(*)(gzofstream &, T f,
T  v 
)
inline

Definition at line 95 of file zfstream.h.

95 : func(f), val(v) { }
gzofstream &(* func)(gzofstream &, T)
Definition: zfstream.h:97
const char * v
Definition: dsignal.c:12
#define f(i)
Definition: sha256.c:46

Friends And Related Function Documentation

◆ operator<<

template<class T >
gzofstream& operator<< ( gzofstream s,
const gzomanip< T > &  m 
)
friend

Definition at line 101 of file zfstream.h.

102 {
103  return (*m.func)(s, m.val);
104 }
static RzSocket * s
Definition: rtr.c:28

Member Data Documentation

◆ func

template<class T >
gzofstream&(* gzomanip< T >::func) (gzofstream &, T)
private

Definition at line 97 of file zfstream.h.

◆ val

template<class T >
T gzomanip< T >::val
private

Definition at line 98 of file zfstream.h.


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