Quantum++  v0.8
C++11 quantum computing library
qpp::internal::IOManipRange< InputIterator > Class Template Reference

#include <internal/classes/iomanip.h>

Inheritance diagram for qpp::internal::IOManipRange< InputIterator >:
Collaboration diagram for qpp::internal::IOManipRange< InputIterator >:

Public Member Functions

 IOManipRange (InputIterator first, InputIterator last, const std::string &separator, const std::string &start="[", const std::string &end="]")
 
- Public Member Functions inherited from qpp::IDisplay
 IDisplay ()=default
 Default constructor. More...
 
 IDisplay (const IDisplay &)=default
 Default copy constructor. More...
 
 IDisplay (IDisplay &&)=default
 Default move constructor. More...
 
IDisplayoperator= (const IDisplay &)=default
 Default copy assignment operator. More...
 
IDisplayoperator= (IDisplay &&)=default
 Default move assignment operator. More...
 
virtual ~IDisplay ()=default
 Default virtual destructor. More...
 

Private Member Functions

std::ostream & display (std::ostream &os) const override
 Must be overridden by all derived classes. More...
 

Private Attributes

InputIterator _first
 
InputIterator _last
 
std::string _separator
 
std::string _start
 
std::string _end
 

Constructor & Destructor Documentation

template<typename InputIterator >
qpp::internal::IOManipRange< InputIterator >::IOManipRange ( InputIterator  first,
InputIterator  last,
const std::string &  separator,
const std::string &  start = "[",
const std::string &  end = "]" 
)
inlineexplicit

Member Function Documentation

template<typename InputIterator >
std::ostream& qpp::internal::IOManipRange< InputIterator >::display ( std::ostream &  os) const
inlineoverrideprivatevirtual

Must be overridden by all derived classes.

The actual stream extraction processing is performed by the overriden member function in the derived class. This function is automatically invoked by friend inline std::ostream& operator<<(std::ostream& os, const IDisplay& rhs).

Implements qpp::IDisplay.

Member Data Documentation

template<typename InputIterator >
std::string qpp::internal::IOManipRange< InputIterator >::_end
private
template<typename InputIterator >
InputIterator qpp::internal::IOManipRange< InputIterator >::_first
private
template<typename InputIterator >
InputIterator qpp::internal::IOManipRange< InputIterator >::_last
private
template<typename InputIterator >
std::string qpp::internal::IOManipRange< InputIterator >::_separator
private
template<typename InputIterator >
std::string qpp::internal::IOManipRange< InputIterator >::_start
private

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