Quantum++  v1.0.0-beta2
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="]")
 
 IOManipRange (const IOManipRange &)=default
 
IOManipRangeoperator= (const IOManipRange &)=default
 
- 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
template<typename InputIterator>
qpp::internal::IOManipRange< InputIterator >::IOManipRange ( const IOManipRange< InputIterator > &  )
default

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.

template<typename InputIterator>
IOManipRange& qpp::internal::IOManipRange< InputIterator >::operator= ( const IOManipRange< InputIterator > &  )
default

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: