CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
bistream_iterator< T > Class Template Reference

#include <bstream_iterator.h>

Inheritance diagram for bistream_iterator< T >:

Public Member Functions

 bistream_iterator ()
 
 bistream_iterator (binary_ifstream &s)
 
bool operator!= (const bistream_iterator &rhs)
 
const Toperator* () const
 
bistream_iteratoroperator++ ()
 
bistream_iteratoroperator++ (int)
 
const Toperator-> () const
 
bool operator== (const bistream_iterator &rhs)
 

Private Member Functions

void read ()
 

Private Attributes

binary_ifstreamstream_
 
T value_
 

Detailed Description

template<typename T>
class bistream_iterator< T >

Definition at line 10 of file bstream_iterator.h.

Constructor & Destructor Documentation

template<typename T >
bistream_iterator< T >::bistream_iterator ( )
inline

Definition at line 15 of file bstream_iterator.h.

15 : stream_(0) {}
binary_ifstream * stream_
template<typename T >
bistream_iterator< T >::bistream_iterator ( binary_ifstream s)
inline

Definition at line 17 of file bstream_iterator.h.

References bistream_iterator< T >::read().

17  : stream_(&s) {
18  read();
19  }
binary_ifstream * stream_

Member Function Documentation

template<typename T >
bool bistream_iterator< T >::operator!= ( const bistream_iterator< T > &  rhs)
inline

Definition at line 37 of file bstream_iterator.h.

References bistream_iterator< T >::operator==().

37  {
38  return !operator==(rhs);
39  }
bool operator==(const bistream_iterator &rhs)
template<typename T >
const T& bistream_iterator< T >::operator* ( void  ) const
inline

Definition at line 21 of file bstream_iterator.h.

References bistream_iterator< T >::value_.

21 {return value_;}
template<typename T >
bistream_iterator& bistream_iterator< T >::operator++ ( void  )
inline

Definition at line 25 of file bstream_iterator.h.

References bistream_iterator< T >::read().

25 {read(); return *this;}
template<typename T >
bistream_iterator& bistream_iterator< T >::operator++ ( int  )
inline

Definition at line 27 of file bstream_iterator.h.

References bistream_iterator< T >::read(), and createJobs::tmp.

27  {
29  read();
30  return tmp;
31  }
tmp
align.sh
Definition: createJobs.py:716
template<typename T >
const T* bistream_iterator< T >::operator-> ( ) const
inline

Definition at line 23 of file bstream_iterator.h.

References bistream_iterator< T >::value_.

23 {return &value_;}
template<typename T >
bool bistream_iterator< T >::operator== ( const bistream_iterator< T > &  rhs)
inline

Definition at line 33 of file bstream_iterator.h.

References bistream_iterator< T >::stream_.

Referenced by bistream_iterator< T >::operator!=().

33  {
34  return stream_ == rhs.stream_;
35  }
binary_ifstream * stream_
template<typename T >
void bistream_iterator< T >::read ( )
inlineprivate

Definition at line 46 of file bstream_iterator.h.

References bistream_iterator< T >::stream_, and bistream_iterator< T >::value_.

Referenced by bistream_iterator< T >::bistream_iterator(), edmIntegrityCheck.PublishToFileSystem::get(), and bistream_iterator< T >::operator++().

46  {
47  if (stream_ != 0) {
48  // if (!(*stream_ >> value_)) stream_ = 0;
49  if (!(*stream_ >> value_)) {
50  stream_ = 0;
51  // std::cout << "istream_iterator: stream turned bad, set stream_ to zero" << std::endl;
52  }
53  }
54  }
binary_ifstream * stream_

Member Data Documentation

template<typename T >
binary_ifstream* bistream_iterator< T >::stream_
private
template<typename T >
T bistream_iterator< T >::value_
private