45 #include <type_traits>
46 #include <initializer_list>
55 template<
class T,
unsigned Size>
class FixedList;
57 template<
class T,
unsigned Size>
58 void writeEntry(Ostream& os,
const FixedList<T, Size>&);
60 template<
class T,
unsigned Size>
63 template<
class T,
unsigned Size>
66 template<
class T>
class UList;
69 template<
class LListBase,
class T>
class LList;
77 template<
class T,
unsigned Size>
82 Size && Size <= INT_MAX,
83 "Size must be positive (non-zero) and also fit as a signed value"
96 template<
class HashT=Hash<T>>
129 template<
class InputIterator>
133 inline FixedList(std::initializer_list<T>);
164 inline const T*
cdata()
const;
175 inline const T&
first()
const;
181 inline const T&
last()
const;
229 inline void operator=(std::initializer_list<T>);
325 inline bool empty()
const;
357 friend Istream&
operator>> <
T, Size>
361 friend Ostream& operator<< <T, Size>
A 1D vector of objects of type <T> with a fixed size <Size>.
label size_type
The type that can represent the size of a FixedList.
bool operator>(const FixedList< T, Size > &) const
Compare two FixedLists lexicographically. Takes linear time.
const_reverse_iterator crbegin() const
Return const_reverse_iterator to begin reverse traversing FixedList.
label difference_type
The type that can represent the difference between any two.
reverse_iterator rbegin()
Return reverse_iterator to begin reverse traversing the FixedList.
T & first()
Return the first element of the list.
label max_size() const
Return size of the largest possible FixedList.
bool operator!=(const FixedList< T, Size > &) const
The opposite of the equality operation. Takes linear time.
T value_type
Type of values the FixedList contains.
label rcIndex(const label i) const
Return the reverse circular index, i.e. the previous index.
const T * const_iterator
Random access iterator for traversing FixedList.
void checkIndex(const label i) const
Check index i is within valid range (0 ... size-1)
const_iterator cend() const
Return const_iterator to end traversing the constant FixedList.
bool operator>=(const FixedList< T, Size > &) const
Return true if !(a < b). Takes linear time.
T * iterator
Random access iterator for traversing FixedList.
std::reverse_iterator< const_iterator > const_reverse_iterator
Reverse iterator for reverse traversal of constant FixedList.
friend Ostream & operator(Ostream &, const FixedList< T, Size > &)
Write FixedList to Ostream.
label size() const
Return the number of elements in the FixedList.
void resize(const label)
Dummy resize function.
iterator end()
Return an iterator to end traversing the FixedList.
label fcIndex(const label i) const
Return the forward circular index, i.e. the next index.
bool operator==(const FixedList< T, Size > &) const
Equality operation on FixedLists of the same type.
bool empty() const
Return true if the FixedList is empty (ie, size() is zero)
const_iterator cbegin() const
Return const_iterator to begin traversing the constant FixedList.
T & operator[](const label)
Return element of FixedList.
std::reverse_iterator< iterator > reverse_iterator
Reverse iterator for reverse traversal of FixedList.
T & reference
Type that can be used for storing into.
const T * cdata() const
Return a const pointer to the first data element,.
void checkSize(const label size) const
Check size is within valid range (0 ... size)
const_reverse_iterator crend() const
Return const_reverse_iterator to end reverse traversing FixedList.
iterator begin()
Return an iterator to begin traversing the FixedList.
void transfer(const FixedList< T, Size > &)
Copy (not transfer) the argument contents.
void operator=(const T v[Size])
Assignment to array operator. Takes linear time.
T * data()
Return a pointer to the first data element,.
bool operator<=(const FixedList< T, Size > &) const
Return true if !(a > b). Takes linear time.
reverse_iterator rend()
Return reverse_iterator to end reverse traversing the FixedList.
void setSize(const label)
Dummy setSize function.
bool operator<(const FixedList< T, Size > &) const
Compare two FixedLists lexicographically. Takes linear time.
T & last()
Return the last element of the list.
FixedList()
Null constructor.
void swap(FixedList< T, Size > &)
Swap two FixedLists of the same type in constant time.
autoPtr< FixedList< T, Size > > clone() const
Clone.
const T & const_reference
Type that can be used for storing into.
void checkStart(const label start) const
Check start is within valid range (0 ... size-1)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Template class for non-intrusive linked lists.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)