Home | History | Annotate | Download | only in private

Lines Matching refs:array

26      * Creates an empty array with no initial storage
31 * Creates an empty array that will preallocate space for reserveCount
37 * Copies one array to another. The new array will be heap allocated.
52 * Creates a SkTArray by copying contents of a standard C array. The new
53 * array will be heap allocated. Be careful not to use this constructor
56 SkTArray(const T* array, int count) {
58 this->copy(array);
125 * Resets to a copy of a C array and resets any reserve count.
127 void reset(const T* array, int count) {
134 this->copy(array);
140 * until the array size grows above n and subsequently shrinks below n, any version of reset()
164 * Number of elements in the array.
169 * Is the array empty.
200 * Construct a new T at the back of this array.
210 * next API call made on the array that might add or remove elements.
298 /** Swaps the contents of this array with that array. Does a pointer swap if possible,
394 * Creates an empty array that will use the passed storage block until it
395 * is insufficiently large to hold the entire array.
403 * Copy another array, using preallocated storage if preAllocCount >=
404 * array.count(). Otherwise storage will only be used when array shrinks
408 SkTArray(const SkTArray& array, SkAlignedSTStorage<N,T>* storage) {
409 this->initWithPreallocatedStorage(array.fCount, storage->get(), N);
410 this->copy(array.fItemArray);
414 * Move another array, using preallocated storage if preAllocCount >=
415 * array.count(). Otherwise storage will only be used when array shrinks
419 SkTArray(SkTArray&& array, SkAlignedSTStorage<N,T>* storage) {
420 this->initWithPreallocatedStorage(array.fCount, storage->get(), N);
421 array.move(fMemArray);
422 array.fCount = 0;
426 * Copy a C array, using preallocated storage if preAllocCount >=
427 * count. Otherwise storage will only be used when array shrinks
431 SkTArray(const T* array, int count, SkAlignedSTStorage<N,T>* storage) {
433 this->copy(array);
564 * Subclass of SkTArray that contains a preallocated memory block for the array.
575 SkSTArray(const SkSTArray& array)
576 : INHERITED(array, &fStorage) {
579 SkSTArray(SkSTArray&& array)
580 : INHERITED(std::move(array), &fStorage) {
583 explicit SkSTArray(const INHERITED& array)
584 : INHERITED(array, &fStorage) {
587 explicit SkSTArray(INHERITED&& array)
588 : INHERITED(std::move(array), &fStorage) {
595 SkSTArray(const T* array, int count)
596 : INHERITED(array, count, &fStorage) {
599 SkSTArray& operator=(const SkSTArray& array) {
600 INHERITED::operator=(array);
604 SkSTArray& operator=(SkSTArray&& array) {
605 INHERITED::operator=(std::move(array));
609 SkSTArray& operator=(const INHERITED& array) {
610 INHERITED::operator=(array);
614 SkSTArray& operator=(INHERITED&& array) {
615 INHERITED::operator=(std::move(array));