Go to the documentation of this file.
59 template<
class T>
class List;
60 template<
class T,
unsigned N>
class FixedList;
61 template<
class T,
int SizeMin>
class DynamicList;
87 inline void doAlloc();
90 inline void reAlloc(
const label len);
94 inline void copyList(
const List2& list);
97 void doResize(
const label newSize);
101 template<
class InputIterator>
104 InputIterator begIter,
105 InputIterator endIter,
121 inline static const List<T>&
null();
127 inline constexpr
List() noexcept;
130 explicit
List(const label len);
133 List(const label len, const
T& val);
165 template<class InputIterator>
166 List(InputIterator begIter, InputIterator endIter);
183 List(std::initializer_list<
T> list);
189 template<
int SizeMin>
215 inline
void resize(const label newSize);
218 void resize(const label newSize, const
T& val);
221 inline
void setSize(const label newSize);
224 inline
void setSize(const label newSize, const
T& val);
230 inline
void append(const
T& val);
248 template<
int SizeMin>
263 void operator=(const
UList<
T>& a);
266 void operator=(const
List<
T>& list);
269 void operator=(const
SLList<
T>& list);
280 void operator=(std::initializer_list<
T> list);
283 inline
void operator=(const
T& val);
286 inline
void operator=(const
zero);
289 void operator=(
List<
T>&& list);
292 template<
int SizeMin>
299 void operator=(
SLList<
T>&& list);
324 template<class TypeT =
T>
325 typename std::enable_if<std::is_same<
bool, TypeT>::value,
bool>::
type
326 inline
set(const label i,
bool val = true)
332 else if (i >= this->size())
366 for (
const T& val : obj)
List< label > labelList
A List of labels.
T & newElmt(const label i)
List< char > charList
A List of chars.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
unsigned Hasher(const void *data, size_t len, unsigned seed=0)
Bob Jenkins's 96-bit mixer hashing function (lookup3)
A List obtained as a section of another List.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
List< bool > boolList
A List of bools.
void append(const T &val)
Append an element at the end of the list.
unsigned operator()(const T &obj, unsigned seed=0) const
Istream & operator>>(Istream &, directionInfo &)
Template class for non-intrusive linked lists.
Hash function class. The default definition is for primitives, non-primitives used to hash entries on...
Forward declarations for SLList.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &list)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
void resize(const label newSize)
Adjust allocated size of list.
SubList< T > subList
Declare type of subList.
A list that is sorted upon construction or when explicitly requested with the sort() method.
constexpr List() noexcept
Null constructor.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
A 1D vector of objects of type <T> with a fixed length <N>.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
void clear()
Clear the list, i.e. set size to zero.
const T * cdata() const
Return a const pointer to the first data element.
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
void shallowCopy(const UList< T > &)=delete
No shallowCopy permitted.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
const Vector< label > N(dict.get< Vector< label >>("N"))
autoPtr< List< T > > clone() const
Clone.
void setSize(const label newSize)
Alias for resize(const label)
A template class to specify that a data type can be considered as being contiguous in memory.
unsigned operator()(const UList< T > &obj, unsigned seed=0) const
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...