Go to the documentation of this file.
51 #include <initializer_list>
62 template<
class T>
class List;
63 template<
class T,
unsigned N>
class FixedList;
64 template<
class T,
int SizeMin>
class DynamicList;
90 inline void doAlloc();
93 inline void reAlloc(
const label len);
97 inline void copyList(
const List2& list);
100 void doResize(
const label newSize);
104 template<
class InputIterator>
107 InputIterator begIter,
108 InputIterator endIter,
124 inline static const List<T>&
null();
130 inline constexpr
List() noexcept;
164 template<class InputIterator>
165 List(InputIterator begIter, InputIterator endIter);
182 List(std::initializer_list<
T> list);
188 template<
int SizeMin>
247 template<
int SizeMin>
262 void operator=(const
UList<
T>& a);
265 void operator=(const
List<
T>& list);
268 void operator=(const
SLList<
T>& list);
275 void operator=(std::initializer_list<
T> list);
278 inline
void operator=(const
T&
val);
281 inline
void operator=(const
zero);
284 void operator=(
List<
T>&& list);
287 template<
int SizeMin>
294 void operator=(
SLList<
T>&& list);
319 template<class TypeT =
T>
320 typename std::enable_if<std::is_same<
bool, TypeT>::value,
bool>::
type
327 else if (i >= this->size())
361 for (
const T&
val : obj)
List< label > labelList
A List of labels.
T & newElmt(const label i)
label ListType::const_reference val
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), which can be used to avoid manipulating objects that are...
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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...
label ListType::const_reference const label start
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), which can be used to avoid manipulating objects that ar...