Lines Matching refs:stack_
41 …ocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack_(0), stackTop_(0), … in Stack()
48 stack_(rhs.stack_), in Stack()
55 rhs.stack_ = 0; in Stack()
74 stack_ = rhs.stack_;
81 rhs.stack_ = 0;
93 internal::Swap(stack_, rhs.stack_); in Swap()
99 void Clear() { stackTop_ = stack_; } in Clear()
104 Allocator::Free(stack_); // NOLINT (+clang-analyzer-unix.Malloc) in ShrinkToFit()
105 stack_ = 0; in ShrinkToFit()
163 T* Bottom() { return reinterpret_cast<T*>(stack_); } in Bottom()
166 const T* Bottom() const { return reinterpret_cast<T*>(stack_); } in Bottom()
177 bool Empty() const { return stackTop_ == stack_; } in Empty()
178 size_t GetSize() const { return static_cast<size_t>(stackTop_ - stack_); } in GetSize()
179 size_t GetCapacity() const { return static_cast<size_t>(stackEnd_ - stack_); } in GetCapacity()
186 if (stack_ == 0) { in Expand()
203 stack_ = static_cast<char*>(allocator_->Realloc(stack_, GetCapacity(), newCapacity)); in Resize()
204 stackTop_ = stack_ + size; in Resize()
205 stackEnd_ = stack_ + newCapacity; in Resize()
209 Allocator::Free(stack_); in Destroy()
219 char *stack_; variable