ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
MPOTensor_detail::IteratorWrapper< ConstIterator > Class Template Reference

#include <mpotensor_detail.h>

Public Types

typedef IteratorWrapper
< ConstIterator > 
self_type
 
typedef std::iterator_traits
< internal_iterator >
::value_type 
value_type
 

Public Member Functions

 IteratorWrapper (internal_iterator i)
 
void operator++ ()
 
void operator++ (int)
 
bool operator!= (self_type const &rhs)
 
value_type index () const
 
value_type operator* () const
 

Detailed Description

template<class ConstIterator>
class MPOTensor_detail::IteratorWrapper< ConstIterator >

Definition at line 74 of file mpotensor_detail.h.

Member Typedef Documentation

template<class ConstIterator >
typedef IteratorWrapper<ConstIterator> MPOTensor_detail::IteratorWrapper< ConstIterator >::self_type

Definition at line 79 of file mpotensor_detail.h.

template<class ConstIterator >
typedef std::iterator_traits<internal_iterator>::value_type MPOTensor_detail::IteratorWrapper< ConstIterator >::value_type

Definition at line 80 of file mpotensor_detail.h.

Constructor & Destructor Documentation

template<class ConstIterator >
MPOTensor_detail::IteratorWrapper< ConstIterator >::IteratorWrapper ( internal_iterator  i)
inline

Definition at line 82 of file mpotensor_detail.h.

82 : it_(i) { }

Member Function Documentation

template<class ConstIterator >
value_type MPOTensor_detail::IteratorWrapper< ConstIterator >::index ( ) const
inline

Definition at line 88 of file mpotensor_detail.h.

88 { return *it_; }
template<class ConstIterator >
bool MPOTensor_detail::IteratorWrapper< ConstIterator >::operator!= ( self_type const &  rhs)
inline

Definition at line 86 of file mpotensor_detail.h.

86 { return it_ != rhs.it_; }
template<class ConstIterator >
value_type MPOTensor_detail::IteratorWrapper< ConstIterator >::operator* ( ) const
inline

Definition at line 89 of file mpotensor_detail.h.

89  {
90  throw std::runtime_error("direct MPOTensor access via row iterators currently not implemented\n");
91  return *it_;
92  }
template<class ConstIterator >
void MPOTensor_detail::IteratorWrapper< ConstIterator >::operator++ ( )
inline

Definition at line 84 of file mpotensor_detail.h.

84 { ++it_; }
template<class ConstIterator >
void MPOTensor_detail::IteratorWrapper< ConstIterator >::operator++ ( int  )
inline

Definition at line 85 of file mpotensor_detail.h.

85 {it_++; }

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