52 #ifndef CompactListList_H
53 #define CompactListList_H
64 template<
class T,
class Container>
class CompactListList;
66 template<
class T,
class Container> Istream&
operator>>
69 CompactListList<T, Container>&
71 template<
class T,
class Container> Ostream&
operator<<
74 const CompactListList<T, Container>&
82 template<
class T,
class Container = List<T>>
101 inline static const CompactListList<T, Container>&
null();
132 inline CompactListList(CompactListList<T, Container>& lst,
bool reuse);
138 inline autoPtr<CompactListList<T, Container>>
clone()
const;
146 inline label
size() const noexcept;
149 inline
bool empty() const noexcept;
152 inline const List<label>&
offsets() const;
158 inline const List<
T>&
m() const;
168 void setSize(const label mRows);
171 void setSize(const label mRows, const label nData);
174 void setSize(const label mRows, const label nData, const
T&);
181 inline
void resize(const label mRows);
184 inline
void resize(const label mRows, const label nData);
187 inline
void resize(const label mRows, const label nData, const
T&);
209 inline label
index(const label row, const label col) const;
221 inline UList<
T>
operator[](const label i);
224 inline const UList<
T>
operator[](const label i) const;
227 inline
T&
operator()(const label i, const label j);
230 inline const
T&
operator()(const label i, const label j) const;
249 friend Istream&
operator>> <
T, Container>
256 friend Ostream&
operator<< <
T, Container>
270 #include "CompactListListI.H"