Ejemplo n.º 1
0
 /*-------------------------------------------------------------*/
 void _reform_noset(int inp_num) { /* must be immediately followed by setting values */
   if (num == inp_num) {
     return; 
   }
   const char *eyec = "AzDvect::_reform_noset"; 
   a.free(&elm); num = 0; 
   if (inp_num < 0) {
     throw new AzException(eyec, "dim must be non-negative"); 
   }
   num = inp_num; 
   if (num > 0) {
     a.alloc(&elm, num, eyec, "elm"); 
   }
 }
Ejemplo n.º 2
0
 void reset() {
   a_ent.free(&ent);   ent_num = 0; 
   a_data.free(&data); data_num = 0; 
   isCommitted = true; 
 }
Ejemplo n.º 3
0
 void checkIndex(int ix, const char *msg) const {
   if (ix < 0 || ix >= a.size()) {
     throw new AzException("AzDataArr", msg, "out of range"); 
   }
 }
 void _release() {
   a.free(&elm); elm_num = 0; 
 }
Ejemplo n.º 5
0
 inline void _release() {
   a.free(&elm); num = 0; 
 }