Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 = std::ptrdiff_t
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = Value_t *
 
using reference = Value_t &
 
using value_type = Value_t
 

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)
 
difference_type operator- (const Iterator &rhs)
 
Iterator operator- (difference_type rhs) const
 
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>

Member Typedef Documentation

◆ difference_type

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

Definition at line 270 of file RTensor.hxx.

◆ iterator_category

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

Definition at line 268 of file RTensor.hxx.

◆ pointer

template<typename V , typename C = std::vector<V>>
using TMVA::Experimental::RTensor< V, C >::Iterator::pointer = Value_t *

Definition at line 271 of file RTensor.hxx.

◆ reference

template<typename V , typename C = std::vector<V>>
using TMVA::Experimental::RTensor< V, C >::Iterator::reference = Value_t &

Definition at line 272 of file RTensor.hxx.

◆ value_type

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

Definition at line 269 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 274 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 299 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>>
Value_t & TMVA::Experimental::RTensor< V, C >::Iterator::operator* ( )
inline

Definition at line 284 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 279 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 275 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 276 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 282 of file RTensor.hxx.

◆ operator-() [1/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 281 of file RTensor.hxx.

◆ operator-() [2/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 280 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 277 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 278 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 283 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 296 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 298 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 289 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 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 297 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.

  • tmva/tmva/inc/TMVA/RTensor.hxx