|
|
|
UPtrList< T > Class Template ReferenceA 1D array of pointers to objects of type <T>, where the size of the array is known and used for subscript bounds checking, etc. More...
Inheritance diagram for UPtrList< T >:
![]()
Collaboration diagram for UPtrList< T >:
![]()
Detailed Descriptiontemplate<class T>
A 1D array of pointers to objects of type <T>, where the size of the array is known and used for subscript bounds checking, etc.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef T value_type |
| typedef T& reference |
Type that can be used for storing into UPtrList::value_type objects.
Definition at line 188 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 194 of file UPtrList.H.
| UPtrList | ( | ) | [inline] |
Construct as copy or re-use as specified.
Definition at line 46 of file UPtrList.C.
References UPtrList< T >::transfer().

| Foam::label size | ( | ) | const [inline] |
Return the number of elements in the UPtrList.
Definition at line 23 of file UPtrListI.H.
Referenced by searchableSurfaceCollection::findNearest().

| bool empty | ( | ) | const [inline] |
Return true if the UPtrList is empty (ie, size() is zero).
Definition at line 30 of file UPtrListI.H.
References List< T >::size().

| void setSize | ( | const label | newSize | ) | [inline] |
Reset size of UPtrList. This can only be used to set the size.
of an empty UPtrList, extend a UPtrList, remove entries from the end of a UPtrList.
Definition at line 55 of file UPtrList.C.
Referenced by UPtrList< T >::set().

| void resize | ( | const label | newSize | ) | [inline] |
Reset size of UPtrList. This can only be used to set the size.
of an empty UPtrList, extend a UPtrList, remove entries from the end of a UPtrList.
Definition at line 37 of file UPtrListI.H.
References UList< T >::empty().

| void clear | ( | ) | [inline] |
| void transfer | ( | UPtrList< T > & | a | ) | [inline] |
Transfer the contents of the argument UPtrList into this.
UPtrList and annull the argument list.
Definition at line 90 of file UPtrList.C.
References List< T >::clear().
Referenced by UPtrList< T >::UPtrList().


| Foam::Xfer< Foam::UPtrList< T > > xfer | ( | ) | [inline] |
Transfer contents to the Xfer container.
Definition at line 58 of file UPtrListI.H.
References Foam::T().

| bool set | ( | const label | i | ) | const [inline] |
Is element set.
Definition at line 44 of file UPtrListI.H.
References UPtrList< T >::setSize().

| T * set | ( | const label | i, | |
| T * | ptr | |||
| ) | [inline] |
Set element. Return old element (can be NULL).
No checks on new element.
Definition at line 50 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)
Definition at line 97 of file UPtrList.C.
References List< T >::transfer().

| const T & operator[] | ( | const label | i | ) | const [inline] |
Return element const reference.
Definition at line 67 of file UPtrListI.H.
References Foam::xferMove().

| T & operator[] | ( | const label | i | ) | [inline] |
| const T * operator() | ( | const label | i | ) | const [inline] |
| Foam::UPtrList< T >::iterator begin | ( | ) | [inline] |
| Foam::UPtrList< T >::iterator end | ( | ) | [inline] |
Return an iterator to end traversing the UPtrList.
Definition at line 256 of file UPtrListI.H.
References UList< T >::begin().

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