|
|
|
FixedList Class Template ReferenceInheritance diagram for FixedList:![]() ![]() Detailed Descriptiontemplate<class T, label Size>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef T | value_type |
| Type of values the FixedList contains. | |
| typedef T & | reference |
| Type that can be used for storing into. | |
| typedef const T & | const_reference |
| Type that can be used for storing into. | |
| typedef label | difference_type |
| The type that can represent the difference between any two. | |
| typedef label | size_type |
| The type that can represent the size of a FixedList. | |
| typedef T * | iterator |
| Random access iterator for traversing FixedList. | |
| typedef const T * | const_iterator |
| Random access iterator for traversing FixedList. | |
| typedef T * | reverse_iterator |
| Reverse iterator for reverse traversal of FixedList. | |
| typedef const T * | const_reverse_iterator |
| Reverse iterator for reverse traversal of constant FixedList. | |
Public Member Functions | |
| FixedList () | |
| Null constructor. | |
| FixedList (const T v[Size]) | |
| Construct from components. | |
| FixedList (const T &) | |
| Construct from value. | |
| FixedList (const UList< T > &) | |
| Construct from UList. | |
| FixedList (const SLList< T > &) | |
| Construct from SLList. | |
| FixedList (const FixedList< T, Size > &) | |
| Copy constructor. | |
| FixedList (Istream &) | |
| Construct from Istream. | |
| autoPtr< FixedList< T, Size > > | clone () const |
| Clone. | |
| label | fcIndex (const label i) const |
| Return the forward circular index, i.e. the next index. | |
| label | rcIndex (const label i) const |
| Return the reverse circular index, i.e. the previous index. | |
| void | checkStart (const label start) const |
| Check start is within valid range (0 ... size-1). | |
| void | checkSize (const label size) const |
| Check size is within valid range (0 ... size). | |
| void | checkIndex (const label i) const |
| Check index i is within valid range (0 ... size-1). | |
| void | setSize (const label) |
| Dummy setSize function. | |
| void | writeEntry (Ostream &os) const |
| Write the FixedList as a dictionary entry. | |
| void | writeEntry (const word &keyword, Ostream &os) const |
| Write the FixedList as a dictionary entry with keyword. | |
| T & | operator[] (const label) |
| Return subscript-checked element of FixedList. | |
| const T & | operator[] (const label) const |
| Return subscript-checked element of constant FixedList. | |
| void | operator= (const T v[Size]) |
| Assignment from array operator. Takes linear time. | |
| void | operator= (const UList< T > &) |
| Assignment from UList operator. Takes linear time. | |
| void | operator= (const SLList< T > &) |
| Assignment from SLList operator. Takes linear time. | |
| void | operator= (const T &) |
| Assignment of all entries to the given value. | |
| iterator | begin () |
| Return an iterator to begin traversing the FixedList. | |
| iterator | end () |
| Return an iterator to end traversing the FixedList. | |
| const_iterator | begin () const |
| Return a const_iterator to begin traversing the. | |
| const_iterator | end () const |
| Return a const_iterator to end traversing the. | |
| reverse_iterator | rbegin () |
| Return a reverse_iterator to begin reverse traversing the. | |
| reverse_iterator | rend () |
| Return a reverse_iterator to end reverse traversing the. | |
| const_reverse_iterator | rbegin () const |
| Return a const_reverse_iterator to begin reverse traversing the. | |
| const_reverse_iterator | rend () const |
| Return a const_reverse_iterator to end reverse traversing the. | |
| label | size () const |
| Return the number of elements in the FixedList. | |
| label | max_size () const |
| Return size of the largest possible FixedList. | |
| bool | empty () const |
| Return true if the FixedList is empty (i.e., if size() == 0). | |
| void | swap (FixedList< T, Size > &) |
| Swap two FixedLists of the same type in constant time. | |
| bool | operator== (const FixedList< T, Size > &) const |
| Equality operation on FixedLists of the same type. | |
| bool | operator!= (const FixedList< T, Size > &) const |
| The opposite of the equality operation. Takes linear time. | |
| bool | operator< (const FixedList< T, Size > &) const |
| Compare two FixedLists lexicographically. Takes linear time. | |
| bool | operator> (const FixedList< T, Size > &) const |
| Compare two FixedLists lexicographically. Takes linear time. | |
| bool | operator<= (const FixedList< T, Size > &) const |
| Return true if !(a > b). Takes linear time. | |
| bool | operator>= (const FixedList< T, Size > &) const |
| Return true if !(a < b). Takes linear time. | |
Static Public Member Functions | |
| static FixedList< T, Size > & | null () |
| Return a null FixedList. | |
Friends | |
| Istream & | operator>> (Istream &, FixedList< T, Size > &) |
| Read List from Istream, discarding contents of existing List. | |
| Ostream & | operator (Ostream &, const FixedList< T, Size > &) |
Classes | |
| class | Hash |
| Hashing function class. More... | |
| typedef T value_type |
| typedef T& reference |
Type that can be used for storing into.
FixedList::value_type objects.
Definition at line 214 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 220 of file FixedList.H.
| typedef label difference_type |
The type that can represent the difference between any two.
FixedList iterator objects.
Definition at line 226 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 283 of file FixedList.H.
| FixedList | ( | ) | [inline] |
| FixedList | ( | const T | v[Size] | ) | [inline] |
| FixedList | ( | const T & | ) | [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 111 of file FixedListI.H.
Return the reverse circular index, i.e. the previous index.
which returns to the last at the begining of the list
Definition at line 118 of file FixedListI.H.
References FatalErrorIn.
| void checkStart | ( | const label | start | ) | const [inline] |
| void checkSize | ( | const label | size | ) | const [inline] |
| void checkIndex | ( | const label | i | ) | const [inline] |
| void setSize | ( | const | label | ) | [inline] |
Dummy setSize function.
needed to make FixedList consistent with List
Definition at line 170 of file FixedListI.H.
Write the FixedList as a dictionary entry with keyword.
| T & operator[] | ( | const | label | ) | [inline] |
Return subscript-checked element of FixedList.
Definition at line 182 of file FixedListI.H.
Referenced by edge::edge(), triFace::mag(), triFace::nEdges(), tetCell::tetCell(), and triFace::triFace().
Here is the caller graph for this function:

| const T & operator[] | ( | const | label | ) | const [inline] |
Return subscript-checked element of constant FixedList.
Definition at line 193 of file FixedListI.H.
| void operator= | ( | const T | v[Size] | ) | [inline] |
| void operator= | ( | const UList< T > & | ) | [inline] |
| void operator= | ( | const SLList< T > & | ) | [inline] |
| void operator= | ( | const T & | ) | [inline] |
Return an iterator to end traversing the FixedList.
Reimplemented in edge.
Definition at line 269 of file FixedListI.H.
| FixedList< T, Size >::const_iterator begin | ( | ) | const [inline] |
Return a const_iterator to begin traversing the.
constant FixedList.
Definition at line 261 of file FixedListI.H.
| FixedList< T, Size >::const_iterator end | ( | ) | const [inline] |
Return a const_iterator to end traversing the.
constant FixedList.
Reimplemented in edge.
Definition at line 277 of file FixedListI.H.
Return a reverse_iterator to begin reverse traversing the.
Definition at line 284 of file FixedListI.H.
Return a reverse_iterator to end reverse traversing the.
Definition at line 300 of file FixedListI.H.
| FixedList< T, Size >::const_iterator rbegin | ( | ) | const [inline] |
Return a const_reverse_iterator to begin reverse traversing the.
Definition at line 292 of file FixedListI.H.
| FixedList< T, Size >::const_iterator rend | ( | ) | const [inline] |
Return a const_reverse_iterator to end reverse traversing the.
Definition at line 308 of file FixedListI.H.
| label size | ( | ) | const [inline] |
| label max_size | ( | ) | const [inline] |
| bool empty | ( | ) | const [inline] |
Return true if the FixedList is empty (i.e., if size() == 0).
Definition at line 329 of file FixedListI.H.
| void swap | ( | FixedList< T, Size > & | ) |
Swap two FixedLists of the same type in constant time.
| bool operator== | ( | const FixedList< T, Size > & | ) | const |
Equality operation on FixedLists of the same type.
Returns true when the FixedLists are elementwise equal (using FixedList::value_type::operator==). Takes linear time.
| bool operator!= | ( | const FixedList< T, Size > & | ) | const |
The opposite of the equality operation. Takes linear time.
| bool operator< | ( | const FixedList< T, Size > & | ) | const |
Compare two FixedLists lexicographically. Takes linear time.
| bool operator> | ( | const FixedList< T, Size > & | ) | const |
Compare two FixedLists lexicographically. Takes linear time.
| bool operator<= | ( | const FixedList< T, Size > & | ) | const |
Return true if !(a > b). Takes linear time.
| bool operator>= | ( | const FixedList< T, Size > & | ) | const |
Return true if !(a < b). Takes linear time.