Geant4 Cross Reference |
1 /* 1 2 # <<BEGIN-copyright>> 3 # <<END-copyright>> 4 */ 5 6 #ifndef ptwX_h_included 7 #define ptwX_h_included 8 9 #include <stdio.h> 10 #include <stdint.h> 11 12 #include <nf_utilities.h> 13 14 #if defined __cplusplus 15 extern "C" { 16 namespace GIDI { 17 #endif 18 19 #define ptwX_minimumSize 10 20 21 enum ptwX_sort_order { ptwX_sort_order_descend 22 23 typedef 24 struct ptwXPoints_s { 25 nfu_status status; 26 int64_t length; 27 int64_t allocatedSize; 28 int64_t mallocFailedSize; 29 double *points; 30 } ptwXPoints; 31 32 /* 33 * Routines in ptwX_core.c 34 */ 35 ptwXPoints *ptwX_new( int64_t size, nfu_status 36 nfu_status ptwX_setup( ptwXPoints *ptwX, int64 37 ptwXPoints *ptwX_create( int64_t size, int64_t 38 ptwXPoints *ptwX_createLine( int64_t size, int 39 nfu_status ptwX_copy( ptwXPoints *dest, ptwXPo 40 ptwXPoints *ptwX_clone( ptwXPoints *ptwX, nfu_ 41 ptwXPoints *ptwX_slice( ptwXPoints *ptwX, int6 42 nfu_status ptwX_reallocatePoints( ptwXPoints * 43 nfu_status ptwX_clear( ptwXPoints *ptwX ); 44 nfu_status ptwX_release( ptwXPoints *ptwX ); 45 ptwXPoints *ptwX_free( ptwXPoints *ptwX ); 46 47 int64_t ptwX_length( ptwXPoints *ptwX ); 48 nfu_status ptwX_setData( ptwXPoints *ptwX, int 49 nfu_status ptwX_deletePoints( ptwXPoints *ptwX 50 double *ptwX_getPointAtIndex( ptwXPoints *ptwX 51 double ptwX_getPointAtIndex_Unsafely( ptwXPoin 52 nfu_status ptwX_setPointAtIndex( ptwXPoints *p 53 nfu_status ptwX_insertPointsAtIndex( ptwXPoint 54 int ptwX_ascendingOrder( ptwXPoints *ptwX ); 55 ptwXPoints *ptwX_fromString( char const *str, 56 nfu_status ptwX_countOccurrences( ptwXPoints * 57 nfu_status ptwX_reverse( ptwXPoints *ptwX ); 58 nfu_status ptwX_sort( ptwXPoints *ptwX, enum p 59 nfu_status ptwX_closesDifference( ptwXPoints * 60 nfu_status ptwX_closesDifferenceInRange( ptwXP 61 ptwXPoints *ptwX_unique( ptwXPoints *ptwX, int 62 63 nfu_status ptwX_abs( ptwXPoints *ptwX ); 64 nfu_status ptwX_neg( ptwXPoints *ptwX ); 65 nfu_status ptwX_add_double( ptwXPoints *ptwX, 66 nfu_status ptwX_mul_double( ptwXPoints *ptwX, 67 nfu_status ptwX_slopeOffset( ptwXPoints *ptwX, 68 nfu_status ptwX_add_ptwX( ptwXPoints *ptwX1, p 69 nfu_status ptwX_sub_ptwX( ptwXPoints *ptwX1, p 70 71 nfu_status ptwX_xMinMax( ptwXPoints *ptwX, dou 72 73 nfu_status ptwX_compare( ptwXPoints *ptwX1, pt 74 int ptwX_close( ptwXPoints *ptwX1, ptwXPoints 75 76 /* 77 * Routines in ptwX_misc.c 78 */ 79 void ptwX_simpleWrite( ptwXPoints const *ptwX, 80 void ptwX_simplePrint( ptwXPoints const *ptwX, 81 82 #if defined __cplusplus 83 } 84 } 85 #endif 86 87 #endif /* End of ptwX_h_included. */ 88