reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/SmallPtrSet.h
   92   size_type size() const { return NumNonEmpty - NumTombstones; }
  105     NumNonEmpty = 0;
  119     return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize;
  129       for (const void **APtr = SmallArray, **E = SmallArray + NumNonEmpty;
  147       if (NumNonEmpty < CurArraySize) {
  148         SmallArray[NumNonEmpty++] = Ptr;
  150         return std::make_pair(SmallArray + (NumNonEmpty - 1), true);
  180                       *const *E = SmallArray + NumNonEmpty; APtr != E; ++APtr)
lib/Support/SmallPtrSet.cpp
   31   NumNonEmpty = NumTombstones = 0;
   44   } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) {
   59     ++NumNonEmpty; // Track density.
  117   NumNonEmpty -= NumTombstones;
  177   NumNonEmpty = RHS.NumNonEmpty;
  177   NumNonEmpty = RHS.NumNonEmpty;
  195     std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, CurArray);
  203   NumNonEmpty = RHS.NumNonEmpty;
  203   NumNonEmpty = RHS.NumNonEmpty;
  209   RHS.NumNonEmpty = 0;
  220     std::swap(this->NumNonEmpty, RHS.NumNonEmpty);
  220     std::swap(this->NumNonEmpty, RHS.NumNonEmpty);
  231     std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, this->SmallArray);
  233     std::swap(this->NumNonEmpty, RHS.NumNonEmpty);
  233     std::swap(this->NumNonEmpty, RHS.NumNonEmpty);
  244     std::copy(this->CurArray, this->CurArray + this->NumNonEmpty,
  247     std::swap(RHS.NumNonEmpty, this->NumNonEmpty);
  247     std::swap(RHS.NumNonEmpty, this->NumNonEmpty);
  256   unsigned MinNonEmpty = std::min(this->NumNonEmpty, RHS.NumNonEmpty);
  256   unsigned MinNonEmpty = std::min(this->NumNonEmpty, RHS.NumNonEmpty);
  259   if (this->NumNonEmpty > MinNonEmpty) {
  261               this->SmallArray + this->NumNonEmpty,
  264     std::copy(RHS.SmallArray + MinNonEmpty, RHS.SmallArray + RHS.NumNonEmpty,
  268   std::swap(this->NumNonEmpty, RHS.NumNonEmpty);
  268   std::swap(this->NumNonEmpty, RHS.NumNonEmpty);