LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Protected Attributes | List of all members
lsst::pex::logging::BaseTmplPrinterIter< T > Class Template Reference

#include <PropertyPrinter.h>

Inheritance diagram for lsst::pex::logging::BaseTmplPrinterIter< T >:
lsst::pex::logging::PrinterIter lsst::pex::logging::TmplPrinterIter< T >

Public Member Functions

 BaseTmplPrinterIter (typename std::vector< T >::const_iterator listiter, typename std::vector< T >::const_iterator beginiter, typename std::vector< T >::const_iterator enditer)
 
virtual ~BaseTmplPrinterIter ()
 
virtual PrinterIteroperator++ ()
 
virtual PrinterIteroperator-- ()
 
virtual bool operator== (const PrinterIter &that) const
 
virtual bool operator!= (const PrinterIter &that) const
 
virtual bool notAtEnd () const
 
virtual bool notLTBegin () const
 
bool operator== (const BaseTmplPrinterIter &that) const
 
bool operator!= (const BaseTmplPrinterIter &that) const
 
- Public Member Functions inherited from lsst::pex::logging::PrinterIter
virtual ~PrinterIter ()=0
 
virtual std::ostream & write (std::ostream *strm) const =0
 
const std::string operator* () const
 

Protected Attributes

std::vector< T >::const_iterator _it
 
std::vector< T >::const_iterator _begin
 
std::vector< T >::const_iterator _end
 

Detailed Description

template<class T>
class lsst::pex::logging::BaseTmplPrinterIter< T >

Definition at line 117 of file PropertyPrinter.h.

Constructor & Destructor Documentation

template<class T>
lsst::pex::logging::BaseTmplPrinterIter< T >::BaseTmplPrinterIter ( typename std::vector< T >::const_iterator  listiter,
typename std::vector< T >::const_iterator  beginiter,
typename std::vector< T >::const_iterator  enditer 
)
inline

Definition at line 119 of file PropertyPrinter.h.

122  : _it(listiter), _begin(beginiter), _end(enditer) { }
std::vector< T >::const_iterator _it
std::vector< T >::const_iterator _begin
std::vector< T >::const_iterator _end
template<class T >
lsst::pex::logging::BaseTmplPrinterIter< T >::~BaseTmplPrinterIter ( )
virtual

Definition at line 141 of file PropertyPrinter.h.

141 { }

Member Function Documentation

template<class T >
bool lsst::pex::logging::BaseTmplPrinterIter< T >::notAtEnd ( ) const
virtual

return true if this iterator is not pointing just past the last value in the list.

Implements lsst::pex::logging::PrinterIter.

Definition at line 159 of file PropertyPrinter.h.

159 { return (_it != _end); }
std::vector< T >::const_iterator _it
std::vector< T >::const_iterator _end
template<class T >
bool lsst::pex::logging::BaseTmplPrinterIter< T >::notLTBegin ( ) const
virtual

return true if this iterator is not pointing before the first value in the list. Thus, *this should return a legal string.

Implements lsst::pex::logging::PrinterIter.

Definition at line 161 of file PropertyPrinter.h.

161 { return (_it >= _begin); }
std::vector< T >::const_iterator _it
std::vector< T >::const_iterator _begin
template<class T >
bool lsst::pex::logging::BaseTmplPrinterIter< T >::operator!= ( const PrinterIter that) const
virtual

return true if this iterator is not pointing to the same value as another pointer. This method is not recommend for testing whether an iterator is past the beginning or end of the list; notAtEnd() and notLTBegin() are more efficient.

Implements lsst::pex::logging::PrinterIter.

Definition at line 153 of file PropertyPrinter.h.

153  {
154  const BaseTmplPrinterIter<T> *thit =
155  dynamic_cast<const BaseTmplPrinterIter<T>*>(&that);
156  return (thit == 0) ? true : (*this != *thit);
157 }
template<class T>
bool lsst::pex::logging::BaseTmplPrinterIter< T >::operator!= ( const BaseTmplPrinterIter< T > &  that) const
inline

Definition at line 133 of file PropertyPrinter.h.

133  {
134  return (this->_it != that._it);
135  }
std::vector< T >::const_iterator _it
template<class T >
PrinterIter & lsst::pex::logging::BaseTmplPrinterIter< T >::operator++ ( )
virtual

move the iterator forward one position

Implements lsst::pex::logging::PrinterIter.

Definition at line 143 of file PropertyPrinter.h.

143 { ++_it; return *this; }
std::vector< T >::const_iterator _it
template<class T >
PrinterIter & lsst::pex::logging::BaseTmplPrinterIter< T >::operator-- ( )
virtual

move the iterator backward one position

Implements lsst::pex::logging::PrinterIter.

Definition at line 145 of file PropertyPrinter.h.

145 { --_it; return *this; }
std::vector< T >::const_iterator _it
template<class T >
bool lsst::pex::logging::BaseTmplPrinterIter< T >::operator== ( const PrinterIter that) const
virtual

return true if this iterator is pointing to the same value as another pointer. This method is not recommend for testing whether an iterator is past the beginning or end of the list; notAtEnd() and notLTBegin() are more efficient.

Implements lsst::pex::logging::PrinterIter.

Definition at line 147 of file PropertyPrinter.h.

147  {
148  const BaseTmplPrinterIter<T> *thit =
149  dynamic_cast<const BaseTmplPrinterIter<T>*>(&that);
150  return (thit == 0) ? false : (*this == *thit);
151 }
template<class T>
bool lsst::pex::logging::BaseTmplPrinterIter< T >::operator== ( const BaseTmplPrinterIter< T > &  that) const
inline

Definition at line 130 of file PropertyPrinter.h.

130  {
131  return (this->_it == that._it);
132  }
std::vector< T >::const_iterator _it

Member Data Documentation

template<class T>
std::vector<T>::const_iterator lsst::pex::logging::BaseTmplPrinterIter< T >::_begin
protected

Definition at line 137 of file PropertyPrinter.h.

template<class T>
std::vector<T>::const_iterator lsst::pex::logging::BaseTmplPrinterIter< T >::_end
protected

Definition at line 137 of file PropertyPrinter.h.

template<class T>
std::vector<T>::const_iterator lsst::pex::logging::BaseTmplPrinterIter< T >::_it
protected

Definition at line 137 of file PropertyPrinter.h.


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