|
|
|
FixedList< T, Size > Class Template ReferenceA 1D vector of objects of type <T> with a fixed size <Size>. More...
Inheritance diagram for FixedList< T, Size >:
![]()
Collaboration diagram for FixedList< T, Size >:
![]()
Detailed Descriptiontemplate<class T, unsigned Size>
A 1D vector of objects of type <T> with a fixed size <Size>.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef T value_type |
| typedef T& reference |
Type that can be used for storing into.
FixedList::value_type objects.
Definition at line 231 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 237 of file FixedList.H.
| typedef label difference_type |
The type that can represent the difference between any two.
FixedList iterator objects.
Definition at line 243 of file FixedList.H.
| typedef T* iterator |
| typedef const T* const_iterator |
| typedef T* reverse_iterator |
| typedef const T* const_reverse_iterator |
Reverse iterator for reverse traversal of constant FixedList.
Definition at line 294 of file FixedList.H.
| FixedList | ( | ) | [inline] |
| FixedList | ( | const T | v[Size] | ) | [inline] |
| FixedList | ( | const T & | t | ) | [inline] |
Copy constructor.
Definition at line 80 of file FixedListI.H.
References FixedList< T, Size >::operator[]().

| const Foam::FixedList< T, Size > & null | ( | ) | [inline, static] |
| Foam::autoPtr< Foam::FixedList< T, Size > > clone | ( | ) | const [inline] |
| Foam::label fcIndex | ( | const label | i | ) | const [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 107 of file FixedListI.H.
Referenced by PatchTools::sortedEdgeFaces().

| Foam::label rcIndex | ( | const label | i | ) | const [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 114 of file FixedListI.H.
| const T * cdata | ( | ) | const [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 188 of file FixedListI.H.
| T * data | ( | ) | [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 196 of file FixedListI.H.
| void checkStart | ( | const label | start | ) | const [inline] |
| void checkSize | ( | const label | size | ) | const [inline] |
Check size is within valid range (0 ... size).
Definition at line 135 of file FixedListI.H.
Referenced by FixedList< T, Size >::setSize(), and FixedList< T, Size >::transfer().

| void checkIndex | ( | const label | i | ) | const [inline] |
Check index i is within valid range (0 ... size-1).
Definition at line 149 of file FixedListI.H.
Referenced by FixedList< T, Size >::operator=().

| void resize | ( | const label | s | ) | [inline] |
Dummy resize function.
needed to make FixedList consistent with List
Definition at line 161 of file FixedListI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.

| void setSize | ( | const label | s | ) | [inline] |
Dummy setSize function.
needed to make FixedList consistent with List
Definition at line 169 of file FixedListI.H.
References FixedList< T, Size >::checkSize().

| void transfer | ( | const FixedList< T, Size > & | lst | ) | [inline] |
Copy (not transfer) the argument contents.
needed to make FixedList consistent with List
Definition at line 177 of file FixedListI.H.
References FixedList< T, Size >::checkSize().

| void writeEntry | ( | Ostream & | os | ) | const [inline] |
Write the FixedList as a dictionary entry with keyword.
Definition at line 149 of file FixedListIO.C.
| T & operator[] | ( | const label | i | ) | [inline] |
Return element of FixedList.
Definition at line 206 of file FixedListI.H.
Referenced by FixedList< T, Size >::FixedList(), and FixedList< T, Size >::operator=().

| const T & operator[] | ( | const label | i | ) | const [inline] |
| void operator= | ( | const T | v[Size] | ) | [inline] |
Assignment from array operator. Takes linear time.
Definition at line 227 of file FixedListI.H.
References FixedList< T, Size >::checkIndex().

| void operator= | ( | const UList< T > & | lst | ) | [inline] |
| void operator= | ( | const SLList< T > & | lst | ) | [inline] |
| void operator= | ( | const T & | t | ) | [inline] |
Assignment of all entries to the given value.
Definition at line 264 of file FixedListI.H.
References FixedList< T, Size >::operator[]().

| Foam::FixedList< T, Size >::iterator begin | ( | ) | [inline] |
| Foam::FixedList< T, Size >::iterator end | ( | ) | [inline] |
Return an iterator to end traversing the FixedList.
Reimplemented in edge.
Definition at line 301 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator cbegin | ( | ) | const [inline] |
Return const_iterator to begin traversing the constant FixedList.
Definition at line 293 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator cend | ( | ) | const [inline] |
Return const_iterator to end traversing the constant FixedList.
Definition at line 317 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator begin | ( | ) | const [inline] |
Return const_iterator to begin traversing the constant FixedList.
Definition at line 285 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator end | ( | ) | const [inline] |
Return const_iterator to end traversing the constant FixedList.
Reimplemented in edge.
Definition at line 309 of file FixedListI.H.
| Foam::FixedList< T, Size >::iterator rbegin | ( | ) | [inline] |
Return reverse_iterator to begin reverse traversing the FixedList.
Definition at line 325 of file FixedListI.H.
| Foam::FixedList< T, Size >::iterator rend | ( | ) | [inline] |
Return reverse_iterator to end reverse traversing the FixedList.
Definition at line 349 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator crbegin | ( | ) | const [inline] |
Return const_reverse_iterator to begin reverse traversing FixedList.
Definition at line 341 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator crend | ( | ) | const [inline] |
Return const_reverse_iterator to end reverse traversing FixedList.
Definition at line 365 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator rbegin | ( | ) | const [inline] |
Return const_reverse_iterator to begin reverse traversing FixedList.
Definition at line 333 of file FixedListI.H.
| Foam::FixedList< T, Size >::const_iterator rend | ( | ) | const [inline] |
Return const_reverse_iterator to end reverse traversing FixedList.
Definition at line 357 of file FixedListI.H.
| Foam::label size | ( | ) | const [inline] |
| Foam::label max_size | ( | ) | const [inline] |
| bool empty | ( | ) | const [inline] |
Return true if the FixedList is empty (ie, size() is zero).
Definition at line 386 of file FixedListI.H.
| void swap | ( | FixedList< T, Size > & | a | ) | [inline] |
Swap two FixedLists of the same type in constant time.
Definition at line 26 of file FixedList.C.
References List_ACCESS, List_ELEM, List_FOR_ALL, and Foam::T().

| bool operator== | ( | const FixedList< T, Size > & | a | ) | const [inline] |
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 42 of file FixedList.C.
Referenced by FixedList< T, Size >::operator<().

| bool operator!= | ( | const FixedList< T, Size > & | a | ) | const [inline] |
The opposite of the equality operation. Takes linear time.
Definition at line 58 of file FixedList.C.
| bool operator< | ( | const FixedList< T, Size > & | a | ) | const [inline] |
Compare two FixedLists lexicographically. Takes linear time.
Definition at line 65 of file FixedList.C.
References FixedList< T, Size >::operator==().

| bool operator> | ( | const FixedList< T, Size > & | a | ) | const [inline] |
Compare two FixedLists lexicographically. Takes linear time.
Definition at line 96 of file FixedList.C.
Referenced by FixedList< T, Size >::operator>=().

| bool operator<= | ( | const FixedList< T, Size > & | a | ) | const [inline] |
Return true if !(a > b). Takes linear time.
Definition at line 103 of file FixedList.C.
References FixedList< T, Size >::operator.
| bool operator>= | ( | const FixedList< T, Size > & | a | ) | const [inline] |
Return true if !(a < b). Takes linear time.
Definition at line 110 of file FixedList.C.
References FixedList< T, Size >::operator>().

Referenced by FixedList< T, Size >::operator<=().