56template<
class T>
class List;
57template<
class T,
unsigned N>
class FixedList;
58template<
class T,
int SizeMin>
class DynamicList;
60template<
class T>
class PtrList;
62template<
class T> Istream&
operator>>(Istream& is, List<T>& list);
82 inline void doAlloc();
86 inline void reAlloc(
const label len);
90 inline void copyList(
const List2& list);
94 void doResize(
const label len);
98 template<
class InputIterator>
101 InputIterator begIter,
102 InputIterator endIter,
127 explicit
List(const label len);
130 List(const label len, const
T& val);
175 List(std::initializer_list<
T> list);
181 template<
int SizeMin>
207 inline
void resize(const label len);
210 void resize(const label len, const
T& val);
229 inline void append(
const T& val);
254 template<
int SizeMin>
282 void operator=(std::initializer_list<T> list);
294 template<
int SizeMin>
329 template<
class TypeT = T>
330 typename std::enable_if<std::is_same<bool, TypeT>::value,
bool>
::type
331 inline set(
const label i,
bool val =
true)
337 else if (i >= this->
size())
389template<
class T,
class ListComparePredicate>
394 const ListComparePredicate& comp
Forward declarations for SLList.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A 1D vector of objects of type <T> with a fixed length <N>.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Template class for non-intrusive linked lists.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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 transfer(List< T > &list)
T & newElmt(const label i)
SubList< T > subList
Declare type of subList.
void setSize(const label n)
Alias for resize()
autoPtr< List< T > > clone() const
Clone.
void resize_nocopy(const label len)
Adjust allocated size of list without necessarily.
void operator=(const UList< T > &a)
Assignment to UList operator. Takes linear time.
constexpr List() noexcept
Default construct.
void append(const T &val)
Append an element at the end of the list.
label appendUniq(const T &val)
Append an element if not already in the list.
void shallowCopy(const UList< T > &)=delete
No shallowCopy permitted.
void setSize(const label n, const T &val)
Alias for resize()
void resize(const label len)
Adjust allocated size of list.
void clear()
Clear the list, i.e. set size to zero.
Istream & readList(Istream &is)
Read List from Istream, discarding contents of existing List.
static const List< T > & null()
Return a null List.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A List obtained as a section of another List.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const noexcept
The number of elements in the UList.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i)
List< label > labelList
A List of labels.
static Istream & input(Istream &is, IntRange< T > &range)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Istream & operator>>(Istream &, directionInfo &)
labelList sortedOrder(const UList< T > &input)
Return the (stable) sort order for the list.
List< bool > boolList
A List of bools.
List< char > charList
A List of chars.
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
const Vector< label > N(dict.get< Vector< label > >("N"))