Changeset 2106 for trunk/source/container_classes.h
- Timestamp:
- 06/10/08 16:39:31 (7 months ago)
- Files:
-
- 1 modified
-
trunk/source/container_classes.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/container_classes.h
r2105 r2106 275 275 //! multi_geom - this class maintains all the geometry information for multi_arr 276 276 //! keeping it separate makes it easy to clone the information from one multi_arr to another 277 template<int d,mem_layout ALLOC=MEM_LAYOUT_VAL ,bool lgBC=lgBOUNDSCHECKVAL>277 template<int d,mem_layout ALLOC=MEM_LAYOUT_VAL> 278 278 class multi_geom 279 279 { … … 382 382 # pragma warning( disable : 4127 ) 383 383 #endif 384 385 STATIC_ASSERT ( ALLOC == C_TYPE || ALLOC == ARPA_TYPE ); 386 384 387 if( ALLOC == ARPA_TYPE ) 385 388 { … … 403 406 { 404 407 TotalInsanity(); 405 } 408 } 406 409 } 407 410 … … 902 905 { 903 906 // ancillary data describing the memory layout of the multi_arr 904 multi_geom<d,ALLOC ,lgBC> p_g;907 multi_geom<d,ALLOC> p_g; 905 908 T** p_psl[d-1]; // pointer arrays for ARPA structure 906 909 valarray<T> p_dsl; // this contains the actual data … … 951 954 p_clear1(); 952 955 } 953 multi_arr(const multi_geom<d,ALLOC ,lgBC>& g)956 multi_arr(const multi_geom<d,ALLOC>& g) 954 957 { 955 958 p_clear1(); … … 1026 1029 # pragma warning( disable : 4127 ) 1027 1030 #endif 1031 STATIC_ASSERT ( ALLOC == C_TYPE || ALLOC == ARPA_TYPE ); 1032 1028 1033 if( ALLOC == ARPA_TYPE ) 1029 1034 { … … 1064 1069 } 1065 1070 // clone the geometry from another multi_arr 1066 void alloc(const multi_geom<d,ALLOC ,lgBC>& g)1071 void alloc(const multi_geom<d,ALLOC>& g) 1067 1072 { 1068 1073 if( &g != &p_g ) … … 1647 1652 } 1648 1653 1649 const multi_geom<d,ALLOC ,lgBC>& clone() const1654 const multi_geom<d,ALLOC>& clone() const 1650 1655 { 1651 1656 return p_g;
