Changeset 543794 for molecuilder/src
- Timestamp:
- Oct 17, 2009, 5:49:05 AM (16 years ago)
- Children:
- e72287
- Parents:
- 746bb4
- Location:
- molecuilder/src
- Files:
-
- 2 edited
-
helpers.cpp (modified) (1 diff)
-
helpers.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/helpers.cpp
r746bb4 r543794 49 49 while (*b < lower_bound) 50 50 *b += step; 51 };52 53 /** Flips two doubles.54 * \param *x pointer to first double55 * \param *y pointer to second double56 */57 void flip(double *x, double *y)58 {59 double tmp;60 tmp = *x;61 *x = *y;62 *y = tmp;63 51 }; 64 52 -
molecuilder/src/helpers.hpp
r746bb4 r543794 44 44 bool check_bounds(double *x, double *cell_size); 45 45 void bound(double *b, double lower_bound, double upper_bound); 46 void flip(double *x, double *y);47 46 int pot(int base, int n); 48 47 int CountLinesinFile(ifstream &InputFile); … … 54 53 55 54 /********************************************** helpful template functions *********************************/ 55 56 /** Flips two values. 57 * \param *x pointer to first value 58 * \param *y pointer to second value 59 */ 60 template <typename T> void flip(T *x, T *y) 61 { 62 T tmp; 63 tmp = *x; 64 *x = *y; 65 *y = tmp; 66 }; 56 67 57 68 /** Creates a lookup table for true father's Atom::Nr -> atom ptr.
Note:
See TracChangeset
for help on using the changeset viewer.
