add ids to auto/labels, fix awdw gui deadlock, fix fourier bfr bug, fix cache critica...
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / arraylist.h
index ef27522f55b2f6077e3f7c0ec8e6887978ff5f75..2fade202d754f5b8ce79ae627ec397366197e5c8 100644 (file)
@@ -46,6 +46,17 @@ public:
                while( ++n<total ) values[n-1]=values[n];
                remove();
        }
+       void remove_block(int i, int n) {
+               if( i >= total || !n ) return;
+               for( n+=i; n<total; ++i,++n ) values[i] = values[n];
+               total = i;
+       }
+       void remove_object_block(int i, int n) {
+               if( i >= total || !n ) return;
+               for( int j=i,k=n; --k>=0 && j<total; ++j ) del_value(j);
+               for( n+=i; n<total; ++i,++n ) values[i] = values[n];
+               total = i;
+       }
        void remove(TYPE value) {
                int out = 0;
                for( int in=0; in<total; ++in )