11 #ifndef _LAYOUTDATAI_H_ 12 #define _LAYOUTDATAI_H_ 18 #include "NamespaceHeader.H" 35 return *(m_vector[a_index.
datInd()]);
41 return (*
this)[a_index()];
55 return *(m_vector[a_index.
datInd()]);
62 return (*
this)[a_index()];
68 return m_boxLayout.get(a_index);
74 return m_boxLayout.get(a_index());
80 return m_boxLayout.dataIterator();
86 return m_boxLayout.timedDataIterator();
121 for (; it.
ok(); ++it)
142 for (; it.
ok(); ++it)
144 unsigned int index = it().datInd();
156 #include "NamespaceFooter.H" virtual ~LayoutData()
Definition: LayoutDataI.H:115
int datInd() const
Definition: DataIndex.H:64
bool m_callDelete
Definition: LayoutData.H:131
LayoutData()
Definition: LayoutDataI.H:90
#define CH_assert(cond)
Definition: CHArray.H:37
Vector< T * > m_vector
Definition: LayoutData.H:124
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:145
DataIterator dataIterator() const
Definition: LayoutDataI.H:78
Box box(const DataIndex &a_index) const
Definition: LayoutDataI.H:66
virtual bool ok() const
return true if this iterator is still in its Layout
Definition: LayoutIterator.H:117
Definition: DataIterator.H:190
BoxLayout m_boxLayout
Definition: LayoutData.H:118
void resize(unsigned int isize)
Definition: Vector.H:346
unsigned int index(const LayoutIndex &index) const
Definition: BoxLayout.H:723
int size() const
Definition: DataIterator.H:218
#define CH_TIME(name)
Definition: CH_Timer.H:82
void allocate()
Definition: LayoutDataI.H:129
TimedDataIterator timedDataIterator() const
Definition: LayoutDataI.H:84
size_t size() const
Definition: Vector.H:192
virtual void define(const BoxLayout &a_dp)
Definition: LayoutDataI.H:107
static void Error(const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
Print out message to cerr and exit with the specified exit code.
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: DataIndex.H:112
const T & operator[](const DataIndex &a_index) const
const accessor function
Definition: LayoutDataI.H:25
bool isClosed() const
Definition: BoxLayout.H:729
Definition: TimedDataIterator.H:23