|
|


Public Types | |
| typedef T * | Tptr |
| Return an element pointer to be set. The pointer is checked. | |
| typedef T | value_type |
| Type of values the PtrList contains. | |
| typedef T & | reference |
| Type that can be used for storing into PtrList::value_type objects. | |
| typedef const T & | const_reference |
| Type that can be used for storing into constant PtrList::value_type. | |
Public Member Functions | |
| PtrList () | |
| Null Constructor. | |
| PtrList (const label) | |
| Construct with length specified. | |
| PtrList (const PtrList< T > &) | |
| Copy constructor. | |
| template<class CloneArg> | |
| PtrList (const PtrList< T > &, const CloneArg &) | |
| Copy constructor with additional argument for clone. | |
| PtrList (PtrList< T > &, bool reUse) | |
| Construct as copy or re-use as specified. | |
| PtrList (const SLPtrList< T > &) | |
| Construct as copy of SLPtrList<T>. | |
| template<class INew> | |
| PtrList (Istream &, const INew &) | |
| Construct from Istream using given Istream constructor class. | |
| PtrList (Istream &) | |
| Construct from Istream using default Istream constructor class. | |
| ~PtrList () | |
| label | size () const |
| Return the number of elements in the PtrList. | |
| void | setSize (const label) |
| Reset size of PtrList. This can only be used to set the size of. | |
| void | clear () |
| Clear the PtrList, i.e. set size to zero deleting all the. | |
| void | transfer (PtrList< T > &) |
| Transfer the contents of the argument PtrList into this PtrList. | |
| Tptr & | set (const label) |
| void | hook (T *) |
| Hook an an element created by new onto the list. | |
| void | hook (const autoPtr< T > &) |
| Hook an an element created by new onto the list. | |
| void | hook (const tmp< T > &) |
| Hook an an element created by new onto the list. | |
| 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. | |
| PtrList< T > & | operator= (const PtrList< T > &) |
| Assignment. | |
| iterator | begin () |
| Return an iterator to begin traversing the PtrList. | |
| iterator | end () |
| Return an iterator to end traversing the PtrList. | |
Protected Member Functions | |
| label | nextFree () const |
| Return address of next free element. | |
Friends | |
| class | iterator |
| Istream & | operator>> (Istream &, PtrList< T > &) |
| Read List from Istream, discarding contents of existing List. | |
| Ostream & | operator (Ostream &, const PtrList< T > &) |
|
|
Type that can be used for storing into constant PtrList::value_type. objects. |
|
|
Type that can be used for storing into PtrList::value_type objects.
|
|
|
Return an element pointer to be set. The pointer is checked. if already set and the index range checked. |
|
|
Type of values the PtrList contains.
|
|
|
Null Constructor.
|
|
|
Construct with length specified.
|
|
|
Copy constructor.
|
|
||||||||||||
|
Copy constructor with additional argument for clone.
|
|
||||||||||||
|
Construct as copy or re-use as specified.
|
|
|
Construct as copy of SLPtrList<T>.
|
|
||||||||||||
|
Construct from Istream using given Istream constructor class.
|
|
|
Construct from Istream using default Istream constructor class.
|
|
|
|
|
|
Return an iterator to begin traversing the PtrList.
Definition at line 263 of file PtrListI.H. |
|
|
Clear the PtrList, i.e. set size to zero deleting all the. allocated entries. Reimplemented in ZoneMesh, ZoneMesh< pointZone >, ZoneMesh< cellZone >, and ZoneMesh< faceZone >. |
|
|
Return an iterator to end traversing the PtrList.
Definition at line 269 of file PtrListI.H. |
|
|
Hook an an element created by new onto the list.
Definition at line 69 of file PtrListI.H. References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::T(). |
Here is the call graph for this function:

|
|
Hook an an element created by new onto the list.
Definition at line 62 of file PtrListI.H. References PtrList::hook(). |
Here is the call graph for this function:

|
|
Hook an an element created by new onto the list.
Referenced by PtrList::hook(), and PtrList::size(). |
|
|
Return address of next free element.
|
|
|
Return element const pointer.
Definition at line 110 of file PtrListI.H. |
|
|
Assignment.
|
|
|
Return element reference.
Definition at line 96 of file PtrListI.H. |
|
|
Return element const reference.
Definition at line 80 of file PtrListI.H. |
|
|
Reorders elements. Ordering does not have to be done in. ascending or descending order. Reordering has to be unique. (is shuffle) |
|
|
|
|
|
Reset size of PtrList. This can only be used to set the size of. an empty PtrList, extend a PtrList, remove entries from the end of a PtrList. If the entries are non-empty they are deleted. |
|
|
Return the number of elements in the PtrList.
Definition at line 55 of file PtrListI.H. References PtrList::hook(). |
Here is the call graph for this function:

|
|
Transfer the contents of the argument PtrList into this PtrList. and annull the argument list. |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Read List from Istream, discarding contents of existing List.
|