Quantum++  v1.0-rc3
A modern C++11 quantum computing library
qpp::internal::IOManipPointer< PointerType > Class Template Reference

#include <internal/classes/iomanip.h>

Inheritance diagram for qpp::internal::IOManipPointer< PointerType >:
Collaboration diagram for qpp::internal::IOManipPointer< PointerType >:

Public Member Functions

 IOManipPointer (const PointerType *p, idx N, const std::string &separator, const std::string &start="[", const std::string &end="]")
 
 IOManipPointer (const IOManipPointer &)=default
 
IOManipPointeroperator= (const IOManipPointer &)=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

const PointerType * p_
 
idx N_
 
std::string separator_
 
std::string start_
 
std::string end_
 

Constructor & Destructor Documentation

◆ IOManipPointer() [1/2]

template<typename PointerType>
qpp::internal::IOManipPointer< PointerType >::IOManipPointer ( const PointerType *  p,
idx  N,
const std::string &  separator,
const std::string &  start = "[",
const std::string &  end = "]" 
)
inlineexplicit

◆ IOManipPointer() [2/2]

template<typename PointerType>
qpp::internal::IOManipPointer< PointerType >::IOManipPointer ( const IOManipPointer< PointerType > &  )
default

Member Function Documentation

◆ display()

template<typename PointerType>
std::ostream& qpp::internal::IOManipPointer< PointerType >::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.

◆ operator=()

template<typename PointerType>
IOManipPointer& qpp::internal::IOManipPointer< PointerType >::operator= ( const IOManipPointer< PointerType > &  )
default

Member Data Documentation

◆ end_

template<typename PointerType>
std::string qpp::internal::IOManipPointer< PointerType >::end_
private

◆ N_

template<typename PointerType>
idx qpp::internal::IOManipPointer< PointerType >::N_
private

◆ p_

template<typename PointerType>
const PointerType* qpp::internal::IOManipPointer< PointerType >::p_
private

◆ separator_

template<typename PointerType>
std::string qpp::internal::IOManipPointer< PointerType >::separator_
private

◆ start_

template<typename PointerType>
std::string qpp::internal::IOManipPointer< PointerType >::start_
private

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