Logo ROOT   master
Reference Guide
TMVA::Experimental::RTensor< V, C >::Iterator Class Reference

template<typename V, typename C = std::vector<V>>
class TMVA::Experimental::RTensor< V, C >::Iterator

Definition at line 263 of file RTensor.hxx.

Public Types

using difference_type = typename std::iterator< std::random_access_iterator_tag, Value_t >::difference_type
 

Public Member Functions

 Iterator (RTensor< Value_t, Container_t > &x, typename Index_t::value_type idx)
 
Index_t::value_type GetGlobalIndex () const
 
bool operator!= (const Iterator &rhs) const
 
Value_toperator* ()
 
Iterator operator+ (difference_type rhs) const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
Iteratoroperator+= (difference_type rhs)
 
Iterator operator- (difference_type rhs) const
 
difference_type operator- (const Iterator &rhs)
 
Iteratoroperator-- ()
 
Iterator operator-- (int)
 
Iteratoroperator-= (difference_type rhs)
 
bool operator< (const Iterator &rhs) const
 
bool operator<= (const Iterator &rhs) const
 
bool operator== (const Iterator &rhs) const
 
bool operator> (const Iterator &rhs) const
 
bool operator>= (const Iterator &rhs) const
 

Private Attributes

Index_t::value_type fGlobalIndex
 
RTensor< Value_t, Container_t > & fTensor
 

#include <TMVA/RTensor.hxx>

Inheritance diagram for TMVA::Experimental::RTensor< V, C >::Iterator:
[legend]

Member Typedef Documentation

◆ difference_type

template<typename V, typename C = std::vector<V>>
using TMVA::Experimental::RTensor< V, C >::Iterator::difference_type = typename std::iterator<std::random_access_iterator_tag, Value_t>::difference_type

Definition at line 268 of file RTensor.hxx.

Constructor & Destructor Documentation

◆ Iterator()

template<typename V, typename C = std::vector<V>>
TMVA::Experimental::RTensor< V, C >::Iterator::Iterator ( RTensor< Value_t, Container_t > &  x,
typename Index_t::value_type  idx 
)
inline

Definition at line 270 of file RTensor.hxx.

Member Function Documentation

◆ GetGlobalIndex()

template<typename V, typename C = std::vector<V>>
Index_t::value_type TMVA::Experimental::RTensor< V, C >::Iterator::GetGlobalIndex ( ) const
inline

Definition at line 295 of file RTensor.hxx.

◆ operator!=()

template<typename V, typename C = std::vector<V>>
bool TMVA::Experimental::RTensor< V, C >::Iterator::operator!= ( const Iterator rhs) const
inline

Definition at line 290 of file RTensor.hxx.

◆ operator*()

template<typename V, typename C = std::vector<V>>
Value_t& TMVA::Experimental::RTensor< V, C >::Iterator::operator* ( )
inline

Definition at line 280 of file RTensor.hxx.

◆ operator+()

template<typename V, typename C = std::vector<V>>
Iterator TMVA::Experimental::RTensor< V, C >::Iterator::operator+ ( difference_type  rhs) const
inline

Definition at line 275 of file RTensor.hxx.

◆ operator++() [1/2]

template<typename V, typename C = std::vector<V>>
Iterator& TMVA::Experimental::RTensor< V, C >::Iterator::operator++ ( )
inline

Definition at line 271 of file RTensor.hxx.

◆ operator++() [2/2]

template<typename V, typename C = std::vector<V>>
Iterator TMVA::Experimental::RTensor< V, C >::Iterator::operator++ ( int  )
inline

Definition at line 272 of file RTensor.hxx.

◆ operator+=()

template<typename V, typename C = std::vector<V>>
Iterator& TMVA::Experimental::RTensor< V, C >::Iterator::operator+= ( difference_type  rhs)
inline

Definition at line 278 of file RTensor.hxx.

◆ operator-() [1/2]

template<typename V, typename C = std::vector<V>>
Iterator TMVA::Experimental::RTensor< V, C >::Iterator::operator- ( difference_type  rhs) const
inline

Definition at line 276 of file RTensor.hxx.

◆ operator-() [2/2]

template<typename V, typename C = std::vector<V>>
difference_type TMVA::Experimental::RTensor< V, C >::Iterator::operator- ( const Iterator rhs)
inline

Definition at line 277 of file RTensor.hxx.

◆ operator--() [1/2]

template<typename V, typename C = std::vector<V>>
Iterator& TMVA::Experimental::RTensor< V, C >::Iterator::operator-- ( )
inline

Definition at line 273 of file RTensor.hxx.

◆ operator--() [2/2]

template<typename V, typename C = std::vector<V>>
Iterator TMVA::Experimental::RTensor< V, C >::Iterator::operator-- ( int  )
inline

Definition at line 274 of file RTensor.hxx.

◆ operator-=()

template<typename V, typename C = std::vector<V>>
Iterator& TMVA::Experimental::RTensor< V, C >::Iterator::operator-= ( difference_type  rhs)
inline

Definition at line 279 of file RTensor.hxx.

◆ operator<()

template<typename V, typename C = std::vector<V>>
bool TMVA::Experimental::RTensor< V, C >::Iterator::operator< ( const Iterator rhs) const
inline

Definition at line 292 of file RTensor.hxx.

◆ operator<=()

template<typename V, typename C = std::vector<V>>
bool TMVA::Experimental::RTensor< V, C >::Iterator::operator<= ( const Iterator rhs) const
inline

Definition at line 294 of file RTensor.hxx.

◆ operator==()

template<typename V, typename C = std::vector<V>>
bool TMVA::Experimental::RTensor< V, C >::Iterator::operator== ( const Iterator rhs) const
inline

Definition at line 285 of file RTensor.hxx.

◆ operator>()

template<typename V, typename C = std::vector<V>>
bool TMVA::Experimental::RTensor< V, C >::Iterator::operator> ( const Iterator rhs) const
inline

Definition at line 291 of file RTensor.hxx.

◆ operator>=()

template<typename V, typename C = std::vector<V>>
bool TMVA::Experimental::RTensor< V, C >::Iterator::operator>= ( const Iterator rhs) const
inline

Definition at line 293 of file RTensor.hxx.

Member Data Documentation

◆ fGlobalIndex

template<typename V, typename C = std::vector<V>>
Index_t::value_type TMVA::Experimental::RTensor< V, C >::Iterator::fGlobalIndex
private

Definition at line 266 of file RTensor.hxx.

◆ fTensor

template<typename V, typename C = std::vector<V>>
RTensor<Value_t, Container_t>& TMVA::Experimental::RTensor< V, C >::Iterator::fTensor
private

Definition at line 265 of file RTensor.hxx.


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