|
|
|
UPtrList Class Template ReferenceCollaboration diagram for UPtrList:![]() Detailed Descriptiontemplate<class T>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef T | value_type |
| Type of values the UPtrList contains. | |
| typedef T & | reference |
| Type that can be used for storing into UPtrList::value_type objects. | |
| typedef const T & | const_reference |
| Type that can be used for storing into constant UPtrList::value_type. | |
Public Member Functions | |
| UPtrList () | |
| Null Constructor. | |
| UPtrList (const label) | |
| Construct with length specified. | |
| UPtrList (UPtrList< T > &, bool reUse) | |
| Construct as copy or re-use as specified. | |
| label | size () const |
| Return the number of elements in the UPtrList. | |
| void | setSize (const label) |
| Reset size of UPtrList. This can only be used to set the size. | |
| void | clear () |
| Clear the UPtrList, i.e. set size to zero. | |
| void | transfer (UPtrList< T > &) |
| Transfer the contents of the argument UPtrList into this. | |
| bool | set (const label) const |
| Is element set. | |
| T * | set (const label, T *) |
| Set element. Return old element (can be NULL). | |
| void | reorder (const UList< label > &) |
| Reorders elements. Ordering does not have to be done in. | |
| const T & | operator[] (const label) const |
| Return element const reference. | |
| T & | operator[] (const label) |
| Return element reference. | |
| const T * | operator() (const label) const |
| Return element const pointer. | |
| iterator | begin () |
| Return an iterator to begin traversing the UPtrList. | |
| iterator | end () |
| Return an iterator to end traversing the UPtrList. | |
Friends | |
| class | iterator |
| Ostream & | operator (Ostream &, const UPtrList< T > &) |
Classes | |
| class | iterator |
| typedef T value_type |
| typedef T& reference |
Type that can be used for storing into UPtrList::value_type objects.
Definition at line 186 of file UPtrList.H.
| typedef const T& const_reference |
Type that can be used for storing into constant UPtrList::value_type.
objects.
Definition at line 192 of file UPtrList.H.
| UPtrList | ( | ) |
Null Constructor.
| UPtrList | ( | const | label | ) | [explicit] |
Construct with length specified.
| label size | ( | ) | const [inline] |
| void setSize | ( | const | label | ) |
| void clear | ( | ) |
Clear the UPtrList, i.e. set size to zero.
| void transfer | ( | UPtrList< T > & | ) |
| bool set | ( | const | label | ) | const [inline] |
Is element set.
Definition at line 49 of file UPtrListI.H.
References Foam::T().
Here is the call graph for this function:

| T * set | ( | const | label, | |
| T * | ||||
| ) | [inline] |
Set element. Return old element (can be NULL).
No checks on new element.
Definition at line 56 of file UPtrListI.H.
Reorders elements. Ordering does not have to be done in.
ascending or descending order. Reordering has to be unique. (is shuffle)
| const T & operator[] | ( | const | label | ) | const [inline] |
| T & operator[] | ( | const | label | ) | [inline] |
| const T * operator() | ( | const | label | ) | const [inline] |
Return an iterator to begin traversing the UPtrList.
Definition at line 248 of file UPtrListI.H.
References UList::end().
Here is the call graph for this function:

friend class iterator [friend] |
Definition at line 198 of file UPtrList.H.