LLVM API Documentation
#include <UniqueVector.h>
Inheritance diagram for llvm::UniqueVector< T >:
Public Member Functions | |
unsigned | insert (const T &Entry) |
unsigned | idFor (const T &Entry) const |
const T & | operator[] (unsigned ID) const |
size_t | size () const |
bool | empty () const |
void | reset () |
Definition at line 24 of file UniqueVector.h.
unsigned llvm::UniqueVector< T >::insert | ( | const T & | Entry | ) | [inline] |
insert - Append entry to the vector if it doesn't already exist. Returns the entry's index + 1 to be used as a unique ID.
Definition at line 36 of file UniqueVector.h.
Referenced by llvm::DwarfWriter::EndFunction(), llvm::DwarfWriter::NewString(), llvm::MachineDebugInfo::RecordSource(), and llvm::DwarfWriter::SetDebugInfo().
unsigned llvm::UniqueVector< T >::idFor | ( | const T & | Entry | ) | const [inline] |
idFor - return the ID for an existing entry. Returns 0 if the entry is not found.
Definition at line 57 of file UniqueVector.h.
const T& llvm::UniqueVector< T >::operator[] | ( | unsigned | ID | ) | const [inline] |
operator[] - Returns a reference to the entry with the specified ID.
Definition at line 70 of file UniqueVector.h.
size_t llvm::UniqueVector< T >::size | ( | ) | const [inline] |
size - Returns the number of entries in the vector.
Definition at line 74 of file UniqueVector.h.
Referenced by llvm::DwarfWriter::EndModule().
bool llvm::UniqueVector< T >::empty | ( | ) | const [inline] |
empty - Returns true if the vector is empty.
Definition at line 78 of file UniqueVector.h.
void llvm::UniqueVector< T >::reset | ( | ) | [inline] |
reset - Clears all the entries.
Definition at line 82 of file UniqueVector.h.