10 #ifndef _Proto_DataIndex_ 11 #define _Proto_DataIndex_ 14 #include "Proto_DBLInternals.H" 21 shared_ptr<DBLInternals > m_dblInternals;
27 inline DataIndex(
const shared_ptr<DBLInternals> a_dblInternals,
int a_index)
29 m_dblInternals = a_dblInternals;
30 m_currentInt = a_index;
32 inline void defineEndIndex(
const shared_ptr<DBLInternals> a_dblInternals,
int a_end)
34 m_dblInternals = a_dblInternals;
38 inline int intIndex()
const {
return m_currentInt; };
40 inline bool operator==(
const DataIndex& a_di)
const 41 {
return (m_dblInternals == a_di.m_dblInternals) && (m_currentInt == a_di.m_currentInt);};
43 inline bool operator!=(
const DataIndex& a_di)
const 44 {
return !(*
this==a_di);};
46 inline operator int()
const {
return m_currentInt; };
50 return os <<
"index " << a_di.intIndex() <<
" " ;
std::ostream & operator<<(std::ostream &a_os, const Box &a_box)
OStream Operator.
Definition: Proto_Box.H:850
Definition: Proto_Box.H:11
Definition: Proto_DataIndex.H:17