Go to the documentation of this file.
56 template<
class T>
class List;
57 template<
class T,
unsigned N>
class FixedList;
58 template<
class T,
int SizeMin>
class DynamicList;
83 inline void doAlloc();
87 inline void reAlloc(
const label len);
91 inline void copyList(
const List2& list);
95 void doResize(
const label len);
99 template<
class InputIterator>
102 InputIterator begIter,
103 InputIterator endIter,
119 inline static const List<T>&
null();
125 inline constexpr
List() noexcept;
128 explicit
List(const label len);
131 List(const label len, const
T& val);
176 List(std::initializer_list<
T> list);
182 template<
int SizeMin>
211 inline
void resize(const label len);
214 void resize(const label len, const
T& val);
233 inline void append(
const T& val);
258 template<
int SizeMin>
290 void operator=(std::initializer_list<T> list);
302 template<
int SizeMin>
340 template<
class TypeT = T>
341 typename std::enable_if<std::is_same<bool, TypeT>::value,
bool>
::type
342 inline set(
const label i,
bool val =
true)
348 else if (i >= this->size())
List< label > labelList
A List of labels.
T & newElmt(const label i)
void resize(const label len)
Adjust allocated size of list.
List< char > charList
A List of chars.
Istream & readList(Istream &is)
Read List from Istream, discarding contents of existing List.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
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.
Istream & operator>>(Istream &, directionInfo &)
void resize_nocopy(const label len)
Adjust allocated size of list without necessarily.
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 setSize(const label n)
Alias for resize()
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 operator=(const UList< T > &a)
Assignment to UList operator. Takes linear time.
label appendUniq(const T &val)
Append an element if not already in the list.
SubList< T > subList
Declare type of subList.
A list that is sorted upon construction or when explicitly requested with the sort() method.
void setSize(const label n, const T &val)
Alias for resize()
constexpr List() noexcept
Default construct.
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.
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 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.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...