• Home
  • Raw
  • Download

Lines Matching refs:Vector

336 class Vector {
338 Vector() : start_(NULL), length_(0) {} in Vector() function
339 Vector(T* data, int length) : start_(data), length_(length) { in Vector() function
343 static Vector<T> New(int length) { in New()
344 return Vector<T>(NewArray<T>(length), length); in New()
349 Vector<T> SubVector(int from, int to) { in SubVector()
353 return Vector<T>(start() + from, to - from); in SubVector()
378 Vector<T> Clone() const { in Clone()
381 return Vector<T>(result, length_); in Clone()
409 inline Vector<T> operator+(int offset) {
411 return Vector<T>(start_ + offset, length_ - offset);
415 static Vector<T> empty() { return Vector<T>(NULL, 0); } in empty()
418 static Vector<T> cast(Vector<S> input) { in cast()
419 return Vector<T>(reinterpret_cast<T*>(input.start()), in cast()
456 class EmbeddedVector : public Vector<T> {
458 EmbeddedVector() : Vector<T>(buffer_, kSize) { } in EmbeddedVector()
460 explicit EmbeddedVector(T initial_value) : Vector<T>(buffer_, kSize) { in EmbeddedVector()
468 : Vector<T>(rhs) { in EmbeddedVector()
475 Vector<T>::operator=(rhs);
487 class ScopedVector : public Vector<T> {
489 explicit ScopedVector(int length) : Vector<T>(NewArray<T>(length), length) { } in ScopedVector()
499 inline Vector<const char> CStrVector(const char* data) { in CStrVector()
500 return Vector<const char>(data, StrLength(data)); in CStrVector()
503 inline Vector<char> MutableCStrVector(char* data) { in MutableCStrVector()
504 return Vector<char>(data, StrLength(data)); in MutableCStrVector()
507 inline Vector<char> MutableCStrVector(char* data, int max) { in MutableCStrVector()
509 return Vector<char>(data, (length < max) ? length : max); in MutableCStrVector()
527 current_chunk_ = Vector<T>::New(initial_capacity);
552 inline Vector<T> AddBlock(int size, T initial_value) { in AddBlock()
563 return Vector<T>(position, size); in AddBlock()
571 inline Vector<T> AddBlock(Vector<const T> source) { in AddBlock()
581 return Vector<T>(position, source.length()); in AddBlock()
586 void WriteTo(Vector<T> destination) { in WriteTo()
590 Vector<T> chunk = chunks_.at(i); in WriteTo()
606 Vector<T> ToVector() { in ToVector()
607 Vector<T> new_store = Vector<T>::New(size_); in ToVector()
620 List<Vector<T> > chunks_;
621 Vector<T> current_chunk_; // Block of memory currently being written into.
653 Vector<T> new_chunk = Vector<T>::New(new_capacity); in NewChunk()
688 Vector<T> EndSequence() { in EndSequence()
692 if (sequence_start == this->index_) return Vector<T>(); in EndSequence()
722 Vector<T> new_chunk = Vector<T>::New(sequence_length + new_capacity); in NewChunk()
916 Vector<char> buffer_;