Blockstructured Adaptive Mesh Refinement in object-oriented C++
00001 #ifndef _included_BucketType_c 00002 #define _included_BucketType_c 00003 00009 template <class Type> 00010 Type *Bucket<Type>::remove(void) 00011 { 00012 if (cur == recordNULL) return ( (Type *) NULL ); 00013 union record *r == prevrec(cur); 00014 removerec(cur); cur = r; 00015 return ( (cur != recordNULL && !cur->isempty()) ? \ 00016 (Type *) cur->rec.data : (Type *) NULL ); 00017 } 00018 00019 template <class Type> 00020 Type *Bucket<Type>::prev(void) 00021 { 00022 if (cur == recordNULL) return ( (Type *) NULL ); 00023 cur = prevrec(cur); 00024 return ( (cur != recordNULL && !cur->isempty()) ? \ 00025 (Type *) cur->rec.data : (Type *) NULL ); 00026 } 00027 00028 template <class Type> 00029 Type *Bucket<Type>::next(void) 00030 { 00031 if (cur == recordNULL) return ( first() ); 00032 cur = nextrec(cur); 00033 return ( (cur != recordNULL && !cur->isempty()) ? \ 00034 (Type *) cur->rec.data : (Type *) NULL ); 00035 } 00036 00037 #endif
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 06/01/04