A 1D vector of objects of type <T> with a fixed size <Size>. More...
Classes | |
class | Hash |
Hashing function class. More... | |
Public Types | |
typedef T | value_type |
Type of values the FixedList contains. More... | |
typedef T & | reference |
Type that can be used for storing into. More... | |
typedef const T & | const_reference |
Type that can be used for storing into. More... | |
typedef label | difference_type |
The type that can represent the difference between any two. More... | |
typedef label | size_type |
The type that can represent the size of a FixedList. More... | |
typedef T * | iterator |
Random access iterator for traversing FixedList. More... | |
typedef const T * | const_iterator |
Random access iterator for traversing FixedList. More... | |
typedef std::reverse_iterator< iterator > | reverse_iterator |
Reverse iterator for reverse traversal of FixedList. More... | |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Reverse iterator for reverse traversal of constant FixedList. More... | |
Public Member Functions | |
FixedList () | |
Null constructor. More... | |
FixedList (const T &) | |
Construct from value. More... | |
FixedList (const T v[Size]) | |
Construct from C-array. More... | |
template<class InputIterator > | |
FixedList (InputIterator first, InputIterator last) | |
Construct given start and end iterators. More... | |
FixedList (std::initializer_list< T >) | |
Construct from an initialiser list. More... | |
FixedList (const UList< T > &) | |
Construct from UList. More... | |
FixedList (const SLList< T > &) | |
Construct from SLList. More... | |
FixedList (Istream &) | |
Construct from Istream. More... | |
autoPtr< FixedList< T, Size > > | clone () const |
Clone. More... | |
label | fcIndex (const label i) const |
Return the forward circular index, i.e. the next index. More... | |
label | rcIndex (const label i) const |
Return the reverse circular index, i.e. the previous index. More... | |
const T * | cdata () const |
Return a const pointer to the first data element,. More... | |
T * | data () |
Return a pointer to the first data element,. More... | |
T & | first () |
Return the first element of the list. More... | |
const T & | first () const |
Return first element of the list. More... | |
T & | last () |
Return the last element of the list. More... | |
const T & | last () const |
Return the last element of the list. More... | |
void | checkStart (const label start) const |
Check start is within valid range (0 ... size-1) More... | |
void | checkSize (const label size) const |
Check size is within valid range (0 ... size) More... | |
void | checkIndex (const label i) const |
Check index i is within valid range (0 ... size-1) More... | |
void | resize (const label) |
Dummy resize function. More... | |
void | setSize (const label) |
Dummy setSize function. More... | |
void | transfer (const FixedList< T, Size > &) |
Copy (not transfer) the argument contents. More... | |
T & | operator[] (const label) |
Return element of FixedList. More... | |
const T & | operator[] (const label) const |
Return element of constant FixedList. More... | |
void | operator= (const T v[Size]) |
Assignment to array operator. Takes linear time. More... | |
void | operator= (const UList< T > &) |
Assignment to UList operator. Takes linear time. More... | |
void | operator= (const SLList< T > &) |
Assignment to SLList operator. Takes linear time. More... | |
void | operator= (std::initializer_list< T >) |
Assignment to an initialiser list. Takes linear time. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
iterator | begin () |
Return an iterator to begin traversing the FixedList. More... | |
iterator | end () |
Return an iterator to end traversing the FixedList. More... | |
const_iterator | cbegin () const |
Return const_iterator to begin traversing the constant FixedList. More... | |
const_iterator | cend () const |
Return const_iterator to end traversing the constant FixedList. More... | |
const_iterator | begin () const |
Return const_iterator to begin traversing the constant FixedList. More... | |
const_iterator | end () const |
Return const_iterator to end traversing the constant FixedList. More... | |
reverse_iterator | rbegin () |
Return reverse_iterator to begin reverse traversing the FixedList. More... | |
reverse_iterator | rend () |
Return reverse_iterator to end reverse traversing the FixedList. More... | |
const_reverse_iterator | crbegin () const |
Return const_reverse_iterator to begin reverse traversing FixedList. More... | |
const_reverse_iterator | crend () const |
Return const_reverse_iterator to end reverse traversing FixedList. More... | |
const_reverse_iterator | rbegin () const |
Return const_reverse_iterator to begin reverse traversing FixedList. More... | |
const_reverse_iterator | rend () const |
Return const_reverse_iterator to end reverse traversing FixedList. More... | |
label | size () const |
Return the number of elements in the FixedList. More... | |
label | max_size () const |
Return size of the largest possible FixedList. More... | |
bool | empty () const |
Return true if the FixedList is empty (ie, size() is zero) More... | |
void | swap (FixedList< T, Size > &) |
Swap two FixedLists of the same type in constant time. More... | |
bool | operator== (const FixedList< T, Size > &) const |
Equality operation on FixedLists of the same type. More... | |
bool | operator!= (const FixedList< T, Size > &) const |
The opposite of the equality operation. Takes linear time. More... | |
bool | operator< (const FixedList< T, Size > &) const |
Compare two FixedLists lexicographically. Takes linear time. More... | |
bool | operator> (const FixedList< T, Size > &) const |
Compare two FixedLists lexicographically. Takes linear time. More... | |
bool | operator<= (const FixedList< T, Size > &) const |
Return true if !(a > b). Takes linear time. More... | |
bool | operator>= (const FixedList< T, Size > &) const |
Return true if !(a < b). Takes linear time. More... | |
Static Public Member Functions | |
static const FixedList< T, Size > & | null () |
Return a null FixedList. More... | |
Friends | |
Istream & | operator>> (Istream &, FixedList< T, Size > &) |
Read List from Istream, discarding contents of existing List. More... | |
Ostream & | operator (Ostream &, const FixedList< T, Size > &) |
Write FixedList to Ostream. More... | |
A 1D vector of objects of type <T> with a fixed size <Size>.
Definition at line 77 of file FixedList.H.
typedef T value_type |
Type of values the FixedList contains.
Definition at line 237 of file FixedList.H.
Type that can be used for storing into.
FixedList::value_type objects
Definition at line 241 of file FixedList.H.
typedef const T& const_reference |
Type that can be used for storing into.
constant FixedList::value_type objects
Definition at line 245 of file FixedList.H.
typedef label difference_type |
The type that can represent the difference between any two.
FixedList iterator objects
Definition at line 249 of file FixedList.H.
The type that can represent the size of a FixedList.
Definition at line 252 of file FixedList.H.
Random access iterator for traversing FixedList.
Definition at line 258 of file FixedList.H.
typedef const T* const_iterator |
Random access iterator for traversing FixedList.
Definition at line 270 of file FixedList.H.
typedef std::reverse_iterator<iterator> reverse_iterator |
Reverse iterator for reverse traversal of FixedList.
Definition at line 288 of file FixedList.H.
typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
Reverse iterator for reverse traversal of constant FixedList.
Definition at line 300 of file FixedList.H.
|
inline |
Null constructor.
Definition at line 33 of file FixedListI.H.
Construct from value.
Definition at line 38 of file FixedListI.H.
Construct from C-array.
Definition at line 48 of file FixedListI.H.
|
inline |
Construct given start and end iterators.
Definition at line 59 of file FixedListI.H.
References Foam::first().
Construct from an initialiser list.
Definition at line 76 of file FixedListI.H.
Construct from UList.
Definition at line 83 of file FixedListI.H.
References UList< T >::size().
Construct from SLList.
Definition at line 95 of file FixedListI.H.
References LList< LListBase, T >::begin().
Construct from Istream.
Definition at line 44 of file FixedListIO.C.
References Foam::functionObjects::fieldValues::operator>>().
|
inlinestatic |
Return a null FixedList.
Definition at line 118 of file FixedListI.H.
|
inline |
Clone.
Definition at line 109 of file FixedListI.H.
|
inline |
Return the forward circular index, i.e. the next index.
which returns to the first at the end of the list
Definition at line 125 of file FixedListI.H.
|
inline |
Return the reverse circular index, i.e. the previous index.
which returns to the last at the beginning of the list
Definition at line 132 of file FixedListI.H.
|
inline |
Return a const pointer to the first data element,.
similar to the STL front() method and the string::data() method This can be used (with caution) when interfacing with C code
Definition at line 202 of file FixedListI.H.
Referenced by FixedList< label, 6 >::FixedList().
|
inline |
Return a pointer to the first data element,.
similar to the STL front() method and the string::data() method This can be used (with caution) when interfacing with C code
Definition at line 210 of file FixedListI.H.
|
inline |
Return the first element of the list.
Definition at line 217 of file FixedListI.H.
|
inline |
Return first element of the list.
Definition at line 224 of file FixedListI.H.
|
inline |
Return the last element of the list.
Definition at line 231 of file FixedListI.H.
|
inline |
Return the last element of the list.
Definition at line 238 of file FixedListI.H.
|
inline |
Check start is within valid range (0 ... size-1)
Definition at line 139 of file FixedListI.H.
References FatalErrorInFunction.
|
inline |
Check size is within valid range (0 ... size)
Definition at line 151 of file FixedListI.H.
|
inline |
Check index i is within valid range (0 ... size-1)
Definition at line 163 of file FixedListI.H.
|
inline |
Dummy resize function.
needed to make FixedList consistent with List
Definition at line 175 of file FixedListI.H.
|
inline |
Dummy setSize function.
needed to make FixedList consistent with List
Definition at line 183 of file FixedListI.H.
Referenced by blockDescriptor::facePoints().
Copy (not transfer) the argument contents.
needed to make FixedList consistent with List
Definition at line 191 of file FixedListI.H.
Return element of FixedList.
Definition at line 247 of file FixedListI.H.
Return element of constant FixedList.
Definition at line 257 of file FixedListI.H.
Assignment to array operator. Takes linear time.
Definition at line 267 of file FixedListI.H.
Assignment to UList operator. Takes linear time.
Definition at line 276 of file FixedListI.H.
Assignment to SLList operator. Takes linear time.
Definition at line 287 of file FixedListI.H.
Assignment to an initialiser list. Takes linear time.
Definition at line 299 of file FixedListI.H.
Assignment of all entries to the given value.
Definition at line 311 of file FixedListI.H.
|
inline |
Return an iterator to begin traversing the FixedList.
Definition at line 324 of file FixedListI.H.
|
inline |
Return an iterator to end traversing the FixedList.
Definition at line 331 of file FixedListI.H.
|
inline |
Return const_iterator to begin traversing the constant FixedList.
Definition at line 339 of file FixedListI.H.
Referenced by FixedList< T, Size >::operator<().
|
inline |
Return const_iterator to end traversing the constant FixedList.
Definition at line 347 of file FixedListI.H.
Referenced by FixedList< T, Size >::operator<().
|
inline |
Return const_iterator to begin traversing the constant FixedList.
Definition at line 355 of file FixedListI.H.
|
inline |
Return const_iterator to end traversing the constant FixedList.
Definition at line 363 of file FixedListI.H.
|
inline |
Return reverse_iterator to begin reverse traversing the FixedList.
Definition at line 371 of file FixedListI.H.
|
inline |
Return reverse_iterator to end reverse traversing the FixedList.
Definition at line 379 of file FixedListI.H.
|
inline |
Return const_reverse_iterator to begin reverse traversing FixedList.
Definition at line 387 of file FixedListI.H.
|
inline |
Return const_reverse_iterator to end reverse traversing FixedList.
Definition at line 395 of file FixedListI.H.
|
inline |
Return const_reverse_iterator to begin reverse traversing FixedList.
Definition at line 403 of file FixedListI.H.
|
inline |
Return const_reverse_iterator to end reverse traversing FixedList.
Definition at line 411 of file FixedListI.H.
|
inline |
Return the number of elements in the FixedList.
Definition at line 418 of file FixedListI.H.
Referenced by FixedList< label, 6 >::FixedList(), pointConstraint::unconstrainedDirections(), and patchEdgeFaceRegions::updateEdge().
|
inline |
Return size of the largest possible FixedList.
Definition at line 425 of file FixedListI.H.
|
inline |
Return true if the FixedList is empty (ie, size() is zero)
Definition at line 432 of file FixedListI.H.
Swap two FixedLists of the same type in constant time.
Definition at line 32 of file FixedList.C.
References List_ACCESS, List_CELEM, List_ELEM, List_END_FOR_ALL, List_FOR_ALL, and Foam::T().
Equality operation on FixedLists of the same type.
Returns true when the FixedLists are elementwise equal (using FixedList::value_type::operator==). Takes linear time
Definition at line 48 of file FixedList.C.
References Foam::equal(), List_CONST_ACCESS, List_ELEM, List_END_FOR_ALL, List_FOR_ALL, and Foam::T().
The opposite of the equality operation. Takes linear time.
Definition at line 64 of file FixedList.C.
References Foam::operator==().
Compare two FixedLists lexicographically. Takes linear time.
Definition at line 71 of file FixedList.C.
References FixedList< T, Size >::cbegin(), and FixedList< T, Size >::cend().
Compare two FixedLists lexicographically. Takes linear time.
Definition at line 95 of file FixedList.C.
References FixedList< T, Size >::operator.
Return true if !(a > b). Takes linear time.
Definition at line 102 of file FixedList.C.
References Foam::operator>().
Return true if !(a < b). Takes linear time.
Definition at line 109 of file FixedList.C.
References Foam::operator<().
Referenced by FixedList< T, Size >::operator>().