LLVM: llvm::ImmutableList< T > Class Template Reference (original) (raw)
ImmutableList - This class represents an immutable (functional) list. More...
#include "[llvm/ADT/ImmutableList.h](ImmutableList%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| ImmutableList (const ImmutableListImpl< T > *x=nullptr) | |
| const ImmutableListImpl< T > * | getInternalPointer () const |
| iterator | begin () const |
| begin - Returns an iterator referring to the head of the list, or an iterator denoting the end of the list if the list is empty. | |
| iterator | end () const |
| end - Returns an iterator denoting the end of the list. | |
| bool | isEmpty () const |
| isEmpty - Returns true if the list is empty. | |
| bool | contains (const T &V) const |
| bool | isEqual (const ImmutableList &L) const |
| isEqual - Returns true if two lists are equal. | |
| bool | operator== (const ImmutableList &L) const |
| const T & | getHead () const |
| getHead - Returns the head of the list. | |
| ImmutableList | getTail () const |
| getTail - Returns the tail of the list, which is another (possibly empty) ImmutableList. | |
| void | Profile (FoldingSetNodeID &ID) const |
template<typename T>
class llvm::ImmutableList< T >
ImmutableList - This class represents an immutable (functional) list.
It is implemented as a smart pointer (wraps ImmutableListImpl), so it it is intended to always be copied by value as if it were a pointer. This interface matches ImmutableSet and ImmutableMap. ImmutableList objects should almost never be created directly, and instead should be created by ImmutableListFactory objects that manage the lifetime of a group of lists. When the factory object is reclaimed, all lists created by that factory are released as well.
Definition at line 65 of file ImmutableList.h.
◆ Factory
◆ value_type
◆ begin()
begin - Returns an iterator referring to the head of the list, or an iterator denoting the end of the list if the list is empty.
Definition at line 106 of file ImmutableList.h.
Referenced by contains().
◆ contains()
◆ end()
end - Returns an iterator denoting the end of the list.
This iterator does not refer to a valid list element.
Definition at line 110 of file ImmutableList.h.
Referenced by contains().
◆ getHead()
◆ getInternalPointer()
◆ getTail()
◆ isEmpty()
◆ isEqual()
◆ operator==()
◆ Profile()
The documentation for this class was generated from the following file:
- include/llvm/ADT/ImmutableList.h