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();
133 inline CompactListList(CompactListList<T, Container>& list,
bool reuse);
139 inline autoPtr<CompactListList<T, Container>>
clone()
const;
147 inline label
size() const noexcept;
150 inline
bool empty() const noexcept;
153 inline const List<label>&
offsets() const;
159 inline const List<
T>&
m() const;
169 void setSize(const label mRows);
172 void setSize(const label mRows, const label nData);
175 void setSize(const label mRows, const label nData, const
T&);
182 inline
void resize(const label mRows);
185 inline
void resize(const label mRows, const label nData);
188 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"