Classes | Typedefs | Functions
test_stream.cxx File Reference
#include "WireCellUtil/Testing.h"
#include <string>
#include <memory>
#include <set>
#include <iostream>

Go to the source code of this file.

Classes

struct  MyData
 
class  IMySource
 
class  MyGen
 
class  MyFilter
 

Typedefs

typedef std::shared_ptr< const MyDataMyDataPtr
 
typedef std::set< MyDataPtrMyDataStore
 

Functions

std::ostream & operator<< (std::ostream &o, const MyData &md)
 
int main ()
 

Typedef Documentation

typedef std::shared_ptr<const MyData> MyDataPtr

Definition at line 29 of file test_stream.cxx.

typedef std::set<MyDataPtr> MyDataStore

Definition at line 30 of file test_stream.cxx.

Function Documentation

int main ( void  )

Definition at line 83 of file test_stream.cxx.

84 {
85  MyGen mg(10);
86  MyFilter mf(mg);
87  MyDataPtr p;
88  while ((p = mf())) {
89  cerr << *p << endl;
90  }
91 }
std::shared_ptr< const MyData > MyDataPtr
Definition: test_stream.cxx:29
static const double mg
Definition: Units.h:146
p
Definition: test.py:223
QTextStream & endl(QTextStream &s)
std::ostream& operator<< ( std::ostream &  o,
const MyData md 
)

Definition at line 24 of file test_stream.cxx.

24  {
25  o << "<MyData i:" << md.i << " f:" << md.f << " d:" << md.d << " s:\"" << md.s << "\">";
26  return o;
27 }
std::string s
Definition: test_stream.cxx:16
double d
Definition: test_stream.cxx:15
float f
Definition: test_stream.cxx:14