| 1 | /* |
| 2 | * This code is part of the tng binary trajectory format. |
| 3 | * |
| 4 | * Copyright (c) 2012-2017, The GROMACS development team. |
| 5 | * Copyright (c) 2020, by the GROMACS development team. |
| 6 | * TNG was orginally written by Magnus Lundborg, Daniel Spångberg and |
| 7 | * Rossen Apostolov. The API is implemented mainly by Magnus Lundborg, |
| 8 | * Daniel Spångberg and Anders Gärdenäs. |
| 9 | * |
| 10 | * Please see the AUTHORS file for more information. |
| 11 | * |
| 12 | * The TNG library is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the Revised BSD License. |
| 14 | * |
| 15 | * To help us fund future development, we humbly ask that you cite |
| 16 | * the research papers on the package. |
| 17 | * |
| 18 | * Check out http://www.gromacs.org for more information. |
| 19 | */ |
| 20 | |
| 21 | /** @file tng_io.h |
| 22 | * @brief API for input and output of tng trajectory files |
| 23 | * @mainpage TNG: A flexible binary trajectory format |
| 24 | * @section intro_sec Introduction |
| 25 | * |
| 26 | * The TNG format is developed as part of the ScalaLife EU project. |
| 27 | * It is flexible by design to allow parallel writing, custom data blocks, |
| 28 | * different output frequencies and different compression algorithms. |
| 29 | * |
| 30 | * Each block can contain MD5 hashes to verify data integrity and the file |
| 31 | * can be signed by the user to ensure that the origin is correct. |
| 32 | * |
| 33 | * The intention is that the API and ABI should be stable, but it is |
| 34 | * still possible that future changes might make that impossible, in which |
| 35 | * case that will be clarified. |
| 36 | * |
| 37 | * The API and all examples are released without any warranties. Use them at |
| 38 | * your own risk. |
| 39 | * |
| 40 | * @section authors_sec Authors |
| 41 | * |
| 42 | * The TNG trajectory format is developed by: |
| 43 | * |
| 44 | * Magnus Lundborg [email protected] |
| 45 | * |
| 46 | * Daniel Spångberg [email protected] |
| 47 | * |
| 48 | * Rossen Apostolov [email protected] |
| 49 | * |
| 50 | * The API is implemented mainly by: |
| 51 | * |
| 52 | * Magnus Lundborg |
| 53 | * |
| 54 | * @section License |
| 55 | * |
| 56 | * Copyright (c) 2012, The GROMACS development team. |
| 57 | * check out http://www.gromacs.org for more information. |
| 58 | * |
| 59 | * The TNG API is released under the Revised BSD License and is free to |
| 60 | * redistribute according to that license. |
| 61 | * |
| 62 | * A license file (named COPYING) should be included with each copy of the API. |
| 63 | * |
| 64 | * @section install_sec Installation |
| 65 | * |
| 66 | * \code |
| 67 | * mkdir build |
| 68 | * |
| 69 | * cd build |
| 70 | * |
| 71 | * cmake .. |
| 72 | * |
| 73 | * make |
| 74 | * |
| 75 | * make install |
| 76 | * \endcode |
| 77 | * Test by running: |
| 78 | * \code |
| 79 | * bin/tests/tng_testing |
| 80 | * \endcode |
| 81 | * |
| 82 | * @section change_sec Change Log |
| 83 | * |
| 84 | * See git log for full revision history. |
| 85 | * |
| 86 | * Revisions |
| 87 | * |
| 88 | * v. 1.8 - Added GROMACS energy block IDs. |
| 89 | * - Rewritten build system for the main library. |
| 90 | * - Added block ID for atom (or generic particle) mass. |
| 91 | * - Fixed bugs, such as: |
| 92 | * - Do not switch endianness when reading and writing TNG compressed data. |
| 93 | * - Update pointers to residues in the chain when writing multiple chains in one molecule. |
| 94 | * - Update frame set pointers when appending to file. |
| 95 | * |
| 96 | * v. 1.7 - Fifth stable release of the API |
| 97 | * |
| 98 | * - Added function tng_util_num_frames_with_data_of_block_id_get(). |
| 99 | * - Merged some functions and data structures |
| 100 | * to make less difference between data blocks. |
| 101 | * - Bugs fixed |
| 102 | * |
| 103 | * v. 1.6 - Fourth stable release of the API. |
| 104 | * |
| 105 | * - Removed OpenMP option when building. |
| 106 | * - Functionality for migrating data blocks. |
| 107 | * - Improved handling of molecules. |
| 108 | * - Improved installation of TNG documentation. |
| 109 | * - Enhancements to CMake usage. |
| 110 | * - Required CMake version raised to 2.8.8. |
| 111 | * - Bugs fixed. |
| 112 | * |
| 113 | * v. 1.5 - Third stable release of the API. |
| 114 | * |
| 115 | * - Fortran wrapper split into separate file |
| 116 | * - Added more block IDs. |
| 117 | * - Some new functions and utility functions added. |
| 118 | * - Improved compression precision settings. |
| 119 | * - Improved tests. |
| 120 | * - Make appending to file work better. |
| 121 | * - Modified CMake settings |
| 122 | * - Bugs fixed |
| 123 | * |
| 124 | * v. 1.4 - Changed from LGPL to the Revised BSD License. |
| 125 | * |
| 126 | * - More flexible support for digital signatures in header. |
| 127 | * - Block ID numbers changed. |
| 128 | * |
| 129 | * v. 1.3 - Second stable release of the API. |
| 130 | * |
| 131 | * - Added multiplication factor for coordinate units to general info. |
| 132 | * - Added time stamps and time per frame in frame sets. |
| 133 | * - High-level API functions added (not for managing molecules yet) |
| 134 | * - Added functions for reading data blocks into 1D arrays. |
| 135 | * - TNG compression added. |
| 136 | * - C++ interface added. |
| 137 | * - Avoid memory allocation if no data is submitted when adding data |
| 138 | * blocks. |
| 139 | * - Added function tng_num_frames_per_frame_set_set |
| 140 | * - Added data block IDs for charges, b-factors and occupancy. |
| 141 | * - GZIP compression added. |
| 142 | * - Fixed bug when updating MD5 hashes of data blocks. |
| 143 | * - Fixed bug in chain_name_of_particle_get(...) |
| 144 | * - Update frame set pointers properly. |
| 145 | * - Moved fortran wrapper from header file to source file. |
| 146 | * - Write sparse data in mdrun examples. |
| 147 | * - Fixed bugs related to reading and writing sparse data. |
| 148 | * - Fixed memory leak for non-trajectory particle data blocks. |
| 149 | * - Fixed bug when writing data blocks. |
| 150 | * - Fixed wrong values in dependency constants |
| 151 | * - Write box shape, partial charges and annotation data in tng_testing |
| 152 | * - Bug fixes in tng_testing (frame sets not written before) |
| 153 | * |
| 154 | * v. 1.0 - First stable release of the API. |
| 155 | * |
| 156 | * |
| 157 | * @section examples_sec Examples |
| 158 | * |
| 159 | * There are some examples of how to use the library located in src/tests/ |
| 160 | * |
| 161 | * @subsection tng_subsec TNG files |
| 162 | * |
| 163 | * The build directory contains an example_files directory, which in turn |
| 164 | * contains a very short example of a TNG file containing a few water molecules, |
| 165 | * a box shape description and positions in 10 frames. |
| 166 | * |
| 167 | * It is also possible to run the bin/examples/md_openmp_util |
| 168 | * (see src/tests/md_openmp_util.c) |
| 169 | * testing program, which will save MD simulations output to a new file |
| 170 | * (saved in the example_files directory). |
| 171 | * |
| 172 | * These files can be read using the bin/examples/tng_io_read_pos_util |
| 173 | * program. |
| 174 | * |
| 175 | * @subsection c_subsec C |
| 176 | * |
| 177 | * Example writing data to a TNG file (just an excerpt): |
| 178 | * \code |
| 179 | * for ( step = 1; step < step_num; step++ ) |
| 180 | * { |
| 181 | * compute ( np, nd, pos, vel, mass, force, &potential, &kinetic ); |
| 182 | * |
| 183 | * if(step % step_save == 0) |
| 184 | * { |
| 185 | * // Write positions, velocities and forces |
| 186 | * if(tng_util_pos_write(traj, step, pos) != TNG_SUCCESS) |
| 187 | * { |
| 188 | * printf("Error adding data. %s: %d\n", __FILE__, __LINE__); |
| 189 | * break; |
| 190 | * } |
| 191 | * if(tng_util_vel_write(traj, step, vel) != TNG_SUCCESS) |
| 192 | * { |
| 193 | * printf("Error adding data. %s: %d\n", __FILE__, __LINE__); |
| 194 | * break; |
| 195 | * } |
| 196 | * if(tng_util_force_write(traj, step, force) != TNG_SUCCESS) |
| 197 | * { |
| 198 | * printf("Error adding data. %s: %d\n", __FILE__, __LINE__); |
| 199 | * break; |
| 200 | * } |
| 201 | * } |
| 202 | * update ( np, nd, pos, vel, force, acc, mass, dt ); |
| 203 | * } |
| 204 | * \endcode |
| 205 | * |
| 206 | * Example reading positions from a TNG file: |
| 207 | * \code |
| 208 | * #include <stdlib.h> |
| 209 | * #include <stdio.h> |
| 210 | * #include "tng/tng_io.h" |
| 211 | * |
| 212 | * int main(int argc, char **argv) |
| 213 | * { |
| 214 | * tng_trajectory_t traj; |
| 215 | * // Assume that the data is stored as floats. The data is placed in 1-D |
| 216 | * // arrays |
| 217 | * float *positions = 0, *box_shape = 0; |
| 218 | * int64_t n_particles, n_frames, tot_n_frames, stride_length, i, j; |
| 219 | * // Set a default frame range |
| 220 | * int64_t first_frame = 0, last_frame = 5000; |
| 221 | * int k; |
| 222 | * |
| 223 | * // A reference must be passed to allocate memory |
| 224 | * tng_util_trajectory_open(argv[1], 'r', &traj); |
| 225 | * |
| 226 | * if(tng_num_frames_get(traj, &tot_n_frames) != TNG_SUCCESS) |
| 227 | * { |
| 228 | * printf("Cannot determine the number of frames in the file\n"); |
| 229 | * tng_util_trajectory_close(&traj); |
| 230 | * exit(1); |
| 231 | * } |
| 232 | * |
| 233 | * if(tng_num_particles_get(traj, &n_particles) != TNG_SUCCESS) |
| 234 | * { |
| 235 | * printf("Cannot determine the number of particles in the file\n"); |
| 236 | * tng_util_trajectory_close(&traj); |
| 237 | * exit(1); |
| 238 | * } |
| 239 | * |
| 240 | * printf("%"PRId64" frames in file\n", tot_n_frames); |
| 241 | * |
| 242 | * if(last_frame > tot_n_frames - 1) |
| 243 | * { |
| 244 | * last_frame = tot_n_frames - 1; |
| 245 | * } |
| 246 | * |
| 247 | * if(tng_util_box_shape_read(traj, &box_shape, &stride_length) == |
| 248 | * TNG_SUCCESS) |
| 249 | * { |
| 250 | * printf("Simulation box shape: "); |
| 251 | * for(i=0; i < 9; i++) |
| 252 | * { |
| 253 | * printf("%f ", box_shape[i]); |
| 254 | * } |
| 255 | * printf("\n"); |
| 256 | * } |
| 257 | * else |
| 258 | * { |
| 259 | * printf("Simulation box shape not set in the file (or could not be read)\n"); |
| 260 | * } |
| 261 | * |
| 262 | * n_frames = last_frame - first_frame + 1; |
| 263 | * |
| 264 | * |
| 265 | * // Get the positions of all particles in the requested frame range. |
| 266 | * // The positions are stored in the positions array. |
| 267 | * // N.B. No proper error checks. |
| 268 | * if(tng_util_pos_read_range(traj, 0, last_frame, &positions, &stride_length) |
| 269 | * == TNG_SUCCESS) |
| 270 | * { |
| 271 | * // Print the positions of the wanted particle (zero based) |
| 272 | * for(i=0; i < n_frames; i += stride_length) |
| 273 | * { |
| 274 | * printf("\nFrame %"PRId64":\n", first_frame + i); |
| 275 | * for(j=0; j < n_particles; j++) |
| 276 | * { |
| 277 | * printf("Atom nr: %"PRId64"", j); |
| 278 | * for(k=0; k < 3; k++) |
| 279 | * { |
| 280 | * printf("\t%f", positions[i/stride_length*n_particles* |
| 281 | * 3+j*3+k]); |
| 282 | * } |
| 283 | * printf("\n"); |
| 284 | * } |
| 285 | * } |
| 286 | * } |
| 287 | * else |
| 288 | * { |
| 289 | * printf("Cannot read positions\n"); |
| 290 | * } |
| 291 | * |
| 292 | * // Free memory |
| 293 | * if(positions) |
| 294 | * { |
| 295 | * free(positions); |
| 296 | * } |
| 297 | * tng_util_trajectory_close(&traj); |
| 298 | * |
| 299 | * return(0); |
| 300 | * } |
| 301 | * |
| 302 | * \endcode |
| 303 | * |
| 304 | * @subsection fortran_subsec Fortran |
| 305 | * |
| 306 | * The TNG library can be used from Fortran. It requires cray pointers, which |
| 307 | * are not part of the Fortran 77 standard, but available in most compilers. |
| 308 | * |
| 309 | * To compile the fortran example -DTNG_BUILD_FORTRAN=ON needs to be specified when |
| 310 | * running cmake. |
| 311 | * |
| 312 | */ |
| 313 | |
| 314 | #ifndef TNG_IO_H |
| 315 | #define TNG_IO_Hcxx . . $ `src/external/tng_io/include/tng/tng_io.h:315:9`! 1 |
| 316 | |
| 317 | #include <stdio.h> |
| 318 | #include <stdlib.h> |
| 319 | #include <string.h> |
| 320 | #include <assert.h> |
| 321 | #include "tng_io_fwd.h"cxx . . $ `<file>/src/external/tng_io/include/tng/tng_io_fwd.h`/ |
| 322 | |
| 323 | #ifdef USE_STD_INTTYPES_Hcxx . . $ `<built-in>:491:9`! |
| 324 | # include <inttypes.h> |
| 325 | #else |
| 326 | /* Visual Studio does not contain inttypes.h and stdint.h. Some defines and |
| 327 | * typedefs are used from the GNU C Library */ |
| 328 | # ifdef _MSC_VER |
| 329 | |
| 330 | typedef __int32 int32_t; |
| 331 | typedef unsigned __int32 uint32_t; |
| 332 | typedef __int64 int64_t; |
| 333 | typedef unsigned __int64 uint64_t; |
| 334 | |
| 335 | # else |
| 336 | # include <stdint.h> |
| 337 | # endif /* _MSC_VER */ |
| 338 | |
| 339 | /* This is from inttypes.h (GNU C Library) */ |
| 340 | /* The ISO C99 standard specifies that these macros must only be |
| 341 | defined if explicitly requested. */ |
| 342 | # if !defined __cplusplus || defined __STDC_FORMAT_MACROS |
| 343 | |
| 344 | # if __WORDSIZE == 64 |
| 345 | # define __PRI64_PREFIX "l" |
| 346 | # define __PRIPTR_PREFIX "l" |
| 347 | # else |
| 348 | # define __PRI64_PREFIX "ll" |
| 349 | # define __PRIPTR_PREFIX |
| 350 | # endif |
| 351 | |
| 352 | /* From stdint.h (GNU C Library) */ |
| 353 | /* Macros for printing format specifiers. */ |
| 354 | /* Decimal notation. */ |
| 355 | # ifndef PRId64 |
| 356 | # define PRId64 __PRI64_PREFIX "d" |
| 357 | # endif |
| 358 | |
| 359 | # ifndef PRIu64 |
| 360 | # define PRIu64 __PRI64_PREFIX "u" |
| 361 | # endif |
| 362 | |
| 363 | # ifndef PRIuPTR |
| 364 | # define PRIuPTR __PRIPTR_PREFIX "u" |
| 365 | # endif |
| 366 | |
| 367 | # endif |
| 368 | |
| 369 | #endif /* USE_STD_INTTYPES_H */ |
| 370 | |
| 371 | #ifndef USE_WINDOWS |
| 372 | # if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) |
| 373 | # define USE_WINDOWS |
| 374 | # endif /* win32... */ |
| 375 | #endif /* not defined USE_WINDOWS */ |
| 376 | |
| 377 | #ifndef DECLSPECDLLEXPORT |
| 378 | # ifdef USE_WINDOWS |
| 379 | # define DECLSPECDLLEXPORT __declspec(dllexport) |
| 380 | # else /* USE_WINDOWS */ |
| 381 | # define DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! |
| 382 | # endif /* USE_WINDOWS */ |
| 383 | #endif /* DECLSPECDLLEXPORT */ |
| 384 | |
| 385 | /** Flag to indicate frame dependent data. */ |
| 386 | #define TNG_FRAME_DEPENDENTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:386:9`! 1 |
| 387 | /** Flag to indicate particle dependent data. */ |
| 388 | #define TNG_PARTICLE_DEPENDENTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:388:9`! 2 |
| 389 | |
| 390 | /** The maximum length of a date string */ |
| 391 | #define TNG_MAX_DATE_STR_LENcxx . . $ `src/external/tng_io/include/tng/tng_io.h:391:9`! 24 |
| 392 | /** The length of an MD5 hash */ |
| 393 | #define TNG_MD5_HASH_LENcxx . . $ `src/external/tng_io/include/tng/tng_io.h:393:9`! 16 |
| 394 | /** The maximum allowed length of a string */ |
| 395 | #define TNG_MAX_STR_LENcxx . . $ `src/external/tng_io/include/tng/tng_io.h:395:9`! 1024 |
| 396 | |
| 397 | #ifndef NDEBUGcxx . . $ `<built-in>:422:9`! |
| 398 | # define TNG_ASSERT(cnd, msg) \ |
| 399 | if (!(cnd)) \ |
| 400 | { \ |
| 401 | printf("%s\n", msg); \ |
| 402 | assert(cnd); \ |
| 403 | } |
| 404 | #else |
| 405 | # define TNG_ASSERTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:405:13`!(cnd, msg) (void)0; |
| 406 | #endif |
| 407 | |
| 408 | /** Flag to specify the endianness of a TNG file */ |
| 409 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_0# |
| 410 | { |
| 411 | TNG_BIG_ENDIANcxx . . $ TNG_BIG_ENDIAN., |
| 412 | TNG_LITTLE_ENDIANcxx . . $ TNG_LITTLE_ENDIAN. |
| 413 | } tng_file_endiannesscxx . . $ tng_file_endianness#; |
| 414 | |
| 415 | /** Flag to specify the endianness of 32 bit values of the current architecture. */ |
| 416 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_1# |
| 417 | { |
| 418 | TNG_BIG_ENDIAN_32cxx . . $ TNG_BIG_ENDIAN_32., |
| 419 | TNG_LITTLE_ENDIAN_32cxx . . $ TNG_LITTLE_ENDIAN_32., |
| 420 | TNG_BYTE_PAIR_SWAP_32cxx . . $ TNG_BYTE_PAIR_SWAP_32. |
| 421 | } tng_endianness_32cxx . . $ tng_endianness_32#; |
| 422 | |
| 423 | /** Flag to specify the endianness of 64 bit values of the current architecture. */ |
| 424 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_2# |
| 425 | { |
| 426 | TNG_BIG_ENDIAN_64cxx . . $ TNG_BIG_ENDIAN_64., |
| 427 | TNG_LITTLE_ENDIAN_64cxx . . $ TNG_LITTLE_ENDIAN_64., |
| 428 | TNG_QUAD_SWAP_64cxx . . $ TNG_QUAD_SWAP_64., |
| 429 | TNG_BYTE_PAIR_SWAP_64cxx . . $ TNG_BYTE_PAIR_SWAP_64., |
| 430 | TNG_BYTE_SWAP_64cxx . . $ TNG_BYTE_SWAP_64. |
| 431 | } tng_endianness_64cxx . . $ tng_endianness_64#; |
| 432 | |
| 433 | /** Compression mode is specified in each data block */ |
| 434 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_3# |
| 435 | { |
| 436 | TNG_UNCOMPRESSEDcxx . . $ TNG_UNCOMPRESSED., |
| 437 | TNG_XTC_COMPRESSIONcxx . . $ TNG_XTC_COMPRESSION., |
| 438 | TNG_TNG_COMPRESSIONcxx . . $ TNG_TNG_COMPRESSION., |
| 439 | TNG_GZIP_COMPRESSIONcxx . . $ TNG_GZIP_COMPRESSION. |
| 440 | } tng_compressioncxx . . $ tng_compression#; |
| 441 | |
| 442 | /** Hash types */ |
| 443 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_4# |
| 444 | { |
| 445 | TNG_NO_HASHcxx . . $ TNG_NO_HASH., |
| 446 | TNG_MD5cxx . . $ TNG_MD5., |
| 447 | TNG_SHA256cxx . . $ TNG_SHA256. |
| 448 | } tng_hash_typecxx . . $ tng_hash_type#; |
| 449 | |
| 450 | /** Non trajectory blocks come before the first frame set block */ |
| 451 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_5# |
| 452 | { |
| 453 | TNG_NON_TRAJECTORY_BLOCKcxx . . $ TNG_NON_TRAJECTORY_BLOCK., |
| 454 | TNG_TRAJECTORY_BLOCKcxx . . $ TNG_TRAJECTORY_BLOCK. |
| 455 | } tng_block_typecxx . . $ tng_block_type#; |
| 456 | |
| 457 | /** @defgroup def1 Standard non-trajectory blocks |
| 458 | * Block IDs of standard non-trajectory blocks. |
| 459 | * @{ |
| 460 | */ |
| 461 | #define TNG_GENERAL_INFOcxx . . $ `src/external/tng_io/include/tng/tng_io.h:461:9`! 0x0000000000000000LL |
| 462 | #define TNG_MOLECULEScxx . . $ `src/external/tng_io/include/tng/tng_io.h:462:9`! 0x0000000000000001LL |
| 463 | #define TNG_TRAJECTORY_FRAME_SETcxx . . $ `src/external/tng_io/include/tng/tng_io.h:463:9`! 0x0000000000000002LL |
| 464 | #define TNG_PARTICLE_MAPPINGcxx . . $ `src/external/tng_io/include/tng/tng_io.h:464:9`! 0x0000000000000003LL |
| 465 | /** @} */ |
| 466 | |
| 467 | /** @defgroup def2 Standard trajectory blocks |
| 468 | * Block IDs of standard trajectory blocks. Box shape and partial charges can |
| 469 | * be either trajectory blocks or non-trajectory blocks |
| 470 | * @{ |
| 471 | */ |
| 472 | #define TNG_TRAJ_BOX_SHAPEcxx . . $ `src/external/tng_io/include/tng/tng_io.h:472:9`! 0x0000000010000000LL |
| 473 | #define TNG_TRAJ_POSITIONScxx . . $ `src/external/tng_io/include/tng/tng_io.h:473:9`! 0x0000000010000001LL |
| 474 | #define TNG_TRAJ_VELOCITIEScxx . . $ `src/external/tng_io/include/tng/tng_io.h:474:9`! 0x0000000010000002LL |
| 475 | #define TNG_TRAJ_FORCEScxx . . $ `src/external/tng_io/include/tng/tng_io.h:475:9`! 0x0000000010000003LL |
| 476 | #define TNG_TRAJ_PARTIAL_CHARGEScxx . . $ `src/external/tng_io/include/tng/tng_io.h:476:9`! 0x0000000010000004LL |
| 477 | #define TNG_TRAJ_FORMAL_CHARGEScxx . . $ `src/external/tng_io/include/tng/tng_io.h:477:9`! 0x0000000010000005LL |
| 478 | #define TNG_TRAJ_B_FACTORScxx . . $ `src/external/tng_io/include/tng/tng_io.h:478:9`! 0x0000000010000006LL |
| 479 | #define TNG_TRAJ_ANISOTROPIC_B_FACTORScxx . . $ `src/external/tng_io/include/tng/tng_io.h:479:9`! 0x0000000010000007LL |
| 480 | #define TNG_TRAJ_OCCUPANCYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:480:9`! 0x0000000010000008LL |
| 481 | #define TNG_TRAJ_GENERAL_COMMENTScxx . . $ `src/external/tng_io/include/tng/tng_io.h:481:9`! 0x0000000010000009LL |
| 482 | #define TNG_TRAJ_MASSEScxx . . $ `src/external/tng_io/include/tng/tng_io.h:482:9`! 0x0000000010000010LL |
| 483 | /** @} */ |
| 484 | |
| 485 | |
| 486 | /** @defgroup def3 GROMACS data block IDs |
| 487 | * Block IDs of data blocks specific to GROMACS. |
| 488 | * @{ |
| 489 | */ |
| 490 | #define TNG_GMX_LAMBDAcxx . . $ `src/external/tng_io/include/tng/tng_io.h:490:9`! 0x1000000010000000LL |
| 491 | #define TNG_GMX_ENERGY_ANGLEcxx . . $ `src/external/tng_io/include/tng/tng_io.h:491:9`! 0x1000000010000001LL |
| 492 | #define TNG_GMX_ENERGY_RYCKAERT_BELLcxx . . $ `src/external/tng_io/include/tng/tng_io.h:492:9`! 0x1000000010000002LL |
| 493 | #define TNG_GMX_ENERGY_LJ_14cxx . . $ `src/external/tng_io/include/tng/tng_io.h:493:9`! 0x1000000010000003LL |
| 494 | #define TNG_GMX_ENERGY_COULOMB_14cxx . . $ `src/external/tng_io/include/tng/tng_io.h:494:9`! 0x1000000010000004LL |
| 495 | #define TNG_GMX_ENERGY_LJ_cxx . . $ `src/external/tng_io/include/tng/tng_io.h:495:9`!(SR) 0x1000000010000005LL |
| 496 | #define TNG_GMX_ENERGY_COULOMB_cxx . . $ `src/external/tng_io/include/tng/tng_io.h:496:9`!(SR) 0x1000000010000006LL |
| 497 | #define TNG_GMX_ENERGY_COUL_RECIPcxx . . $ `src/external/tng_io/include/tng/tng_io.h:497:9`! 0x1000000010000007LL |
| 498 | #define TNG_GMX_ENERGY_POTENTIALcxx . . $ `src/external/tng_io/include/tng/tng_io.h:498:9`! 0x1000000010000008LL |
| 499 | #define TNG_GMX_ENERGY_KINETIC_ENcxx . . $ `src/external/tng_io/include/tng/tng_io.h:499:9`! 0x1000000010000009LL |
| 500 | #define TNG_GMX_ENERGY_TOTAL_ENERGYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:500:9`! 0x1000000010000010LL |
| 501 | #define TNG_GMX_ENERGY_TEMPERATUREcxx . . $ `src/external/tng_io/include/tng/tng_io.h:501:9`! 0x1000000010000011LL |
| 502 | #define TNG_GMX_ENERGY_PRESSUREcxx . . $ `src/external/tng_io/include/tng/tng_io.h:502:9`! 0x1000000010000012LL |
| 503 | #define TNG_GMX_ENERGY_CONSTR_RMSDcxx . . $ `src/external/tng_io/include/tng/tng_io.h:503:9`! 0x1000000010000013LL |
| 504 | #define TNG_GMX_ENERGY_CONSTR2_RMSDcxx . . $ `src/external/tng_io/include/tng/tng_io.h:504:9`! 0x1000000010000014LL |
| 505 | #define TNG_GMX_ENERGY_BOX_Xcxx . . $ `src/external/tng_io/include/tng/tng_io.h:505:9`! 0x1000000010000015LL |
| 506 | #define TNG_GMX_ENERGY_BOX_Ycxx . . $ `src/external/tng_io/include/tng/tng_io.h:506:9`! 0x1000000010000016LL |
| 507 | #define TNG_GMX_ENERGY_BOX_Zcxx . . $ `src/external/tng_io/include/tng/tng_io.h:507:9`! 0x1000000010000017LL |
| 508 | #define TNG_GMX_ENERGY_BOXXXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:508:9`! 0x1000000010000018LL |
| 509 | #define TNG_GMX_ENERGY_BOXYYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:509:9`! 0x1000000010000019LL |
| 510 | #define TNG_GMX_ENERGY_BOXZZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:510:9`! 0x1000000010000020LL |
| 511 | #define TNG_GMX_ENERGY_BOXYXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:511:9`! 0x1000000010000021LL |
| 512 | #define TNG_GMX_ENERGY_BOXZXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:512:9`! 0x1000000010000022LL |
| 513 | #define TNG_GMX_ENERGY_BOXZYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:513:9`! 0x1000000010000023LL |
| 514 | #define TNG_GMX_ENERGY_BOXVELXXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:514:9`! 0x1000000010000024LL |
| 515 | #define TNG_GMX_ENERGY_BOXVELYYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:515:9`! 0x1000000010000025LL |
| 516 | #define TNG_GMX_ENERGY_BOXVELZZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:516:9`! 0x1000000010000026LL |
| 517 | #define TNG_GMX_ENERGY_BOXVELYXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:517:9`! 0x1000000010000027LL |
| 518 | #define TNG_GMX_ENERGY_BOXVELZXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:518:9`! 0x1000000010000028LL |
| 519 | #define TNG_GMX_ENERGY_BOXVELZYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:519:9`! 0x1000000010000029LL |
| 520 | #define TNG_GMX_ENERGY_VOLUMEcxx . . $ `src/external/tng_io/include/tng/tng_io.h:520:9`! 0x1000000010000030LL |
| 521 | #define TNG_GMX_ENERGY_DENSITYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:521:9`! 0x1000000010000031LL |
| 522 | #define TNG_GMX_ENERGY_PVcxx . . $ `src/external/tng_io/include/tng/tng_io.h:522:9`! 0x1000000010000032LL |
| 523 | #define TNG_GMX_ENERGY_ENTHALPYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:523:9`! 0x1000000010000033LL |
| 524 | #define TNG_GMX_ENERGY_VIR_XXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:524:9`! 0x1000000010000034LL |
| 525 | #define TNG_GMX_ENERGY_VIR_XYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:525:9`! 0x1000000010000035LL |
| 526 | #define TNG_GMX_ENERGY_VIR_XZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:526:9`! 0x1000000010000036LL |
| 527 | #define TNG_GMX_ENERGY_VIR_YXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:527:9`! 0x1000000010000037LL |
| 528 | #define TNG_GMX_ENERGY_VIR_YYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:528:9`! 0x1000000010000038LL |
| 529 | #define TNG_GMX_ENERGY_VIR_YZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:529:9`! 0x1000000010000039LL |
| 530 | #define TNG_GMX_ENERGY_VIR_ZXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:530:9`! 0x1000000010000040LL |
| 531 | #define TNG_GMX_ENERGY_VIR_ZYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:531:9`! 0x1000000010000041LL |
| 532 | #define TNG_GMX_ENERGY_VIR_ZZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:532:9`! 0x1000000010000042LL |
| 533 | #define TNG_GMX_ENERGY_SHAKEVIR_XXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:533:9`! 0x1000000010000043LL |
| 534 | #define TNG_GMX_ENERGY_SHAKEVIR_XYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:534:9`! 0x1000000010000044LL |
| 535 | #define TNG_GMX_ENERGY_SHAKEVIR_XZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:535:9`! 0x1000000010000045LL |
| 536 | #define TNG_GMX_ENERGY_SHAKEVIR_YXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:536:9`! 0x1000000010000046LL |
| 537 | #define TNG_GMX_ENERGY_SHAKEVIR_YYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:537:9`! 0x1000000010000047LL |
| 538 | #define TNG_GMX_ENERGY_SHAKEVIR_YZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:538:9`! 0x1000000010000048LL |
| 539 | #define TNG_GMX_ENERGY_SHAKEVIR_ZXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:539:9`! 0x1000000010000049LL |
| 540 | #define TNG_GMX_ENERGY_SHAKEVIR_ZYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:540:9`! 0x1000000010000050LL |
| 541 | #define TNG_GMX_ENERGY_SHAKEVIR_ZZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:541:9`! 0x1000000010000051LL |
| 542 | #define TNG_GMX_ENERGY_FORCEVIR_XXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:542:9`! 0x1000000010000052LL |
| 543 | #define TNG_GMX_ENERGY_FORCEVIR_XYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:543:9`! 0x1000000010000053LL |
| 544 | #define TNG_GMX_ENERGY_FORCEVIR_XZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:544:9`! 0x1000000010000054LL |
| 545 | #define TNG_GMX_ENERGY_FORCEVIR_YXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:545:9`! 0x1000000010000055LL |
| 546 | #define TNG_GMX_ENERGY_FORCEVIR_YYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:546:9`! 0x1000000010000056LL |
| 547 | #define TNG_GMX_ENERGY_FORCEVIR_YZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:547:9`! 0x1000000010000057LL |
| 548 | #define TNG_GMX_ENERGY_FORCEVIR_ZXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:548:9`! 0x1000000010000058LL |
| 549 | #define TNG_GMX_ENERGY_FORCEVIR_ZYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:549:9`! 0x1000000010000059LL |
| 550 | #define TNG_GMX_ENERGY_FORCEVIR_ZZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:550:9`! 0x1000000010000060LL |
| 551 | #define TNG_GMX_ENERGY_PRES_XXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:551:9`! 0x1000000010000061LL |
| 552 | #define TNG_GMX_ENERGY_PRES_XYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:552:9`! 0x1000000010000062LL |
| 553 | #define TNG_GMX_ENERGY_PRES_XZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:553:9`! 0x1000000010000063LL |
| 554 | #define TNG_GMX_ENERGY_PRES_YXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:554:9`! 0x1000000010000064LL |
| 555 | #define TNG_GMX_ENERGY_PRES_YYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:555:9`! 0x1000000010000065LL |
| 556 | #define TNG_GMX_ENERGY_PRES_YZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:556:9`! 0x1000000010000066LL |
| 557 | #define TNG_GMX_ENERGY_PRES_ZXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:557:9`! 0x1000000010000067LL |
| 558 | #define TNG_GMX_ENERGY_PRES_ZYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:558:9`! 0x1000000010000068LL |
| 559 | #define TNG_GMX_ENERGY_PRES_ZZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:559:9`! 0x1000000010000069LL |
| 560 | #define TNG_GMX_ENERGY_SURFXSURFTENcxx . . $ `src/external/tng_io/include/tng/tng_io.h:560:9`! 0x1000000010000070LL |
| 561 | #define TNG_GMX_ENERGY_MUXcxx . . $ `src/external/tng_io/include/tng/tng_io.h:561:9`! 0x1000000010000071LL |
| 562 | #define TNG_GMX_ENERGY_MUYcxx . . $ `src/external/tng_io/include/tng/tng_io.h:562:9`! 0x1000000010000072LL |
| 563 | #define TNG_GMX_ENERGY_MUZcxx . . $ `src/external/tng_io/include/tng/tng_io.h:563:9`! 0x1000000010000073LL |
| 564 | #define TNG_GMX_ENERGY_VCOScxx . . $ `src/external/tng_io/include/tng/tng_io.h:564:9`! 0x1000000010000074LL |
| 565 | #define TNG_GMX_ENERGY_VISCcxx . . $ `src/external/tng_io/include/tng/tng_io.h:565:9`! 0x1000000010000075LL |
| 566 | #define TNG_GMX_ENERGY_BAROSTATcxx . . $ `src/external/tng_io/include/tng/tng_io.h:566:9`! 0x1000000010000076LL |
| 567 | #define TNG_GMX_ENERGY_T_SYSTEMcxx . . $ `src/external/tng_io/include/tng/tng_io.h:567:9`! 0x1000000010000077LL |
| 568 | #define TNG_GMX_ENERGY_LAMB_SYSTEMcxx . . $ `src/external/tng_io/include/tng/tng_io.h:568:9`! 0x1000000010000078LL |
| 569 | #define TNG_GMX_SELECTION_GROUP_NAMEScxx . . $ `src/external/tng_io/include/tng/tng_io.h:569:9`! 0x1000000010000079LL |
| 570 | #define TNG_GMX_ATOM_SELECTION_GROUPcxx . . $ `src/external/tng_io/include/tng/tng_io.h:570:9`! 0x1000000010000080LL |
| 571 | /** @} */ |
| 572 | |
| 573 | /** Flag to specify if a data block contains data related to particles or not.*/ |
| 574 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_6# |
| 575 | { |
| 576 | TNG_NON_PARTICLE_BLOCK_DATAcxx . . $ TNG_NON_PARTICLE_BLOCK_DATA., |
| 577 | TNG_PARTICLE_BLOCK_DATAcxx . . $ TNG_PARTICLE_BLOCK_DATA. |
| 578 | } tng_particle_dependencycxx . . $ tng_particle_dependency#; |
| 579 | |
| 580 | |
| 581 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_7# |
| 582 | { |
| 583 | TNG_FALSEcxx . . $ TNG_FALSE., |
| 584 | TNG_TRUEcxx . . $ TNG_TRUE. |
| 585 | } tng_boolcxx . . $ tng_bool#; |
| 586 | |
| 587 | /** Flag to specify if the number of atoms change throughout the trajectory or |
| 588 | * if it is constant. */ |
| 589 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_8# |
| 590 | { |
| 591 | TNG_CONSTANT_N_ATOMScxx . . $ TNG_CONSTANT_N_ATOMS., |
| 592 | TNG_VARIABLE_N_ATOMScxx . . $ TNG_VARIABLE_N_ATOMS. |
| 593 | } tng_variable_n_atoms_flagcxx . . $ tng_variable_n_atoms_flag#; |
| 594 | |
| 595 | /** Return values of API functions. TNG_SUCCESS means that the operation |
| 596 | * was successful. TNG_FAILURE means that the operation failed for some |
| 597 | * reason, but it is possible to try to continue anyhow. TNG_CRITICAL |
| 598 | * means that the error is irrecoverable. */ |
| 599 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_9# |
| 600 | { |
| 601 | TNG_SUCCESScxx . . $ TNG_SUCCESS., |
| 602 | TNG_FAILUREcxx . . $ TNG_FAILURE., |
| 603 | TNG_CRITICALcxx . . $ TNG_CRITICAL. |
| 604 | } tng_function_statuscxx . . $ tng_function_status#; |
| 605 | |
| 606 | /** If tng_hash_mode == TNG_USE_HASH md5 hashes will be written to output files |
| 607 | * and when reading a file the md5 hashes of the contents will be compared to |
| 608 | * those in the file (for each block) in order to ensure data integrity */ |
| 609 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_10# |
| 610 | { |
| 611 | TNG_SKIP_HASHcxx . . $ TNG_SKIP_HASH., |
| 612 | TNG_USE_HASHcxx . . $ TNG_USE_HASH. |
| 613 | } tng_hash_modecxx . . $ tng_hash_mode#; |
| 614 | |
| 615 | /** Possible formats of data block contents */ |
| 616 | typedef enumcxx . . $ $anonymous_type_5771e7beec3ca0d9_11# |
| 617 | { |
| 618 | TNG_CHAR_DATAcxx . . $ TNG_CHAR_DATA., |
| 619 | TNG_INT_DATAcxx . . $ TNG_INT_DATA., |
| 620 | TNG_FLOAT_DATAcxx . . $ TNG_FLOAT_DATA., |
| 621 | TNG_DOUBLE_DATAcxx . . $ TNG_DOUBLE_DATA. |
| 622 | } tng_data_typecxx . . $ tng_data_type#; |
| 623 | |
| 624 | |
| 625 | struct tng_trajectorycxx . . $ tng_trajectory#; |
| 626 | struct tng_moleculecxx . . $ tng_molecule#; |
| 627 | struct tng_chaincxx . . $ tng_chain#; |
| 628 | struct tng_residuecxx . . $ tng_residue#; |
| 629 | struct tng_atomcxx . . $ tng_atom#; |
| 630 | struct tng_bondcxx . . $ tng_bond#; |
| 631 | struct tng_gen_blockcxx . . $ tng_gen_block#; |
| 632 | struct tng_particle_mappingcxx . . $ tng_particle_mapping#; |
| 633 | struct tng_trajectory_frame_setcxx . . $ tng_trajectory_frame_set#; |
| 634 | struct tng_particle_datacxx . . $ tng_particle_data#; |
| 635 | struct tng_non_particle_datacxx . . $ tng_non_particle_data#; |
| 636 | |
| 637 | /** Data can be either double, float, int or a string */ |
| 638 | union data_valuescxx . . $ data_values# { |
| 639 | double dcxx . . $ data_values#d.; |
| 640 | float fcxx . . $ data_values#f.; |
| 641 | int64_tcxx . . $ int64_t# icxx . . $ data_values#i.; |
| 642 | char* ccxx . . $ data_values#c.; |
| 643 | }; |
| 644 | |
| 645 | |
| 646 | #ifdef __cpluspluscxx . . $ `<built-in>:478:9`! |
| 647 | extern "C" |
| 648 | { |
| 649 | #endif |
| 650 | |
| 651 | /** @defgroup group1 Low-level API |
| 652 | * These functions give detailed control of the TNG data management. Most |
| 653 | * things can be done using the more convenient high-level API functions |
| 654 | * instead. |
| 655 | * @{ |
| 656 | */ |
| 657 | |
| 658 | /** |
| 659 | * @brief Get the major version of the TNG library. |
| 660 | * @param tng_data is a trajectory data container, it does not have |
| 661 | * to be initialized beforehand. |
| 662 | * @param version is pointing to a value set to the major version of |
| 663 | * the library. |
| 664 | * @return TNG_SUCCESS (0) if successful. |
| 665 | */ |
| 666 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_version_majorcxx . . $ tng_version_major(ea004ffd79d9a304).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int* version); |
| 667 | |
| 668 | /** |
| 669 | * @brief Get the minor version of the TNG library. |
| 670 | * @param tng_data is a trajectory data container, it does not have |
| 671 | * to be initialized beforehand. |
| 672 | * @param version is pointing to a value set to the minor version of |
| 673 | * the library. |
| 674 | * @return TNG_SUCCESS (0) if successful. |
| 675 | */ |
| 676 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_version_minorcxx . . $ tng_version_minor(ea004ffd79d9a304).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int* version); |
| 677 | |
| 678 | /** |
| 679 | * @brief Get the patch level of the TNG library. |
| 680 | * @param tng_data is a trajectory data container, it does not have |
| 681 | * to be initialized beforehand. |
| 682 | * @param patch_level is the string to fill with the full version, |
| 683 | * memory must be allocated before. |
| 684 | * @return TNG_SUCCESS (0) if successful. |
| 685 | */ |
| 686 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_version_patchlevelcxx . . $ tng_version_patchlevel(ea004ffd79d9a304).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int* patch_level); |
| 687 | |
| 688 | /** |
| 689 | * @brief Get the full version string of the TNG library. |
| 690 | * @param tng_data is a trajectory data container, it does not have |
| 691 | * to be initialized beforehand. |
| 692 | * @param version is pointing to a value set to the major version of |
| 693 | * the library. |
| 694 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 695 | * been reserved for version. This includes \0 terminating character. |
| 696 | * @pre \code version != 0 \endcode The pointer to the name string |
| 697 | * must not be a NULL pointer. |
| 698 | * @return TNG_SUCCESS (0) if successful. |
| 699 | */ |
| 700 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_versioncxx . . $ tng_version(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char* version, int max_len); |
| 701 | |
| 702 | /** |
| 703 | * @brief Setup a trajectory data container. |
| 704 | * @param tng_data_p a pointer to memory to initialise as a trajectory. |
| 705 | * @pre tng_data_p must not be pointing at a reserved memory block. |
| 706 | * @details Memory is allocated during initialisation. |
| 707 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 708 | * error has occured. |
| 709 | */ |
| 710 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_trajectory_initcxx . . $ tng_trajectory_init(2bf8210ff4df0885).(tng_trajectory_tcxx . . $ tng_trajectory_t#* tng_data_p); |
| 711 | |
| 712 | /** |
| 713 | * @brief Clean up a trajectory data container. |
| 714 | * @param tng_data_p a pointer to the trajectory data to destroy. |
| 715 | * @details All allocated memory in the data structure is freed, as well as |
| 716 | * tng_data_p itself. |
| 717 | * @return TNG_SUCCESS (0) if successful. |
| 718 | */ |
| 719 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_trajectory_destroycxx . . $ tng_trajectory_destroy(2bf8210ff4df0885).(tng_trajectory_tcxx . . $ tng_trajectory_t#* tng_data_p); |
| 720 | |
| 721 | /** |
| 722 | * @brief Copy a trajectory data container (dest is setup as well). |
| 723 | * @details This initialises dest and copies only what is absolute necessary for |
| 724 | * parallel i/o. This can be used inside pragma omp for setting up a thread |
| 725 | * local copy of src. It can be freed (using tng_trajectory_destroy) at the |
| 726 | * end of the parallel block. |
| 727 | * @param src the original trajectory. |
| 728 | * @param dest_p a pointer to memory to initialise as a trajectory. |
| 729 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 730 | * must be initialised before using it. |
| 731 | * @pre tng_data_p must not be pointing at a reserved memory block. |
| 732 | * @details Memory is allocated during initialisation. |
| 733 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 734 | * error has occured. |
| 735 | */ |
| 736 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_trajectory_init_from_srccxx . . $ tng_trajectory_init_from_src(7747aa98890eece).(tng_trajectory_tcxx . . $ tng_trajectory_t# src, |
| 737 | tng_trajectory_tcxx . . $ tng_trajectory_t#* dest_p); |
| 738 | |
| 739 | /** |
| 740 | * @brief Get the name of the input file. |
| 741 | * @param tng_data the trajectory of which to get the input file name. |
| 742 | * @param file_name the string to fill with the name of the input file, |
| 743 | * memory must be allocated before. |
| 744 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 745 | * been reserved for file_name. This includes \0 terminating character. |
| 746 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 747 | * must be initialised before using it. |
| 748 | * @pre \code file_name != 0 \endcode The pointer to the file name string |
| 749 | * must not be a NULL pointer. |
| 750 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 751 | * has occurred (source string longer than destination string). |
| 752 | */ |
| 753 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_input_file_getcxx . . $ tng_input_file_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 754 | char* file_name, |
| 755 | int max_len); |
| 756 | |
| 757 | /** |
| 758 | * @brief Set the name of the input file. |
| 759 | * @param tng_data the trajectory of which to set the input file name. |
| 760 | * @param file_name the name of the input file. |
| 761 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 762 | * must be initialised before using it. |
| 763 | * @pre \code file_name != 0 \endcode The pointer to the file name string |
| 764 | * must not be a NULL pointer. |
| 765 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 766 | * error has occured. |
| 767 | */ |
| 768 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_input_file_setcxx . . $ tng_input_file_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 769 | const char* file_name); |
| 770 | |
| 771 | /** |
| 772 | * @brief Get the name of the output file. |
| 773 | * @param tng_data the trajectory of which to get the input file name. |
| 774 | * @param file_name the string to fill with the name of the output file, |
| 775 | * memory must be allocated before. |
| 776 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 777 | * been reserved for file_name. This includes \0 terminating character. |
| 778 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 779 | * must be initialised before using it. |
| 780 | * @pre \code file_name != 0 \endcode The pointer to the file name string |
| 781 | * must not be a NULL pointer. |
| 782 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 783 | * has occurred (source string longer than destination string). |
| 784 | */ |
| 785 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_output_file_getcxx . . $ tng_output_file_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 786 | char* file_name, |
| 787 | int max_len); |
| 788 | |
| 789 | /** |
| 790 | * @brief Set the name of the output file. |
| 791 | * @param tng_data the trajectory of which to set the output file name. |
| 792 | * @param file_name the name of the output file. |
| 793 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 794 | * must be initialised before using it. |
| 795 | * @pre \code file_name != 0 \endcode The pointer to the file name string |
| 796 | * must not be a NULL pointer. |
| 797 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 798 | * error has occured. |
| 799 | */ |
| 800 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_output_file_setcxx . . $ tng_output_file_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 801 | const char* file_name); |
| 802 | |
| 803 | /** |
| 804 | * @brief Set the name of the output file for appending. The output file |
| 805 | * will not be overwritten. |
| 806 | * @param tng_data the trajectory of which to set the output file name. |
| 807 | * @param file_name the name of the output file to append to. |
| 808 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 809 | * must be initialised before using it. |
| 810 | * @pre \code file_name != 0 \endcode The pointer to the file name string |
| 811 | * must not be a NULL pointer. |
| 812 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 813 | * error has occured. |
| 814 | */ |
| 815 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_output_append_file_setcxx . . $ tng_output_append_file_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 816 | const char* file_name); |
| 817 | |
| 818 | /** |
| 819 | * @brief Get the endianness of the output file. |
| 820 | * @param tng_data the trajectory of which to get the endianness of the current |
| 821 | * output file. |
| 822 | * @param endianness will contain the enumeration of the endianness. |
| 823 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 824 | * must be initialised before using it. |
| 825 | * @pre \code endianness != 0 \endcode The pointer to the endianness container |
| 826 | * must not be a NULL pointer. |
| 827 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if the endianness |
| 828 | * could not be retrieved. |
| 829 | */ |
| 830 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_output_file_endianness_getcxx . . $ tng_output_file_endianness_get(a5db72d704523032).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 831 | tng_file_endiannesscxx . . $ tng_file_endianness#* endianness); |
| 832 | |
| 833 | /** |
| 834 | * @brief Set the endianness of the output file. |
| 835 | * @param tng_data the trajectory of which to set the endianness of the current |
| 836 | * output file. |
| 837 | * @param endianness the enumeration of the endianness, can be either |
| 838 | * TNG_BIG_ENDIAN (0) or TNG_LITTLE_ENDIAN (1). |
| 839 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 840 | * must be initialised before using it. |
| 841 | * @details The endianness cannot be changed after file output has started. |
| 842 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if the endianness |
| 843 | * could not be set. |
| 844 | */ |
| 845 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_output_file_endianness_setcxx . . $ tng_output_file_endianness_set(ea5f14b29a2bd907).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 846 | tng_file_endiannesscxx . . $ tng_file_endianness# endianness); |
| 847 | |
| 848 | /** |
| 849 | * @brief Get the name of the program used when creating the trajectory. |
| 850 | * @param tng_data the trajectory of which to get the program name. |
| 851 | * @param name the string to fill with the name of the program, |
| 852 | * memory must be allocated before. |
| 853 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 854 | * been reserved for name. This includes \0 terminating character. |
| 855 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 856 | * must be initialised before using it. |
| 857 | * @pre \code name != 0 \endcode The pointer to the name string |
| 858 | * must not be a NULL pointer. |
| 859 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 860 | * has occurred (source string longer than destination string). |
| 861 | */ |
| 862 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_program_name_getcxx . . $ tng_first_program_name_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 863 | char* name, |
| 864 | int max_len); |
| 865 | |
| 866 | /** |
| 867 | * @brief Set the name of the program used when creating the trajectory. |
| 868 | * @param tng_data the trajectory of which to set the program name. |
| 869 | * @param new_name is a string containing the wanted name. |
| 870 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 871 | * must be initialised before using it. |
| 872 | * @pre \code new_name != 0 \endcode The pointer to the new_name string |
| 873 | * must not be a NULL pointer. |
| 874 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 875 | * error has occured. |
| 876 | */ |
| 877 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_program_name_setcxx . . $ tng_first_program_name_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 878 | const char* new_name); |
| 879 | |
| 880 | /** |
| 881 | * @brief Get the name of the program used when last modifying the trajectory. |
| 882 | * @param tng_data the trajectory of which to get the program name. |
| 883 | * @param name the string to fill with the name of the program, |
| 884 | * memory must be allocated before. |
| 885 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 886 | * been reserved for name. This includes \0 terminating character. |
| 887 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 888 | * must be initialised before using it. |
| 889 | * @pre \code name != 0 \endcode The pointer to the name string |
| 890 | * must not be a NULL pointer. |
| 891 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 892 | * has occurred (source string longer than destination string). |
| 893 | */ |
| 894 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_program_name_getcxx . . $ tng_last_program_name_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 895 | char* name, |
| 896 | int max_len); |
| 897 | |
| 898 | /** |
| 899 | * @brief Set the name of the program used when last modifying the trajectory. |
| 900 | * @param tng_data the trajectory of which to set the program name. |
| 901 | * @param new_name is a string containing the wanted name. |
| 902 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 903 | * must be initialised before using it. |
| 904 | * @pre \code new_name != 0 \endcode The pointer to the new_name string |
| 905 | * must not be a NULL pointer. |
| 906 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 907 | * error has occured. |
| 908 | */ |
| 909 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_program_name_setcxx . . $ tng_last_program_name_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 910 | const char* new_name); |
| 911 | |
| 912 | /** |
| 913 | * @brief Get the name of the user who created the trajectory. |
| 914 | * @param tng_data the trajectory of which to get the user name. |
| 915 | * @param name the string to fill with the name of the user, |
| 916 | * memory must be allocated before. |
| 917 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 918 | * been reserved for name. This includes \0 terminating character. |
| 919 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 920 | * must be initialised before using it. |
| 921 | * @pre \code name != 0 \endcode The pointer to the name string |
| 922 | * must not be a NULL pointer. |
| 923 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 924 | * has occurred (source string longer than destination string). |
| 925 | */ |
| 926 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_user_name_getcxx . . $ tng_first_user_name_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 927 | char* name, |
| 928 | int max_len); |
| 929 | |
| 930 | /** |
| 931 | * @brief Set the name of the user who created the trajectory. |
| 932 | * @param tng_data the trajectory of which to set the user name. |
| 933 | * @param new_name is a string containing the wanted name. |
| 934 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 935 | * must be initialised before using it. |
| 936 | * @pre \code new_name != 0 \endcode The pointer to the new_name string |
| 937 | * must not be a NULL pointer. |
| 938 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 939 | * error has occured. |
| 940 | */ |
| 941 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_user_name_setcxx . . $ tng_first_user_name_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 942 | const char* new_name); |
| 943 | |
| 944 | /** |
| 945 | * @brief Get the name of the user who last modified the trajectory. |
| 946 | * @param tng_data the trajectory of which to get the user name. |
| 947 | * @param name the string to fill with the name of the user, |
| 948 | * memory must be allocated before. |
| 949 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 950 | * been reserved for name. This includes \0 terminating character. |
| 951 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 952 | * must be initialised before using it. |
| 953 | * @pre \code name != 0 \endcode The pointer to the name string |
| 954 | * must not be a NULL pointer. |
| 955 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 956 | * has occurred (source string longer than destination string). |
| 957 | */ |
| 958 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_user_name_getcxx . . $ tng_last_user_name_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 959 | char* name, |
| 960 | int max_len); |
| 961 | |
| 962 | /** |
| 963 | * @brief Set the name of the user who last modified the trajectory. |
| 964 | * @param tng_data the trajectory of which to set the user name. |
| 965 | * @param new_name is a string containing the wanted name. |
| 966 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 967 | * must be initialised before using it. |
| 968 | * @pre \code new_name != 0 \endcode The pointer to the new_name string |
| 969 | * must not be a NULL pointer. |
| 970 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 971 | * error has occured. |
| 972 | */ |
| 973 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_user_name_setcxx . . $ tng_last_user_name_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 974 | const char* new_name); |
| 975 | |
| 976 | /** |
| 977 | * @brief Get the name of the computer used when creating the trajectory. |
| 978 | * @param tng_data the trajectory of which to get the computer name. |
| 979 | * @param name the string to fill with the name of the computer, |
| 980 | * memory must be allocated before. |
| 981 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 982 | * been reserved for name. This includes \0 terminating character. |
| 983 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 984 | * must be initialised before using it. |
| 985 | * @pre \code name != 0 \endcode The pointer to the name string |
| 986 | * must not be a NULL pointer. |
| 987 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 988 | * has occurred (source string longer than destination string). |
| 989 | */ |
| 990 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_computer_name_getcxx . . $ tng_first_computer_name_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 991 | char* name, |
| 992 | int max_len); |
| 993 | |
| 994 | /** |
| 995 | * @brief Set the name of the computer used when creating the trajectory. |
| 996 | * @param tng_data the trajectory of which to set the computer name. |
| 997 | * @param new_name is a string containing the wanted name. |
| 998 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 999 | * must be initialised before using it. |
| 1000 | * @pre \code new_name != 0 \endcode The pointer to the new_name string |
| 1001 | * must not be a NULL pointer. |
| 1002 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1003 | * error has occured. |
| 1004 | */ |
| 1005 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_computer_name_setcxx . . $ tng_first_computer_name_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1006 | const char* new_name); |
| 1007 | |
| 1008 | /** |
| 1009 | * @brief Get the name of the computer used when last modifying the trajectory. |
| 1010 | * @param tng_data the trajectory of which to get the computer name. |
| 1011 | * @param name the string to fill with the name of the computer, |
| 1012 | * memory must be allocated before. |
| 1013 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 1014 | * been reserved for name. This includes \0 terminating character. |
| 1015 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1016 | * must be initialised before using it. |
| 1017 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1018 | * must not be a NULL pointer. |
| 1019 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1020 | * has occurred (source string longer than destination string). |
| 1021 | */ |
| 1022 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_computer_name_getcxx . . $ tng_last_computer_name_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1023 | char* name, |
| 1024 | int max_len); |
| 1025 | |
| 1026 | /** |
| 1027 | * @brief Set the name of the computer used when last modifying the trajectory. |
| 1028 | * @param tng_data the trajectory of which to set the computer name. |
| 1029 | * @param new_name is a string containing the wanted name. |
| 1030 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1031 | * must be initialised before using it. |
| 1032 | * @pre \code new_name != 0 \endcode The pointer to the new_name string |
| 1033 | * must not be a NULL pointer. |
| 1034 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1035 | * error has occured. |
| 1036 | */ |
| 1037 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_computer_name_setcxx . . $ tng_last_computer_name_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1038 | const char* new_name); |
| 1039 | |
| 1040 | /** |
| 1041 | * @brief Get the pgp_signature of the user creating the trajectory. |
| 1042 | * @param tng_data the trajectory of which to get the computer name. |
| 1043 | * @param signature the string to fill with the signature, |
| 1044 | * memory must be allocated before. |
| 1045 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 1046 | * been reserved for name. This includes \0 terminating character. |
| 1047 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1048 | * must be initialised before using it. |
| 1049 | * @pre \code signature != 0 \endcode The pointer to the signature |
| 1050 | * must not be a NULL pointer. |
| 1051 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1052 | * has occurred (source string longer than destination string). |
| 1053 | */ |
| 1054 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_signature_getcxx . . $ tng_first_signature_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1055 | char* signature, |
| 1056 | int max_len); |
| 1057 | |
| 1058 | /** |
| 1059 | * @brief Set the pgp_signature of the user creating the trajectory. |
| 1060 | * @param tng_data the trajectory of which to set the computer name. |
| 1061 | * @param signature is a string containing the pgp_signature. |
| 1062 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1063 | * must be initialised before using it. |
| 1064 | * @pre \code signature != 0 \endcode The pointer to the signature |
| 1065 | * must not be a NULL pointer. |
| 1066 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1067 | * error has occured. |
| 1068 | */ |
| 1069 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_signature_setcxx . . $ tng_first_signature_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1070 | const char* signature); |
| 1071 | |
| 1072 | /** |
| 1073 | * @brief Get the pgp_signature of the user last modifying the trajectory. |
| 1074 | * @param tng_data the trajectory of which to get the computer name. |
| 1075 | * @param signature the string to fill with the signature, |
| 1076 | * memory must be allocated before. |
| 1077 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 1078 | * been reserved for name. This includes \0 terminating character. |
| 1079 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1080 | * must be initialised before using it. |
| 1081 | * @pre \code signature != 0 \endcode The pointer to the signature |
| 1082 | * must not be a NULL pointer. |
| 1083 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1084 | * has occurred (source string longer than destination string). |
| 1085 | */ |
| 1086 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_signature_getcxx . . $ tng_last_signature_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1087 | char* signature, |
| 1088 | int max_len); |
| 1089 | |
| 1090 | /** |
| 1091 | * @brief Set the pgp_signature of the user last modifying the trajectory. |
| 1092 | * @param tng_data the trajectory of which to set the computer name. |
| 1093 | * @param signature is a string containing the pgp_signature. |
| 1094 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1095 | * must be initialised before using it. |
| 1096 | * @pre \code signature != 0 \endcode The pointer to the signature |
| 1097 | * must not be a NULL pointer. |
| 1098 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1099 | * error has occured. |
| 1100 | */ |
| 1101 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_last_signature_setcxx . . $ tng_last_signature_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1102 | const char* signature); |
| 1103 | |
| 1104 | /** |
| 1105 | * @brief Get the name of the forcefield used in the trajectory. |
| 1106 | * @param tng_data the trajectory of which to get the forcefield name. |
| 1107 | * @param name the string to fill with the name of the forcefield, |
| 1108 | * memory must be allocated before. |
| 1109 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 1110 | * been reserved for name. This includes \0 terminating character. |
| 1111 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1112 | * must be initialised before using it. |
| 1113 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1114 | * must not be a NULL pointer. |
| 1115 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1116 | * has occurred (source string longer than destination string). |
| 1117 | */ |
| 1118 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_forcefield_name_getcxx . . $ tng_forcefield_name_get(796559806ed5e2ed).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1119 | char* name, |
| 1120 | int max_len); |
| 1121 | |
| 1122 | /** |
| 1123 | * @brief Set the name of the forcefield used in the trajectory. |
| 1124 | * @param tng_data the trajectory of which to set the forcefield name. |
| 1125 | * @param new_name is a string containing the wanted name. |
| 1126 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1127 | * must be initialised before using it. |
| 1128 | * @pre \code new_name != 0 \endcode The pointer to the new_name string |
| 1129 | * must not be a NULL pointer. |
| 1130 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1131 | * error has occured. |
| 1132 | */ |
| 1133 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_forcefield_name_setcxx . . $ tng_forcefield_name_set(71f25c7186a4a87f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1134 | const char* new_name); |
| 1135 | |
| 1136 | /** |
| 1137 | * @brief Get the medium stride length of the trajectory. |
| 1138 | * @param tng_data is the trajectory from which to get the stride length. |
| 1139 | * @param len is pointing to a value set to the stride length. |
| 1140 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1141 | * must be initialised before using it. |
| 1142 | * @pre \code len != 0 \endcode The pointer to len must not be a NULL pointer. |
| 1143 | * @return TNG_SUCCESS (0) if successful. |
| 1144 | */ |
| 1145 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_medium_stride_length_getcxx . . $ tng_medium_stride_length_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1146 | int64_tcxx . . $ int64_t#* len); |
| 1147 | |
| 1148 | /** |
| 1149 | * @brief Set the medium stride length of the trajectory. |
| 1150 | * @param tng_data is the trajectory of which to set the stride length. |
| 1151 | * @param len is the wanted medium stride length. |
| 1152 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1153 | * must be initialised before using it. |
| 1154 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1155 | * has occurred. |
| 1156 | */ |
| 1157 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_medium_stride_length_setcxx . . $ tng_medium_stride_length_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1158 | int64_tcxx . . $ int64_t# len); |
| 1159 | |
| 1160 | /** |
| 1161 | * @brief Get the long stride length of the trajectory. |
| 1162 | * @param tng_data is the trajectory from which to get the stride length. |
| 1163 | * @param len is pointing to a value set to the stride length. |
| 1164 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1165 | * must be initialised before using it. |
| 1166 | * @pre \code len != 0 \endcode The pointer to len must not be a NULL pointer. |
| 1167 | * @return TNG_SUCCESS (0) if successful. |
| 1168 | */ |
| 1169 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_long_stride_length_getcxx . . $ tng_long_stride_length_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1170 | int64_tcxx . . $ int64_t#* len); |
| 1171 | |
| 1172 | /** |
| 1173 | * @brief Set the long stride length of the trajectory. |
| 1174 | * @param tng_data is the trajectory of which to set the stride length. |
| 1175 | * @param len is the wanted long stride length. |
| 1176 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1177 | * must be initialised before using it. |
| 1178 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1179 | * has occurred. |
| 1180 | */ |
| 1181 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_long_stride_length_setcxx . . $ tng_long_stride_length_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t# len); |
| 1182 | |
| 1183 | /** |
| 1184 | * @brief Get the current time per frame of the trajectory. |
| 1185 | * @param tng_data is the trajectory from which to get the time per frame. |
| 1186 | * @param time is pointing to a value set to the time per frame. |
| 1187 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1188 | * must be initialised before using it. |
| 1189 | * @pre \code time != 0 \endcode The pointer to time must not be a NULL pointer. |
| 1190 | * @return TNG_SUCCESS (0) if successful. |
| 1191 | */ |
| 1192 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_time_per_frame_getcxx . . $ tng_time_per_frame_get(42656bc8e8214614).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, double* time); |
| 1193 | |
| 1194 | /** |
| 1195 | * @brief Set the time per frame of the trajectory. |
| 1196 | * @param tng_data is the trajectory of which to set the time per frame. |
| 1197 | * @param time is the new time per frame. |
| 1198 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1199 | * must be initialised before using it. |
| 1200 | * @pre \code time > 0 \endcode The time per frame must be >= 0. |
| 1201 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1202 | * has occurred. |
| 1203 | */ |
| 1204 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_time_per_frame_setcxx . . $ tng_time_per_frame_set(c0e837cf59659a31).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, double time); |
| 1205 | |
| 1206 | /** |
| 1207 | * @brief Get the length of the input file. |
| 1208 | * @param tng_data is the trajectory from which to get the input file length. |
| 1209 | * @param len is pointing to a value set to the file length. |
| 1210 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1211 | * must be initialised before using it. |
| 1212 | * @pre \code len != 0 \endcode The pointer to len must not be a NULL pointer. |
| 1213 | * @return TNG_SUCCESS (0) if successful. |
| 1214 | */ |
| 1215 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_input_file_len_getcxx . . $ tng_input_file_len_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t#* len); |
| 1216 | |
| 1217 | /** |
| 1218 | * @brief Get the number of frames in the trajectory |
| 1219 | * @param tng_data is the trajectory of which to get the number of frames. |
| 1220 | * @param n is pointing to a value set to the number of frames. |
| 1221 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1222 | * must be initialised before using it. |
| 1223 | * @pre \code tng_data->input_file != 0 \endcode An input file must be open |
| 1224 | * to find the next frame set. |
| 1225 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1226 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1227 | * has occurred (could not find last frame set). |
| 1228 | */ |
| 1229 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_frames_getcxx . . $ tng_num_frames_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t#* n); |
| 1230 | |
| 1231 | /** |
| 1232 | * @brief Get the precision of lossy compression. |
| 1233 | * @param tng_data is the trajectory of which to get the compression precision. |
| 1234 | * @param precision will be pointing to the retrieved compression precision. |
| 1235 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1236 | * must be initialised before using it. |
| 1237 | * @details A compression precision of 0.001 (the default) means that the |
| 1238 | * compressed values are accurate to the third decimal. This function does |
| 1239 | * not check actual precision of compressed data, but just returns what has |
| 1240 | * previously been set using tng_compression_precision_set(). |
| 1241 | * @return TNG_SUCCESS (0) if successful. |
| 1242 | */ |
| 1243 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_compression_precision_getcxx . . $ tng_compression_precision_get(42656bc8e8214614).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1244 | double* precision); |
| 1245 | |
| 1246 | /** |
| 1247 | * @brief Set the precision of lossy compression. |
| 1248 | * @param tng_data is the trajectory of which to set the compression precision. |
| 1249 | * @param precision is the new compression precision. |
| 1250 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1251 | * must be initialised before using it. |
| 1252 | * @details A compression precision of 0.001 (the default) means that the |
| 1253 | * compressed values are accurate to the third decimal. |
| 1254 | * @return TNG_SUCCESS (0) if successful. |
| 1255 | */ |
| 1256 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_compression_precision_setcxx . . $ tng_compression_precision_set(c0e837cf59659a31).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1257 | double precision); |
| 1258 | |
| 1259 | /** |
| 1260 | * @brief Set the number of particles, in the case no molecular system is used. |
| 1261 | * @param tng_data is the trajectory of which to get the number of particles. |
| 1262 | * @param n is the number of particles to use. |
| 1263 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1264 | * must be initialised before using it. |
| 1265 | * @details When creating a molecular system the number of particles are set |
| 1266 | * automatically. This should only be used when there is no molecular system |
| 1267 | * specified or if the number of atoms needs to be overridden for some reason. |
| 1268 | * @return TNG_SUCCESS (0) if successful. |
| 1269 | */ |
| 1270 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_implicit_num_particles_setcxx . . $ tng_implicit_num_particles_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1271 | int64_tcxx . . $ int64_t# n); |
| 1272 | |
| 1273 | /** |
| 1274 | * @brief Get the current number of particles. |
| 1275 | * @param tng_data is the trajectory from which to get the number of particles. |
| 1276 | * @param n is pointing to a value set to the number of particles. |
| 1277 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1278 | * must be initialised before using it. |
| 1279 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1280 | * @details If variable number of particles are used this function will return |
| 1281 | * the number of particles in the current frame set. |
| 1282 | * @return TNG_SUCCESS (0) if successful. |
| 1283 | */ |
| 1284 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_particles_getcxx . . $ tng_num_particles_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t#* n); |
| 1285 | |
| 1286 | /** |
| 1287 | * @brief Get if the number of particle can be varied during the simulation. |
| 1288 | * @param tng_data is the trajectory from which to get the number of particles. |
| 1289 | * @param variable is pointing to a value set to TNG_CONSTANT_N_ATOMS if the |
| 1290 | * number of particles cannot change or TNG_VARIABLE_N_ATOMS if the number of |
| 1291 | * particles can change. |
| 1292 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1293 | * must be initialised before using it. |
| 1294 | * @pre \code variable != 0 \endcode The pointer to variable must not be |
| 1295 | * a NULL pointer. |
| 1296 | * @return TNG_SUCCESS (0) if successful. |
| 1297 | */ |
| 1298 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_particles_variable_getcxx . . $ tng_num_particles_variable_get(69905c993f04e069).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1299 | char* variable); |
| 1300 | |
| 1301 | /** |
| 1302 | * @brief Get the number of molecule types (length of tng_data->molecules). |
| 1303 | * @param tng_data is the trajectory from which to get the number of molecules. |
| 1304 | * @param n is pointing to a value set to the number of molecule types. |
| 1305 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1306 | * must be initialised before using it. |
| 1307 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1308 | * @return TNG_SUCCESS (0) if successful. |
| 1309 | */ |
| 1310 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_molecule_types_getcxx . . $ tng_num_molecule_types_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t#* n); |
| 1311 | |
| 1312 | /** |
| 1313 | * @brief Get the current total number of molecules. |
| 1314 | * @param tng_data is the trajectory from which to get the number of molecules. |
| 1315 | * @param n is pointing to a value set to the number of molecules. |
| 1316 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1317 | * must be initialised before using it. |
| 1318 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1319 | * @details If variable number of particles are used this function will return |
| 1320 | * the total number of molecules in the current frame set. |
| 1321 | * @return TNG_SUCCESS (0) if successful. |
| 1322 | */ |
| 1323 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_molecules_getcxx . . $ tng_num_molecules_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t#* n); |
| 1324 | |
| 1325 | /** @brief Get the list of the count of each molecule. |
| 1326 | * @param tng_data is the trajectory from which to get the molecule count list. |
| 1327 | * @param mol_cnt_list is a list of the count of each molecule in the |
| 1328 | * mol system. This is a pointer to the list in the TNG container, which |
| 1329 | * means that it should be handled carefully, e.g. not freed. |
| 1330 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1331 | * must be initialised before using it. |
| 1332 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE(1) if the list of |
| 1333 | * molecule counts was not valid. |
| 1334 | */ |
| 1335 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_cnt_list_getcxx . . $ tng_molecule_cnt_list_get(15069e7c60ab345e).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1336 | int64_tcxx . . $ int64_t#** mol_cnt_list); |
| 1337 | |
| 1338 | /** |
| 1339 | * @brief Get the exponent used for distances in the trajectory. |
| 1340 | * @param tng_data is the trajectory from which to get the information. |
| 1341 | * @param exp is pointing to a value set to the distance unit exponent. |
| 1342 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1343 | * must be initialised before using it. |
| 1344 | * @pre \code exp != 0 \endcode The pointer to exp must not be a NULL pointer. |
| 1345 | * @details Example: If the distances are specified in nm (default) exp is -9. |
| 1346 | * If the distances are specified in Å exp is -10. |
| 1347 | * @return TNG_SUCCESS (0) if successful. |
| 1348 | */ |
| 1349 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_distance_unit_exponential_getcxx . . $ tng_distance_unit_exponential_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1350 | int64_tcxx . . $ int64_t#* exp); |
| 1351 | |
| 1352 | /** |
| 1353 | * @brief Set the exponent used for distances in the trajectory. |
| 1354 | * @param tng_data is the trajectory of which to set the unit exponent. |
| 1355 | * @param exp is the distance unit exponent to use. |
| 1356 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1357 | * must be initialised before using it. |
| 1358 | * @details Example: If the distances are specified in nm (default) exp is -9. |
| 1359 | * If the distances are specified in Å exp is -10. |
| 1360 | * @return TNG_SUCCESS (0) if successful. |
| 1361 | */ |
| 1362 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_distance_unit_exponential_setcxx . . $ tng_distance_unit_exponential_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1363 | int64_tcxx . . $ int64_t# exp); |
| 1364 | |
| 1365 | /** |
| 1366 | * @brief Get the number of frames per frame set. |
| 1367 | * @param tng_data is the trajectory from which to get the number of frames |
| 1368 | * per frame set. |
| 1369 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1370 | * must be initialised before using it. |
| 1371 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1372 | * @param n is pointing to a value set to the number of frames per frame set. |
| 1373 | * @return TNG_SUCCESS (0) if successful. |
| 1374 | */ |
| 1375 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_frames_per_frame_set_getcxx . . $ tng_num_frames_per_frame_set_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1376 | int64_tcxx . . $ int64_t#* n); |
| 1377 | |
| 1378 | /** |
| 1379 | * @brief Set the number of frames per frame set. |
| 1380 | * @param tng_data is the trajectory of which to set the number of frames |
| 1381 | * per frame set. |
| 1382 | * @param n is the number of frames per frame set. |
| 1383 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1384 | * must be initialised before using it. |
| 1385 | * @details This does not affect already existing frame sets. For |
| 1386 | * consistency the number of frames per frame set should be set |
| 1387 | * betfore creating any frame sets. |
| 1388 | * @return TNG_SUCCESS (0) if successful. |
| 1389 | */ |
| 1390 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_frames_per_frame_set_setcxx . . $ tng_num_frames_per_frame_set_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1391 | int64_tcxx . . $ int64_t# n); |
| 1392 | |
| 1393 | /** |
| 1394 | * @brief Get the number of frame sets. |
| 1395 | * @details This updates tng_data->n_trajectory_frame_sets before returning it. |
| 1396 | * @param tng_data is the trajectory from which to get the number of frame sets. |
| 1397 | * @param n is pointing to a value set to the number of frame sets. |
| 1398 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1399 | * must be initialised before using it. |
| 1400 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1401 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1402 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 1403 | */ |
| 1404 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_num_frame_sets_getcxx . . $ tng_num_frame_sets_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t#* n); |
| 1405 | |
| 1406 | /** |
| 1407 | * @brief Get the current trajectory frame set. |
| 1408 | * @param tng_data is the trajectory from which to get the frame set. |
| 1409 | * @param frame_set_p will be set to point at the memory position of |
| 1410 | * the found frame set. |
| 1411 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1412 | * must be initialised before using it. |
| 1413 | * @return TNG_SUCCESS (0) if successful. |
| 1414 | */ |
| 1415 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_current_frame_set_getcxx . . $ tng_current_frame_set_get(ed82b0aa82172484).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1416 | tng_trajectory_frame_set_tcxx . . $ tng_trajectory_frame_set_t#* frame_set_p); |
| 1417 | |
| 1418 | /** |
| 1419 | * @brief Find the requested frame set number. |
| 1420 | * @param tng_data is the trajectory from which to get the frame set. |
| 1421 | * @param nr is the frame set number to search for. |
| 1422 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1423 | * must be initialised before using it. |
| 1424 | * @pre \code nr >= 0 \endcode The frame set number (nr) must be >= 0. |
| 1425 | * @details tng_data->current_trajectory_frame_set will contain the |
| 1426 | * found trajectory if successful. |
| 1427 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1428 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 1429 | */ |
| 1430 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_nr_findcxx . . $ tng_frame_set_nr_find(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, int64_tcxx . . $ int64_t# nr); |
| 1431 | |
| 1432 | /** |
| 1433 | * @brief Find the frame set containing a specific frame. |
| 1434 | * @param tng_data is the trajectory from which to get the frame set. |
| 1435 | * @param frame is the frame number to search for. |
| 1436 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1437 | * must be initialised before using it. |
| 1438 | * @pre \code frame >= 0 \endcode The frame number must be >= 0. |
| 1439 | * @details tng_data->current_trajectory_frame_set will contain the |
| 1440 | * found trajectory if successful. |
| 1441 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1442 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 1443 | */ |
| 1444 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_of_frame_findcxx . . $ tng_frame_set_of_frame_find(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1445 | int64_tcxx . . $ int64_t# frame); |
| 1446 | |
| 1447 | /** |
| 1448 | * @brief Get the file position of the next frame set in the input file. |
| 1449 | * @param tng_data is a trajectory data container. |
| 1450 | * @param frame_set is the frame set of which to get the position of the |
| 1451 | * following frame set. |
| 1452 | * @param pos is pointing to a value set to the file position. |
| 1453 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1454 | * must be initialised before using it. |
| 1455 | * @pre \code pos != 0 \endcode The pointer to pos must not be a NULL pointer. |
| 1456 | * @return TNG_SUCCESS (0) if successful. |
| 1457 | */ |
| 1458 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_next_frame_set_file_pos_getcxx . . $ tng_frame_set_next_frame_set_file_pos_get(6850e932e31c0141).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1459 | tng_trajectory_frame_set_tcxx . . $ tng_trajectory_frame_set_t# frame_set, |
| 1460 | int64_tcxx . . $ int64_t#* pos); |
| 1461 | |
| 1462 | /** |
| 1463 | * @brief Get the file position of the previous frame set in the input file. |
| 1464 | * @param tng_data is a trajectory data container. |
| 1465 | * @param frame_set is the frame set of which to get the position of the |
| 1466 | * previous frame set. |
| 1467 | * @param pos is pointing to a value set to the file position. |
| 1468 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1469 | * must be initialised before using it. |
| 1470 | * @pre \code pos != 0 \endcode The pointer to pos must not be a NULL pointer. |
| 1471 | * @return TNG_SUCCESS (0) if successful. |
| 1472 | */ |
| 1473 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_prev_frame_set_file_pos_getcxx . . $ tng_frame_set_prev_frame_set_file_pos_get(6850e932e31c0141).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1474 | tng_trajectory_frame_set_tcxx . . $ tng_trajectory_frame_set_t# frame_set, |
| 1475 | int64_tcxx . . $ int64_t#* pos); |
| 1476 | |
| 1477 | /** |
| 1478 | * @brief Get the first and last frames of the frame set. |
| 1479 | * @param tng_data is a trajectory data container. |
| 1480 | * @param frame_set is the frame set of which to get the frame range. |
| 1481 | * @param first_frame is set to the first frame of the frame set. |
| 1482 | * @param last_frame is set to the last frame of the frame set. |
| 1483 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1484 | * must be initialised before using it. |
| 1485 | * @pre \code first_frame != 0 \endcode The pointer to first_frame must |
| 1486 | * not be a NULL pointer. |
| 1487 | * @pre \code last_frame != 0 \endcode The pointer to last_frame must |
| 1488 | * not be a NULL pointer. |
| 1489 | * @return TNG_SUCCESS (0) if successful. |
| 1490 | */ |
| 1491 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_frame_range_getcxx . . $ tng_frame_set_frame_range_get(601d27eddd5bb253).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1492 | tng_trajectory_frame_set_tcxx . . $ tng_trajectory_frame_set_t# frame_set, |
| 1493 | int64_tcxx . . $ int64_t#* first_frame, |
| 1494 | int64_tcxx . . $ int64_t#* last_frame); |
| 1495 | |
| 1496 | /** |
| 1497 | * @brief Allocate memory for and setup a molecule container. |
| 1498 | * @param tng_data is a trajectory data container. |
| 1499 | * @param molecule_p is a pointer to molecule to allocate and initialise. |
| 1500 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1501 | * error has occured. |
| 1502 | */ |
| 1503 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_alloccxx . . $ tng_molecule_alloc(bd0bc1858a2f489f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1504 | tng_molecule_tcxx . . $ tng_molecule_t#* molecule_p); |
| 1505 | |
| 1506 | /** |
| 1507 | * @brief Clean up a molecule container and free its allocated memory. |
| 1508 | * @param tng_data is a trajectory data container. |
| 1509 | * @param molecule_p is the molecule to destroy. |
| 1510 | * @details All allocated memory in the data structure is freed and also the memory |
| 1511 | * of the molecule itself. |
| 1512 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1513 | * error has occured. |
| 1514 | */ |
| 1515 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_freecxx . . $ tng_molecule_free(bd0bc1858a2f489f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1516 | tng_molecule_tcxx . . $ tng_molecule_t#* molecule_p); |
| 1517 | |
| 1518 | /** |
| 1519 | * @brief Setup a molecule container. |
| 1520 | * @param tng_data is a trajectory data container. |
| 1521 | * @param molecule is the molecule to initialise. Memory must be preallocated. |
| 1522 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1523 | * error has occured. |
| 1524 | */ |
| 1525 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_initcxx . . $ tng_molecule_init(f2269a724f7ce96e).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1526 | tng_molecule_tcxx . . $ tng_molecule_t# molecule); |
| 1527 | |
| 1528 | /** |
| 1529 | * @brief Clean up a molecule container. |
| 1530 | * @param tng_data is a trajectory data container. |
| 1531 | * @param molecule is the molecule to destroy. |
| 1532 | * @details All allocated memory in the data structure is freed, but not the |
| 1533 | * memory of molecule itself. |
| 1534 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1535 | * error has occured. |
| 1536 | */ |
| 1537 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_destroycxx . . $ tng_molecule_destroy(f2269a724f7ce96e).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1538 | tng_molecule_tcxx . . $ tng_molecule_t# molecule); |
| 1539 | |
| 1540 | /** |
| 1541 | * @brief Add a molecule to the trajectory. |
| 1542 | * @param tng_data is the trajectory data container containing the block.. |
| 1543 | * @param name is a pointer to the string containing the name of the new molecule. |
| 1544 | * @param molecule is a pointer to the newly created molecule. |
| 1545 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1546 | * must be initialised before using it. |
| 1547 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1548 | * must not be a NULL pointer. |
| 1549 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 1550 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 1551 | */ |
| 1552 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_addcxx . . $ tng_molecule_add(e612dbe194a19b34).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1553 | const char* name, |
| 1554 | tng_molecule_tcxx . . $ tng_molecule_t#* molecule); |
| 1555 | |
| 1556 | /** |
| 1557 | * @brief Add a molecule with a specific ID to the trajectory. |
| 1558 | * @param tng_data is the trajectory data container containing the block.. |
| 1559 | * @param name is a pointer to the string containing the name of the new molecule. |
| 1560 | * @param id is the ID of the created molecule. |
| 1561 | * @param molecule is a pointer to the newly created molecule. |
| 1562 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1563 | * must be initialised before using it. |
| 1564 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1565 | * must not be a NULL pointer. |
| 1566 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 1567 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 1568 | */ |
| 1569 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_w_id_addcxx . . $ tng_molecule_w_id_add(2a5adb2496d67bf6).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1570 | const char* name, |
| 1571 | int64_tcxx . . $ int64_t# id, |
| 1572 | tng_molecule_tcxx . . $ tng_molecule_t#* molecule); |
| 1573 | |
| 1574 | /** |
| 1575 | * @brief Add an existing molecule (from a molecule container) to the trajectory. |
| 1576 | * @param tng_data is the trajectory data container containing the block.. |
| 1577 | * @param molecule is a pointer to the molecule to add to the trajectory and will |
| 1578 | * afterwards point to the molecule in the trajectory. |
| 1579 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1580 | * must be initialised before using it. |
| 1581 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major error |
| 1582 | * has occured. |
| 1583 | */ |
| 1584 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_existing_addcxx . . $ tng_molecule_existing_add(bd0bc1858a2f489f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1585 | tng_molecule_tcxx . . $ tng_molecule_t#* molecule); |
| 1586 | |
| 1587 | /** |
| 1588 | * @brief Get the name of a molecule. |
| 1589 | * @param tng_data the trajectory containing the molecule. |
| 1590 | * @param molecule the molecule of which to get the name. |
| 1591 | * @param name the string to fill with the name of the molecule, |
| 1592 | * memory must be allocated before. |
| 1593 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 1594 | * been reserved for name. This includes \0 terminating character. |
| 1595 | * @pre \code molecule != 0 \endcode The molecule must not be NULL. |
| 1596 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1597 | * must not be a NULL pointer. |
| 1598 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1599 | * has occurred (source string longer than destination string). |
| 1600 | */ |
| 1601 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_name_getcxx . . $ tng_molecule_name_get(676c32b028246ca7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1602 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1603 | char* name, |
| 1604 | int max_len); |
| 1605 | |
| 1606 | /** |
| 1607 | * @brief Set the name of a molecule. |
| 1608 | * @param tng_data is the trajectory data container containing the molecule.. |
| 1609 | * @param molecule is the molecule to rename. |
| 1610 | * @param new_name is a string containing the wanted name. |
| 1611 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1612 | * must be initialised before using it. |
| 1613 | * @pre \code new_name != 0 \endcode The pointer to the name string |
| 1614 | * must not be a NULL pointer. |
| 1615 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1616 | * error has occured. |
| 1617 | */ |
| 1618 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_name_setcxx . . $ tng_molecule_name_set(43cb70985b8924d2).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1619 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1620 | const char* new_name); |
| 1621 | |
| 1622 | /** |
| 1623 | * @brief Get the count of a molecule. |
| 1624 | * @param tng_data is the trajectory data container containing the molecule.. |
| 1625 | * @param molecule is the molecule of which to get the count. |
| 1626 | * @param cnt is a pointer to the variable to be populated with the count. |
| 1627 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1628 | * must be initialised before using it. |
| 1629 | * @pre \code cnt != 0 \endcode The pointer to the molecule count |
| 1630 | * must not be a NULL pointer. |
| 1631 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1632 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 1633 | */ |
| 1634 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_cnt_getcxx . . $ tng_molecule_cnt_get(42fdad0e26787a6c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1635 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1636 | int64_tcxx . . $ int64_t#* cnt); |
| 1637 | |
| 1638 | /** |
| 1639 | * @brief Set the count of a molecule. |
| 1640 | * @param tng_data is the trajectory data container containing the molecule.. |
| 1641 | * @param molecule is the molecule of which to set the count. |
| 1642 | * @param cnt is the number of instances of this molecule. |
| 1643 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1644 | * must be initialised before using it. |
| 1645 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1646 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 1647 | */ |
| 1648 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_cnt_setcxx . . $ tng_molecule_cnt_set(cd0dff4a09b78adf).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1649 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1650 | int64_tcxx . . $ int64_t# cnt); |
| 1651 | |
| 1652 | /** |
| 1653 | * @brief Find a molecule. |
| 1654 | * @param tng_data is the trajectory data container containing the molecule. |
| 1655 | * @param name is a string containing the name of the molecule. If name is empty |
| 1656 | * only id will be used for finding the molecule. |
| 1657 | * @param id is the id of the molecule to look for. If id is -1 only the name of |
| 1658 | * the molecule will be used for finding the molecule. |
| 1659 | * @param molecule is a pointer to the molecule if it was found - otherwise 0. |
| 1660 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1661 | * must be initialised before using it. |
| 1662 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1663 | * must not be a NULL pointer. |
| 1664 | * @return TNG_SUCCESS (0) if the molecule is found or TNG_FAILURE (1) if the |
| 1665 | * molecule is not found. |
| 1666 | * @details If name is an empty string and id == -1 the first residue will |
| 1667 | * be found. |
| 1668 | */ |
| 1669 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_findcxx . . $ tng_molecule_find(2a5adb2496d67bf6).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1670 | const char* name, |
| 1671 | int64_tcxx . . $ int64_t# id, |
| 1672 | tng_molecule_tcxx . . $ tng_molecule_t#* molecule); |
| 1673 | |
| 1674 | /** |
| 1675 | * @brief Retrieve the molecule with specified index in the list of molecules. |
| 1676 | * @param tng_data is the trajectory data container containing the molecule. |
| 1677 | * @param index is the index (in tng_data->molecules) of the molecule to return |
| 1678 | * @param molecule is a pointer to the molecule if it was found - otherwise 0. |
| 1679 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1680 | * must be initialised before using it. |
| 1681 | * @pre \code molecule != 0 \endcode molecule must not be a NULL pointer. |
| 1682 | * @return TNG_SUCCESS (0) if the molecule is found or TNG_FAILURE (1) if the |
| 1683 | * molecule is not found. |
| 1684 | */ |
| 1685 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_of_index_getcxx . . $ tng_molecule_of_index_get(40ffdb46a214a14c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1686 | int64_tcxx . . $ int64_t# index, |
| 1687 | tng_molecule_tcxx . . $ tng_molecule_t#* molecule); |
| 1688 | |
| 1689 | /** |
| 1690 | * @brief Copy all molecules and the molecule counts from one TNG trajectory |
| 1691 | * to another. |
| 1692 | * @param tng_data_src is the source trajectory containing the molecular |
| 1693 | * system to copy. |
| 1694 | * @param tng_data_dest is the destination trajectory. |
| 1695 | * @pre \code tng_data_src != 0 \endcode The trajectory container (tng_data_src) |
| 1696 | * must be initialised before using it. |
| 1697 | * @pre \code tng_data_dest != 0 \endcode The trajectory container (tng_data_dest) |
| 1698 | * must be initialised before using it. |
| 1699 | * @details The molecular system in tng_data_dest will be overwritten. |
| 1700 | * @return TNG_SUCCESS(0) if the copying is successful, TNG_FAILURE if a minor |
| 1701 | * error has occured or TNG_CRITICAL(2) if a major error has occured. |
| 1702 | */ |
| 1703 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_system_copycxx . . $ tng_molecule_system_copy(24277d6bb2c507f6).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data_src, |
| 1704 | tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data_dest); |
| 1705 | |
| 1706 | /** |
| 1707 | * @brief Get the number of chains in a molecule. |
| 1708 | * @param tng_data is the trajectory containing the molecule. |
| 1709 | * @param molecule is the molecule of which to get the number of chains. |
| 1710 | * @param n is pointing to a value set to the number of chains. |
| 1711 | * @pre \code molecule != 0 \endcode The molecule must not be NULL. |
| 1712 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1713 | * @return TNG_SUCCESS (0) if successful. |
| 1714 | */ |
| 1715 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_num_chains_getcxx . . $ tng_molecule_num_chains_get(42fdad0e26787a6c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1716 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1717 | int64_tcxx . . $ int64_t#* n); |
| 1718 | |
| 1719 | /** |
| 1720 | * @brief Retrieve the chain of a molecule with specified index in the list |
| 1721 | * of chains. |
| 1722 | * @param tng_data is the trajectory data container containing the molecule. |
| 1723 | * @param index is the index (in molecule->chains) of the chain to return |
| 1724 | * @param molecule is the molecule from which to get the chain. |
| 1725 | * @param chain is a pointer to the chain if it was found - otherwise 0. |
| 1726 | * @pre \code molecule != 0 \endcode molecule must not be a NULL pointer. |
| 1727 | * @pre \code chain != 0 \endcode chain must not be a NULL pointer. |
| 1728 | * @return TNG_SUCCESS (0) if the chain is found or TNG_FAILURE (1) if the |
| 1729 | * chain is not found. |
| 1730 | */ |
| 1731 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_chain_of_index_getcxx . . $ tng_molecule_chain_of_index_get(1efd53c3c3150e64).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1732 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1733 | int64_tcxx . . $ int64_t# index, |
| 1734 | tng_chain_tcxx . . $ tng_chain_t#* chain); |
| 1735 | |
| 1736 | /** |
| 1737 | * @brief Get the number of residues in a molecule. |
| 1738 | * @param tng_data is the trajectory containing the molecule. |
| 1739 | * @param molecule is the molecule of which to get the number residues. |
| 1740 | * @param n is pointing to a value set to the number of residues. |
| 1741 | * @pre \code molecule != 0 \endcode The molecule must not be NULL. |
| 1742 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1743 | * @return TNG_SUCCESS (0) if successful. |
| 1744 | */ |
| 1745 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_num_residues_getcxx . . $ tng_molecule_num_residues_get(42fdad0e26787a6c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1746 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1747 | int64_tcxx . . $ int64_t#* n); |
| 1748 | |
| 1749 | /** |
| 1750 | * @brief Retrieve the residue of a molecule with specified index in the list |
| 1751 | * of chains. |
| 1752 | * @param tng_data is the trajectory data container containing the molecule. |
| 1753 | * @param index is the index (in molecule->residues) of the residue to return |
| 1754 | * @param molecule is the molecule from which to get the residue. |
| 1755 | * @param residue is a pointer to the residue if it was found - otherwise 0. |
| 1756 | * @pre \code molecule != 0 \endcode molecule must not be a NULL pointer. |
| 1757 | * @pre \code residue != 0 \endcode residue must not be a NULL pointer. |
| 1758 | * @return TNG_SUCCESS (0) if the residue is found or TNG_FAILURE (1) if the |
| 1759 | * residue is not found. |
| 1760 | */ |
| 1761 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_residue_of_index_getcxx . . $ tng_molecule_residue_of_index_get(e6efbea788da5e35).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1762 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1763 | int64_tcxx . . $ int64_t# index, |
| 1764 | tng_residue_tcxx . . $ tng_residue_t#* residue); |
| 1765 | |
| 1766 | /** |
| 1767 | * @brief Get the number of atoms in a molecule. |
| 1768 | * @param tng_data is the trajectory containing the molecule. |
| 1769 | * @param molecule is the molecule of which to get the number of atoms. |
| 1770 | * @param n is pointing to a value set to the number of atoms. |
| 1771 | * @pre \code molecule != 0 \endcode The molecule must not be NULL. |
| 1772 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1773 | * @return TNG_SUCCESS (0) if successful. |
| 1774 | */ |
| 1775 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_num_atoms_getcxx . . $ tng_molecule_num_atoms_get(42fdad0e26787a6c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1776 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1777 | int64_tcxx . . $ int64_t#* n); |
| 1778 | |
| 1779 | /** |
| 1780 | * @brief Retrieve the atom of a molecule with specified index in the list |
| 1781 | * of atoms. |
| 1782 | * @param tng_data is the trajectory data container containing the molecule. |
| 1783 | * @param index is the index (in molecule->atoms) of the atom to return |
| 1784 | * @param molecule is the molecule from which to get the atom. |
| 1785 | * @param atom is a pointer to the atom if it was found - otherwise 0. |
| 1786 | * @pre \code molecule != 0 \endcode molecule must not be a NULL pointer. |
| 1787 | * @pre \code atom != 0 \endcode atom must not be a NULL pointer. |
| 1788 | * @return TNG_SUCCESS (0) if the atom is found or TNG_FAILURE (1) if the |
| 1789 | * atom is not found. |
| 1790 | */ |
| 1791 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_atom_of_index_getcxx . . $ tng_molecule_atom_of_index_get(e4ec6f3a09cf32f0).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1792 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1793 | int64_tcxx . . $ int64_t# index, |
| 1794 | tng_atom_tcxx . . $ tng_atom_t#* atom); |
| 1795 | |
| 1796 | /** |
| 1797 | * @brief Find a chain in a molecule. |
| 1798 | * @param tng_data is the trajectory data container containing the molecule. |
| 1799 | * @param molecule is the molecule in which to search for the chain. |
| 1800 | * @param name is a string containing the name of the chain. If name is empty |
| 1801 | * only id will be used for finding the chain. |
| 1802 | * @param id is the id of the chain to look for. If id is -1 only the name of |
| 1803 | * the chain will be used for finding the chain. |
| 1804 | * @param chain is a pointer to the chain if it was found - otherwise 0. |
| 1805 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1806 | * must be initialised before using it. |
| 1807 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1808 | * must not be a NULL pointer. |
| 1809 | * @return TNG_SUCCESS (0) if the chain is found or TNG_FAILURE (1) if the |
| 1810 | * chain is not found. |
| 1811 | * @details If name is an empty string and id == -1 the first residue will |
| 1812 | * be found. |
| 1813 | */ |
| 1814 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_chain_findcxx . . $ tng_molecule_chain_find(9586fe7efd7f97b).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1815 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1816 | const char* name, |
| 1817 | int64_tcxx . . $ int64_t# id, |
| 1818 | tng_chain_tcxx . . $ tng_chain_t#* chain); |
| 1819 | |
| 1820 | /** |
| 1821 | * @brief Add a chain to a molecule. |
| 1822 | * @param tng_data is the trajectory data container containing the molecule.. |
| 1823 | * @param molecule is the molecule to add a chain to. |
| 1824 | * @param name is a string containing the name of the chain. |
| 1825 | * @param chain is a pointer to the newly created chain. |
| 1826 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1827 | * must be initialised before using it. |
| 1828 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1829 | * must not be a NULL pointer. |
| 1830 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 1831 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 1832 | */ |
| 1833 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_chain_addcxx . . $ tng_molecule_chain_add(841e84153bdc7b25).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1834 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1835 | const char* name, |
| 1836 | tng_chain_tcxx . . $ tng_chain_t#* chain); |
| 1837 | |
| 1838 | /** |
| 1839 | * @brief Add a chain with a specific id to a molecule. |
| 1840 | * @param tng_data is the trajectory data container containing the molecule.. |
| 1841 | * @param molecule is the molecule to add a chain to. |
| 1842 | * @param name is a string containing the name of the chain. |
| 1843 | * @param id is the ID of the created chain. |
| 1844 | * @param chain is a pointer to the newly created chain. |
| 1845 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1846 | * must be initialised before using it. |
| 1847 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1848 | * must not be a NULL pointer. |
| 1849 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 1850 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 1851 | */ |
| 1852 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_chain_w_id_addcxx . . $ tng_molecule_chain_w_id_add(9586fe7efd7f97b).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1853 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1854 | const char* name, |
| 1855 | int64_tcxx . . $ int64_t# id, |
| 1856 | tng_chain_tcxx . . $ tng_chain_t#* chain); |
| 1857 | |
| 1858 | /** |
| 1859 | * @brief Add a bond between two atoms to a molecule. |
| 1860 | * @param tng_data is the trajectory data container containing the molecule. |
| 1861 | * @param molecule is the molecule containing the atoms to connect. |
| 1862 | * @param from_atom_id is the id of one of the two atoms in the bond. |
| 1863 | * @param to_atom_id is the id of the other atom in the bond. |
| 1864 | * @param bond is a pointer to the newly created bond. |
| 1865 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1866 | * must be initialised before using it. |
| 1867 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (!) if a minor error |
| 1868 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 1869 | */ |
| 1870 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_bond_addcxx . . $ tng_molecule_bond_add(a988fac0dd32770e).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1871 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1872 | int64_tcxx . . $ int64_t# from_atom_id, |
| 1873 | int64_tcxx . . $ int64_t# to_atom_id, |
| 1874 | tng_bond_tcxx . . $ tng_bond_t#* bond); |
| 1875 | |
| 1876 | /** |
| 1877 | * @brief Find an atom in a molecule. |
| 1878 | * @param tng_data is the trajectory data container containing the molecule. |
| 1879 | * @param molecule is the molecule in which to search for the atom. |
| 1880 | * @param name is a string containing the name of the atom. If name is an |
| 1881 | * empty string only id will be used for searching. |
| 1882 | * @param id is the id of the atom to find. If id == -1 the first atom |
| 1883 | * that matches the specified name will be found. |
| 1884 | * @param atom is a pointer to the atom if it was found - otherwise 0. |
| 1885 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1886 | * must not be a NULL pointer. |
| 1887 | * @return TNG_SUCCESS (0) if the atom is found or TNG_FAILURE (1) if the |
| 1888 | * atom is not found. |
| 1889 | * @details If name is an empty string and id == -1 the first residue will |
| 1890 | * be found. |
| 1891 | */ |
| 1892 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_atom_findcxx . . $ tng_molecule_atom_find(eaee6542bf11c7c3).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1893 | tng_molecule_tcxx . . $ tng_molecule_t# molecule, |
| 1894 | const char* name, |
| 1895 | int64_tcxx . . $ int64_t# id, |
| 1896 | tng_atom_tcxx . . $ tng_atom_t#* atom); |
| 1897 | |
| 1898 | /** |
| 1899 | * @brief Get the name of a chain. |
| 1900 | * @param tng_data the trajectory containing the chain. |
| 1901 | * @param chain the chain of which to get the name. |
| 1902 | * @param name the string to fill with the name of the chain, |
| 1903 | * memory must be allocated before. |
| 1904 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 1905 | * been reserved for name. This includes \0 terminating character. |
| 1906 | * @pre \code chain != 0 \endcode The chain must not be NULL. |
| 1907 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1908 | * must not be a NULL pointer. |
| 1909 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 1910 | * has occurred (source string longer than destination string). |
| 1911 | */ |
| 1912 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_name_getcxx . . $ tng_chain_name_get(162a13911f17f8b3).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1913 | tng_chain_tcxx . . $ tng_chain_t# chain, |
| 1914 | char* name, |
| 1915 | int max_len); |
| 1916 | |
| 1917 | /** |
| 1918 | * @brief Set the name of a chain. |
| 1919 | * @param tng_data is the trajectory data container containing the atom.. |
| 1920 | * @param chain is the chain to rename. |
| 1921 | * @param new_name is a string containing the wanted name. |
| 1922 | * @pre \code new_name != 0 \endcode The pointer to the name string |
| 1923 | * must not be a NULL pointer. |
| 1924 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 1925 | * error has occured. |
| 1926 | */ |
| 1927 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_name_setcxx . . $ tng_chain_name_set(c50026df164104a5).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1928 | tng_chain_tcxx . . $ tng_chain_t# chain, |
| 1929 | const char* new_name); |
| 1930 | |
| 1931 | /** |
| 1932 | * @brief Get the number of residues in a molecule chain. |
| 1933 | * @param tng_data is the trajectory containing the chain. |
| 1934 | * @param chain is the chain of which to get the number of residues. |
| 1935 | * @param n is pointing to a value set to the number of residues. |
| 1936 | * @pre \code chain != 0 \endcode The chain must not be NULL. |
| 1937 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 1938 | * @return TNG_SUCCESS (0) if successful. |
| 1939 | */ |
| 1940 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_num_residues_getcxx . . $ tng_chain_num_residues_get(cbcc24f1088201e8).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1941 | tng_chain_tcxx . . $ tng_chain_t# chain, |
| 1942 | int64_tcxx . . $ int64_t#* n); |
| 1943 | |
| 1944 | /** |
| 1945 | * @brief Retrieve the residue of a chain with specified index in the list |
| 1946 | * of residues. |
| 1947 | * @param tng_data is the trajectory data container containing the chain. |
| 1948 | * @param index is the index (in chain->residues) of the residue to return |
| 1949 | * @param chain is the chain from which to get the residue. |
| 1950 | * @param residue is a pointer to the residue if it was found - otherwise 0. |
| 1951 | * @pre \code chain != 0 \endcode chain must not be a NULL pointer. |
| 1952 | * @pre \code residue != 0 \endcode residue must not be a NULL pointer. |
| 1953 | * @return TNG_SUCCESS (0) if the residue is found or TNG_FAILURE (1) if the |
| 1954 | * residue is not found. |
| 1955 | */ |
| 1956 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_residue_of_index_getcxx . . $ tng_chain_residue_of_index_get(34681347bac21517).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1957 | tng_chain_tcxx . . $ tng_chain_t# chain, |
| 1958 | int64_tcxx . . $ int64_t# index, |
| 1959 | tng_residue_tcxx . . $ tng_residue_t#* residue); |
| 1960 | |
| 1961 | /** |
| 1962 | * @brief Find a residue in a chain. |
| 1963 | * @param tng_data is the trajectory data container containing the chain. |
| 1964 | * @param chain is the chain in which to search for the residue. |
| 1965 | * @param name is a string containing the name of the residue. If name is an |
| 1966 | * empty string only id will be used for searching. |
| 1967 | * @param id is the id of the residue to find. If id == -1 the first residue |
| 1968 | * that matches the specified name will be found. |
| 1969 | * @param residue is a pointer to the residue if it was found - otherwise 0. |
| 1970 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1971 | * must not be a NULL pointer. |
| 1972 | * @return TNG_SUCCESS (0) if the residue is found or TNG_FAILURE (1) if the |
| 1973 | * residue is not found. |
| 1974 | * @details If name is an empty string and id == -1 the first residue will |
| 1975 | * be found. |
| 1976 | */ |
| 1977 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_residue_findcxx . . $ tng_chain_residue_find(78ed48467a87fcee).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1978 | tng_chain_tcxx . . $ tng_chain_t# chain, |
| 1979 | const char* name, |
| 1980 | int64_tcxx . . $ int64_t# id, |
| 1981 | tng_residue_tcxx . . $ tng_residue_t#* residue); |
| 1982 | |
| 1983 | /** |
| 1984 | * @brief Add a residue to a chain. |
| 1985 | * @param tng_data is the trajectory data container containing the chain.. |
| 1986 | * @param chain is the chain to add a residue to. |
| 1987 | * @param name is a string containing the name of the residue. |
| 1988 | * @param residue is a pointer to the newly created residue. |
| 1989 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 1990 | * must be initialised before using it. |
| 1991 | * @pre \code name != 0 \endcode The pointer to the name string |
| 1992 | * must not be a NULL pointer. |
| 1993 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 1994 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 1995 | */ |
| 1996 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_residue_addcxx . . $ tng_chain_residue_add(5f046a750d6affd0).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 1997 | tng_chain_tcxx . . $ tng_chain_t# chain, |
| 1998 | const char* name, |
| 1999 | tng_residue_tcxx . . $ tng_residue_t#* residue); |
| 2000 | |
| 2001 | /** |
| 2002 | * @brief Add a residue with a specific ID to a chain. |
| 2003 | * @param tng_data is the trajectory data container containing the chain.. |
| 2004 | * @param chain is the chain to add a residue to. |
| 2005 | * @param name is a string containing the name of the residue. |
| 2006 | * @param id is the ID of the created residue. |
| 2007 | * @param residue is a pointer to the newly created residue. |
| 2008 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2009 | * must be initialised before using it. |
| 2010 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2011 | * must not be a NULL pointer. |
| 2012 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 2013 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 2014 | */ |
| 2015 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_residue_w_id_addcxx . . $ tng_chain_residue_w_id_add(78ed48467a87fcee).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2016 | tng_chain_tcxx . . $ tng_chain_t# chain, |
| 2017 | const char* name, |
| 2018 | int64_tcxx . . $ int64_t# id, |
| 2019 | tng_residue_tcxx . . $ tng_residue_t#* residue); |
| 2020 | |
| 2021 | /** |
| 2022 | * @brief Get the name of a residue. |
| 2023 | * @param tng_data the trajectory containing the residue. |
| 2024 | * @param residue the residue of which to get the name. |
| 2025 | * @param name the string to fill with the name of the residue, |
| 2026 | * memory must be allocated before. |
| 2027 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 2028 | * been reserved for name. This includes \0 terminating character. |
| 2029 | * @pre \code residue != 0 \endcode The residue must not be NULL. |
| 2030 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2031 | * must not be a NULL pointer. |
| 2032 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2033 | * has occurred (source string longer than destination string). |
| 2034 | */ |
| 2035 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_name_getcxx . . $ tng_residue_name_get(c413fb52bddffa09).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2036 | tng_residue_tcxx . . $ tng_residue_t# residue, |
| 2037 | char* name, |
| 2038 | int max_len); |
| 2039 | |
| 2040 | /** |
| 2041 | * @brief Set the name of a residue. |
| 2042 | * @param tng_data is the trajectory data container containing the residue. |
| 2043 | * @param residue is the residue to rename. |
| 2044 | * @param new_name is a string containing the wanted name. |
| 2045 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2046 | * must be initialised before using it. |
| 2047 | * @pre \code new_name != 0 \endcode The new name to set (new_name) must |
| 2048 | * not be a NULL pointer. |
| 2049 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 2050 | * error has occured. |
| 2051 | */ |
| 2052 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_name_setcxx . . $ tng_residue_name_set(7e043347a9808634).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2053 | tng_residue_tcxx . . $ tng_residue_t# residue, |
| 2054 | const char* new_name); |
| 2055 | |
| 2056 | /** |
| 2057 | * @brief Get the number of atoms in a residue. |
| 2058 | * @param tng_data is the trajectory containing the residue. |
| 2059 | * @param residue is the residue of which to get the number atoms. |
| 2060 | * @param n is pointing to a value set to the number of atoms. |
| 2061 | * @pre \code residue != 0 \endcode The residue must not be NULL. |
| 2062 | * @pre \code n != 0 \endcode The pointer to n must not be a NULL pointer. |
| 2063 | * @return TNG_SUCCESS (0) if successful. |
| 2064 | */ |
| 2065 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_num_atoms_getcxx . . $ tng_residue_num_atoms_get(df7925b3ad64a655).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2066 | tng_residue_tcxx . . $ tng_residue_t# residue, |
| 2067 | int64_tcxx . . $ int64_t#* n); |
| 2068 | |
| 2069 | /** |
| 2070 | * @brief Retrieve the atom of a residue with specified index in the list |
| 2071 | * of atoms. |
| 2072 | * @param tng_data is the trajectory data container containing the residue. |
| 2073 | * @param index is the index (in residue->atoms) of the atom to return |
| 2074 | * @param residue is the residue from which to get the atom. |
| 2075 | * @param atom is a pointer to the atom if it was found - otherwise 0. |
| 2076 | * @pre \code residue != 0 \endcode residue must not be a NULL pointer. |
| 2077 | * @pre \code atom != 0 \endcode atom must not be a NULL pointer. |
| 2078 | * @return TNG_SUCCESS (0) if the atom is found or TNG_FAILURE (1) if the |
| 2079 | * atom is not found. |
| 2080 | */ |
| 2081 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_atom_of_index_getcxx . . $ tng_residue_atom_of_index_get(38024cb72292c79a).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2082 | tng_residue_tcxx . . $ tng_residue_t# residue, |
| 2083 | int64_tcxx . . $ int64_t# index, |
| 2084 | tng_atom_tcxx . . $ tng_atom_t#* atom); |
| 2085 | |
| 2086 | /** |
| 2087 | * @brief Add an atom to a residue. |
| 2088 | * @param tng_data is the trajectory containing the residue. |
| 2089 | * @param residue is the residue to add an atom to. |
| 2090 | * @param atom_name is a string containing the name of the atom. |
| 2091 | * @param atom_type is a string containing the atom type of the atom. |
| 2092 | * @param atom is a pointer to the newly created atom. |
| 2093 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2094 | * must be initialised before using it. |
| 2095 | * @pre \code atom_name != 0 \endcode The pointer to the atom name string |
| 2096 | * must not be a NULL pointer. |
| 2097 | * @pre \code atom_type != 0 \endcode The pointer to the atom_type string |
| 2098 | * must not be a NULL pointer. |
| 2099 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 2100 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 2101 | */ |
| 2102 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_atom_addcxx . . $ tng_residue_atom_add(e977d6e1ce83754f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2103 | tng_residue_tcxx . . $ tng_residue_t# residue, |
| 2104 | const char* atom_name, |
| 2105 | const char* atom_type, |
| 2106 | tng_atom_tcxx . . $ tng_atom_t#* atom); |
| 2107 | |
| 2108 | /** |
| 2109 | * @brief Add an atom with a specific ID to a residue. |
| 2110 | * @param tng_data is the trajectory containing the residue. |
| 2111 | * @param residue is the residue to add an atom to. |
| 2112 | * @param atom_name is a string containing the name of the atom. |
| 2113 | * @param atom_type is a string containing the atom type of the atom. |
| 2114 | * @param id is the ID of the created atom. |
| 2115 | * @param atom is a pointer to the newly created atom. |
| 2116 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2117 | * must be initialised before using it. |
| 2118 | * @pre \code atom_name != 0 \endcode The pointer to the atom name string |
| 2119 | * must not be a NULL pointer. |
| 2120 | * @pre \code atom_type != 0 \endcode The pointer to the atom_type string |
| 2121 | * must not be a NULL pointer. |
| 2122 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if the ID could |
| 2123 | * not be set properly or TNG_CRITICAL (2) if a major error has occured. |
| 2124 | */ |
| 2125 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_atom_w_id_addcxx . . $ tng_residue_atom_w_id_add(381ffb430417c713).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2126 | tng_residue_tcxx . . $ tng_residue_t# residue, |
| 2127 | const char* atom_name, |
| 2128 | const char* atom_type, |
| 2129 | int64_tcxx . . $ int64_t# id, |
| 2130 | tng_atom_tcxx . . $ tng_atom_t#* atom); |
| 2131 | |
| 2132 | /** |
| 2133 | * @brief Get the residue of an atom. |
| 2134 | * @param tng_data the trajectory containing the atom. |
| 2135 | * @param atom the atom of which to get the name. |
| 2136 | * @param residue is set to the residue of the atom. |
| 2137 | * @pre \code atom != 0 \endcode The atom must not be NULL. |
| 2138 | * @return TNG_SUCCESS (0) if successful. |
| 2139 | */ |
| 2140 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_atom_residue_getcxx . . $ tng_atom_residue_get(e4229142da0e2a5b).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2141 | tng_atom_tcxx . . $ tng_atom_t# atom, |
| 2142 | tng_residue_tcxx . . $ tng_residue_t#* residue); |
| 2143 | |
| 2144 | /** |
| 2145 | * @brief Get the name of an atom. |
| 2146 | * @param tng_data the trajectory containing the atom. |
| 2147 | * @param atom the atom of which to get the name. |
| 2148 | * @param name the string to fill with the name of the atom, |
| 2149 | * memory must be allocated before. |
| 2150 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 2151 | * been reserved for name. This includes \0 terminating character. |
| 2152 | * @pre \code atom != 0 \endcode The atom must not be NULL. |
| 2153 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2154 | * must not be a NULL pointer. |
| 2155 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2156 | * has occurred (source string longer than destination string). |
| 2157 | */ |
| 2158 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_atom_name_getcxx . . $ tng_atom_name_get(140a3d27166a2d33).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2159 | tng_atom_tcxx . . $ tng_atom_t# atom, |
| 2160 | char* name, |
| 2161 | int max_len); |
| 2162 | |
| 2163 | /** |
| 2164 | * @brief Set the name of an atom. |
| 2165 | * @param tng_data is the trajectory data container containing the atom. |
| 2166 | * @param atom is the atom to rename. |
| 2167 | * @param new_name is a string containing the wanted name. |
| 2168 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2169 | * must be initialised before using it. |
| 2170 | * @pre \code new_name != 0 \endcode The pointer to the name string |
| 2171 | * must not be a NULL pointer. |
| 2172 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 2173 | * error has occured. |
| 2174 | */ |
| 2175 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_atom_name_setcxx . . $ tng_atom_name_set(20f0476099bc69e6).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2176 | tng_atom_tcxx . . $ tng_atom_t# atom, |
| 2177 | const char* new_name); |
| 2178 | |
| 2179 | /** |
| 2180 | * @brief Get the type of an atom. |
| 2181 | * @param tng_data the trajectory containing the atom. |
| 2182 | * @param atom the atom of which to get the type. |
| 2183 | * @param type the string to fill with the type of the atom, |
| 2184 | * memory must be allocated before. |
| 2185 | * @param max_len maximum char length of the string, i.e. how much memory has |
| 2186 | * been reserved for type. This includes \0 terminating character. |
| 2187 | * @pre \code atom != 0 \endcode The atom must not be NULL. |
| 2188 | * @pre \code type != 0 \endcode The pointer to the type string |
| 2189 | * must not be a NULL pointer. |
| 2190 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2191 | * has occurred (source string longer than destination string). |
| 2192 | */ |
| 2193 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_atom_type_getcxx . . $ tng_atom_type_get(140a3d27166a2d33).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2194 | tng_atom_tcxx . . $ tng_atom_t# atom, |
| 2195 | char* type, |
| 2196 | int max_len); |
| 2197 | |
| 2198 | /** |
| 2199 | * @brief Set the atom type of an atom. |
| 2200 | * @param tng_data is the trajectory data container containing the atom. |
| 2201 | * @param atom is the atom to change. |
| 2202 | * @param new_type is a string containing the atom type. |
| 2203 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2204 | * must be initialised before using it. |
| 2205 | * @pre \code new_type != 0 \endcode The pointer to the atom type string |
| 2206 | * must not be a NULL pointer. |
| 2207 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 2208 | * error has occured. |
| 2209 | */ |
| 2210 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_atom_type_setcxx . . $ tng_atom_type_set(20f0476099bc69e6).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2211 | tng_atom_tcxx . . $ tng_atom_t# atom, |
| 2212 | const char* new_type); |
| 2213 | |
| 2214 | /** |
| 2215 | * @brief Get the molecule name of real particle number (number in mol system). |
| 2216 | * @param tng_data is the trajectory data container containing the atom. |
| 2217 | * @param nr is the real number of the particle in the molecular system. |
| 2218 | * @param name is a string, which is set to the name of the molecule. Memory |
| 2219 | * must be reserved beforehand. |
| 2220 | * @param max_len is the maximum length of name. |
| 2221 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2222 | * must be initialised before using it. |
| 2223 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2224 | * must not be a NULL pointer. |
| 2225 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2226 | * has occured. |
| 2227 | */ |
| 2228 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_name_of_particle_nr_getcxx . . $ tng_molecule_name_of_particle_nr_get(d2af1d078b156b10).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2229 | int64_tcxx . . $ int64_t# nr, |
| 2230 | char* name, |
| 2231 | int max_len); |
| 2232 | |
| 2233 | /** |
| 2234 | * @brief Get the molecule id of real particle number (number in mol system). |
| 2235 | * @param tng_data is the trajectory data container containing the atom. |
| 2236 | * @param nr is the real number of the particle in the molecular system. |
| 2237 | * @param id is will be set to the id of the molecule. |
| 2238 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2239 | * must be initialised before using it. |
| 2240 | * @pre \code id != 0 \endcode The pointer to id must not be a NULL pointer. |
| 2241 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2242 | * has occured. |
| 2243 | */ |
| 2244 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molecule_id_of_particle_nr_getcxx . . $ tng_molecule_id_of_particle_nr_get(f5bf858a7200dfaa).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2245 | int64_tcxx . . $ int64_t# nr, |
| 2246 | int64_tcxx . . $ int64_t#* id); |
| 2247 | |
| 2248 | /** |
| 2249 | * @brief Get the bonds of the current molecular system. |
| 2250 | * @param tng_data is the trajectory data container containing the molecular |
| 2251 | * system. |
| 2252 | * @param n_bonds is set to the number of bonds in the molecular system and |
| 2253 | * thereby also the lengths of the two lists: from_atoms and to_atoms. |
| 2254 | * @param from_atoms is a list (memory reserved by this function) of atoms |
| 2255 | * (number of atom in mol system) in bonds. |
| 2256 | * @param to_atoms is a list (memory reserved by this function) of atoms |
| 2257 | * (number of atom in mol system) in bonds. |
| 2258 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2259 | * must be initialised before using it. |
| 2260 | * @pre \code n_bonds != 0 \endcode The pointer to n_bonds must not be a |
| 2261 | * NULL pointer. |
| 2262 | * @pre \code from_atoms != 0 \endcode The pointer to from_atoms must not |
| 2263 | * be a NULL pointer. |
| 2264 | * @pre \code to_atoms != 0 \endcode The pointer to to_atoms must not |
| 2265 | * be a NULL pointer. |
| 2266 | * @details The two lists of atoms use the same index, i.e. from_atoms[0] |
| 2267 | * and to_atoms[0] are linked with a bond. Since memory is reserved in |
| 2268 | * this function it must be freed afterwards. |
| 2269 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2270 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2271 | */ |
| 2272 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_molsystem_bonds_getcxx . . $ tng_molsystem_bonds_get(f5aa150d333e8258).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2273 | int64_tcxx . . $ int64_t#* n_bonds, |
| 2274 | int64_tcxx . . $ int64_t#** from_atoms, |
| 2275 | int64_tcxx . . $ int64_t#** to_atoms); |
| 2276 | |
| 2277 | /** |
| 2278 | * @brief Get the chain name of real particle number (number in mol system). |
| 2279 | * @param tng_data is the trajectory data container containing the atom. |
| 2280 | * @param nr is the real number of the particle in the molecular system. |
| 2281 | * @param name is a string, which is set to the name of the chain. Memory |
| 2282 | * must be reserved beforehand. |
| 2283 | * @param max_len is the maximum length of name. |
| 2284 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2285 | * must be initialised before using it. |
| 2286 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2287 | * must not be a NULL pointer. |
| 2288 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2289 | * has occured. |
| 2290 | */ |
| 2291 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_chain_name_of_particle_nr_getcxx . . $ tng_chain_name_of_particle_nr_get(d2af1d078b156b10).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2292 | int64_tcxx . . $ int64_t# nr, |
| 2293 | char* name, |
| 2294 | int max_len); |
| 2295 | |
| 2296 | /** |
| 2297 | * @brief Get the residue name of real particle number (number in mol system). |
| 2298 | * @param tng_data is the trajectory data container containing the atom. |
| 2299 | * @param nr is the real number of the particle in the molecular system. |
| 2300 | * @param name is a string, which is set to the name of the residue. Memory |
| 2301 | * must be reserved beforehand. |
| 2302 | * @param max_len is the maximum length of name. |
| 2303 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2304 | * must be initialised before using it. |
| 2305 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2306 | * must not be a NULL pointer. |
| 2307 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2308 | * has occured. |
| 2309 | */ |
| 2310 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_name_of_particle_nr_getcxx . . $ tng_residue_name_of_particle_nr_get(d2af1d078b156b10).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2311 | int64_tcxx . . $ int64_t# nr, |
| 2312 | char* name, |
| 2313 | int max_len); |
| 2314 | |
| 2315 | /** |
| 2316 | * @brief Get the residue id (local to molecule) of real particle number |
| 2317 | * (number in mol system). |
| 2318 | * @param tng_data is the trajectory data container containing the atom. |
| 2319 | * @param nr is the real number of the particle in the molecular system. |
| 2320 | * @param id is a pointer to the variable, which will be set to the ID. |
| 2321 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2322 | * must be initialised before using it. |
| 2323 | * @pre \code id != 0 \endcode The pointer to id must not be a NULL pointer. |
| 2324 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2325 | * has occured. |
| 2326 | */ |
| 2327 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_residue_id_of_particle_nr_getcxx . . $ tng_residue_id_of_particle_nr_get(f5bf858a7200dfaa).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2328 | int64_tcxx . . $ int64_t# nr, |
| 2329 | int64_tcxx . . $ int64_t#* id); |
| 2330 | |
| 2331 | /** |
| 2332 | * @brief Get the residue id (based on other molecules and molecule counts) |
| 2333 | * of real particle number (number in mol system). |
| 2334 | * @param tng_data is the trajectory data container containing the atom. |
| 2335 | * @param nr is the real number of the particle in the molecular system. |
| 2336 | * @param id is a pointer to the variable, which will be set to the ID. |
| 2337 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2338 | * must be initialised before using it. |
| 2339 | * @pre \code id != 0 \endcode The pointer to id must not be a NULL pointer. |
| 2340 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2341 | * has occured. |
| 2342 | */ |
| 2343 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_global_residue_id_of_particle_nr_getcxx . . $ tng_global_residue_id_of_particle_nr_get(f5bf858a7200dfaa).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2344 | int64_tcxx . . $ int64_t# nr, |
| 2345 | int64_tcxx . . $ int64_t#* id); |
| 2346 | |
| 2347 | /** |
| 2348 | * @brief Get the atom name of real particle number (number in mol system). |
| 2349 | * @param tng_data is the trajectory data container containing the atom. |
| 2350 | * @param nr is the real number of the particle in the molecular system. |
| 2351 | * @param name is a string, which is set to the name of the atom. Memory |
| 2352 | * must be reserved beforehand. |
| 2353 | * @param max_len is the maximum length of name. |
| 2354 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2355 | * must be initialised before using it. |
| 2356 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2357 | * must not be a NULL pointer. |
| 2358 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2359 | * has occured. |
| 2360 | */ |
| 2361 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_atom_name_of_particle_nr_getcxx . . $ tng_atom_name_of_particle_nr_get(d2af1d078b156b10).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2362 | int64_tcxx . . $ int64_t# nr, |
| 2363 | char* name, |
| 2364 | int max_len); |
| 2365 | |
| 2366 | /** |
| 2367 | * @brief Get the atom type of real particle number (number in mol system). |
| 2368 | * @param tng_data is the trajectory data container containing the atom. |
| 2369 | * @param nr is the real number of the particle in the molecular system. |
| 2370 | * @param type is a string, which is set to the type of the atom. Memory |
| 2371 | * must be reserved beforehand. |
| 2372 | * @param max_len is the maximum length of type. |
| 2373 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2374 | * must be initialised before using it. |
| 2375 | * @pre \code type != 0 \endcode The pointer to the type string |
| 2376 | * must not be a NULL pointer. |
| 2377 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a minor error |
| 2378 | * has occured. |
| 2379 | */ |
| 2380 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_atom_type_of_particle_nr_getcxx . . $ tng_atom_type_of_particle_nr_get(d2af1d078b156b10).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2381 | int64_tcxx . . $ int64_t# nr, |
| 2382 | char* type, |
| 2383 | int max_len); |
| 2384 | |
| 2385 | /** |
| 2386 | * @brief Add a particle mapping table. |
| 2387 | * @details Each particle mapping table will be written as a separate block, |
| 2388 | * followed by the data blocks for the corresponding particles. In most cases |
| 2389 | * there is one particle mapping block for each thread writing the trajectory. |
| 2390 | * @param tng_data is the trajectory, with the frame set to which to add |
| 2391 | * the mapping block. |
| 2392 | * @details The mapping information is added to the currently active frame set |
| 2393 | * of tng_data |
| 2394 | * @param num_first_particle is the first particle number of this mapping |
| 2395 | * block. |
| 2396 | * @param n_particles is the number of particles in this mapping block. |
| 2397 | * @param mapping_table is a list of the real particle numbers (i.e. the numbers |
| 2398 | * used in the molecular system). The list is n_particles long. |
| 2399 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2400 | * must be initialised before using it. |
| 2401 | * @details mapping_table[0] is the real particle number of the first particle |
| 2402 | * in the following data blocks. |
| 2403 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2404 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2405 | */ |
| 2406 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_particle_mapping_addcxx . . $ tng_particle_mapping_add(234da7fc0ddc47d9).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2407 | int64_tcxx . . $ int64_t# num_first_particle, |
| 2408 | int64_tcxx . . $ int64_t# n_particles, |
| 2409 | const int64_tcxx . . $ int64_t#* mapping_table); |
| 2410 | |
| 2411 | /** |
| 2412 | * @brief Remove all particle mappings (in memory) from the current frame set. |
| 2413 | * @details Clears the currently setup particle mappings of the current frame |
| 2414 | * set. |
| 2415 | * @param tng_data is the trajectory, with the frame set of which to clear |
| 2416 | * all particle mappings. |
| 2417 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2418 | * must be initialised before using it. |
| 2419 | * @return TNG_SUCCESS (0) if successful. |
| 2420 | */ |
| 2421 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_particle_mapping_freecxx . . $ tng_frame_set_particle_mapping_free(bdcc555491b13d1a).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data); |
| 2422 | |
| 2423 | /** |
| 2424 | * @brief Read the header blocks from the input_file of tng_data. |
| 2425 | * @details The trajectory blocks must be read separately and iteratively in chunks |
| 2426 | * to fit in memory. |
| 2427 | * @param tng_data is a trajectory data container. |
| 2428 | * @details tng_data->input_file_path specifies |
| 2429 | * which file to read from. If the file (input_file) is not open it will be |
| 2430 | * opened. |
| 2431 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2432 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2433 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2434 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2435 | * must be initialised before using it. |
| 2436 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 2437 | * error has occured. |
| 2438 | */ |
| 2439 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_file_headers_readcxx . . $ tng_file_headers_read(b21981d4fd57211c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char hash_mode); |
| 2440 | |
| 2441 | /** |
| 2442 | * @brief Write the header blocks to the output_file of tng_data. |
| 2443 | * @details The trajectory blocks must be written separately and iteratively in chunks |
| 2444 | * to fit in memory. |
| 2445 | * @param tng_data is a trajectory data container. |
| 2446 | * @details tng_data->output_file_path |
| 2447 | * specifies which file to write to. If the file (output_file) is not open it |
| 2448 | * will be opened. |
| 2449 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2450 | * If hash_mode == TNG_USE_HASH an md5 hash for each header block will be generated. |
| 2451 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2452 | * must be initialised before using it. |
| 2453 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 2454 | * error has occured. |
| 2455 | */ |
| 2456 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_file_headers_writecxx . . $ tng_file_headers_write(b21981d4fd57211c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char hash_mode); |
| 2457 | |
| 2458 | /** |
| 2459 | * @brief Read one (the next) block (of any kind) from the input_file of tng_data. |
| 2460 | * @param tng_data is a trajectory data container. |
| 2461 | * @details tng_data->input_file_path specifies |
| 2462 | * which file to read from. If the file (input_file) is not open it will be |
| 2463 | * opened. |
| 2464 | * @param block_data is a pointer to the struct which will be populated with the |
| 2465 | * data. |
| 2466 | * @details If block_data->input_file_pos > 0 it is the position from where the |
| 2467 | * reading starts otherwise it starts from the current position. |
| 2468 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2469 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2470 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2471 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2472 | * must be initialised before using it. |
| 2473 | * @pre \code block != 0 \endcode The block container (block) must be |
| 2474 | * initialised before using it. |
| 2475 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2476 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2477 | */ |
| 2478 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_block_read_nextcxx . . $ tng_block_read_next(9d66eb21c11430b6).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2479 | tng_gen_block_tcxx . . $ tng_gen_block_t# block_data, |
| 2480 | char hash_mode); |
| 2481 | |
| 2482 | /** |
| 2483 | * @brief Read one frame set, including all particle mapping blocks and data |
| 2484 | * blocks, starting from the current file position. |
| 2485 | * @param tng_data is a trajectory data container. |
| 2486 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2487 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2488 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2489 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2490 | * must be initialised before using it. |
| 2491 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2492 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2493 | */ |
| 2494 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_readcxx . . $ tng_frame_set_read(b21981d4fd57211c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char hash_mode); |
| 2495 | |
| 2496 | /** |
| 2497 | * @brief Read data from the current frame set from the input_file. Only read |
| 2498 | * particle mapping and data blocks matching the specified block_id. |
| 2499 | * @param tng_data is a trajectory data container. |
| 2500 | * @details tng_data->input_file_path specifies |
| 2501 | * which file to read from. If the file (input_file) is not open it will be |
| 2502 | * opened. |
| 2503 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2504 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2505 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2506 | * @param block_id is the ID of the data block to read from file. |
| 2507 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2508 | * must be initialised before using it. |
| 2509 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2510 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2511 | */ |
| 2512 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! |
| 2513 | tng_frame_set_read_current_only_data_from_block_idcxx . . $ tng_frame_set_read_current_only_data_from_block_id(ae48b53ade4fef49).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2514 | char hash_mode, |
| 2515 | int64_tcxx . . $ int64_t# block_id); |
| 2516 | |
| 2517 | /** |
| 2518 | * @brief Read one (the next) frame set, including particle mapping and related data blocks |
| 2519 | * from the input_file of tng_data. |
| 2520 | * @param tng_data is a trajectory data container. |
| 2521 | * @details tng_data->input_file_path specifies |
| 2522 | * which file to read from. If the file (input_file) is not open it will be |
| 2523 | * opened. |
| 2524 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2525 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2526 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2527 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2528 | * must be initialised before using it. |
| 2529 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2530 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2531 | */ |
| 2532 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_read_nextcxx . . $ tng_frame_set_read_next(b21981d4fd57211c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char hash_mode); |
| 2533 | |
| 2534 | /** |
| 2535 | * @brief Read one (the next) frame set, including particle mapping and data blocks with a |
| 2536 | * specific block id from the input_file of tng_data. |
| 2537 | * @param tng_data is a trajectory data container. |
| 2538 | * @details tng_data->input_file_path specifies |
| 2539 | * which file to read from. If the file (input_file) is not open it will be |
| 2540 | * opened. |
| 2541 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2542 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2543 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2544 | * @param block_id is the ID number of the blocks that should be read from file. |
| 2545 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2546 | * must be initialised before using it. |
| 2547 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2548 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2549 | */ |
| 2550 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! |
| 2551 | tng_frame_set_read_next_only_data_from_block_idcxx . . $ tng_frame_set_read_next_only_data_from_block_id(ae48b53ade4fef49).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char hash_mode, int64_tcxx . . $ int64_t# block_id); |
| 2552 | |
| 2553 | /** |
| 2554 | * @brief Write one frame set, including mapping and related data blocks |
| 2555 | * to the output_file of tng_data. |
| 2556 | * @param tng_data is a trajectory data container. |
| 2557 | * @details tng_data->output_file_path specifies |
| 2558 | * which file to write to. If the file (output_file) is not open it will be |
| 2559 | * opened. |
| 2560 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2561 | * If hash_mode == TNG_USE_HASH an md5 hash for each header block will be generated. |
| 2562 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2563 | * must be initialised before using it. |
| 2564 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2565 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2566 | */ |
| 2567 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_writecxx . . $ tng_frame_set_write(b21981d4fd57211c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char hash_mode); |
| 2568 | |
| 2569 | /** |
| 2570 | * @brief Write one frame set even if it does not have as many frames as |
| 2571 | * expected. The function also writes mapping and related data blocks |
| 2572 | * to the output_file of tng_data. |
| 2573 | * @param tng_data is a trajectory data container. |
| 2574 | * @details tng_data->output_file_path specifies |
| 2575 | * which file to write to. If the file (output_file) is not open it will be |
| 2576 | * opened. |
| 2577 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2578 | * If hash_mode == TNG_USE_HASH an md5 hash for each header block will be generated. |
| 2579 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2580 | * must be initialised before using it. |
| 2581 | * @details The number of frames in the frame set is set to the number of |
| 2582 | * frames of the data blocks before writing it to disk. |
| 2583 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2584 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2585 | */ |
| 2586 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_premature_writecxx . . $ tng_frame_set_premature_write(b21981d4fd57211c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2587 | char hash_mode); |
| 2588 | |
| 2589 | /** |
| 2590 | * @brief Create and initialise a frame set. |
| 2591 | * @details Particle mappings are retained from previous frame set (if any). |
| 2592 | * To explicitly clear particle mappings use tng_frame_set_particle_mapping_free(). |
| 2593 | * @param tng_data is the trajectory data container in which to add the frame |
| 2594 | * set. |
| 2595 | * @param first_frame is the first frame of the frame set. |
| 2596 | * @param n_frames is the number of frames in the frame set. |
| 2597 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2598 | * must be initialised before using it. |
| 2599 | * @pre \code first_frame >= 0 \endcode The first frame must not be negative. |
| 2600 | * @pre \code n_frames >= 0 \endcode The number of frames must not be negative. |
| 2601 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2602 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2603 | */ |
| 2604 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_newcxx . . $ tng_frame_set_new(b6eaa3c4850aa731).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2605 | int64_tcxx . . $ int64_t# first_frame, |
| 2606 | int64_tcxx . . $ int64_t# n_frames); |
| 2607 | |
| 2608 | /** |
| 2609 | * @brief Create and initialise a frame set with the time of the first frame |
| 2610 | * specified. |
| 2611 | * @param tng_data is the trajectory data container in which to add the frame |
| 2612 | * set. |
| 2613 | * @param first_frame is the first frame of the frame set. |
| 2614 | * @param n_frames is the number of frames in the frame set. |
| 2615 | * @param first_frame_time is the time stamp of the first frame (in seconds). |
| 2616 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2617 | * must be initialised before using it. |
| 2618 | * @pre \code first_frame >= 0 \endcode The first frame must not be negative. |
| 2619 | * @pre \code n_frames >= 0 \endcode The number of frames must not be negative. |
| 2620 | * @pre \code first_frame_time >= 0 \endcode The time stamp of the first frame |
| 2621 | * must not be negative. |
| 2622 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2623 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2624 | */ |
| 2625 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_with_time_newcxx . . $ tng_frame_set_with_time_new(8afb6599481d0add).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2626 | int64_tcxx . . $ int64_t# first_frame, |
| 2627 | int64_tcxx . . $ int64_t# n_frames, |
| 2628 | double first_frame_time); |
| 2629 | |
| 2630 | /** |
| 2631 | * @brief Set the time stamp of the first frame of the current frame set. |
| 2632 | * @param tng_data is the trajectory containing the frame set. |
| 2633 | * @param first_frame_time is the time stamp of the first frame in the |
| 2634 | * frame set. |
| 2635 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2636 | * must be initialised before using it. |
| 2637 | * @pre \code first_frame_time >= 0 \endcode The time stamp of the first frame |
| 2638 | * must not be negative. |
| 2639 | * @return TNG_SUCCESS (0) if successful. |
| 2640 | */ |
| 2641 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_set_first_frame_time_setcxx . . $ tng_frame_set_first_frame_time_set(c0e837cf59659a31).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2642 | double first_frame_time); |
| 2643 | |
| 2644 | /** |
| 2645 | * @brief Read the number of the first frame of the next frame set. |
| 2646 | * @param tng_data is the trajectory containing the frame set. |
| 2647 | * @param frame is set to the frame number of the first frame in the |
| 2648 | * next frame set. |
| 2649 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2650 | * must be initialised before using it. |
| 2651 | * @pre \code tng_data->input_file != 0 \endcode An input file must be open |
| 2652 | * to find the next frame set. |
| 2653 | * @pre \code frame != 0 \endcode The pointer to the frame must not be a NULL |
| 2654 | * pointer. |
| 2655 | * @return TNG_SUCCESS(0) if successful, TNG_FAILURE(1) if there is no next |
| 2656 | * frame set or TNG_CRITICAL(2) if a major error has occured. |
| 2657 | */ |
| 2658 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_first_frame_nr_of_next_frame_set_getcxx . . $ tng_first_frame_nr_of_next_frame_set_get(5b88dc52ff22cfec).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2659 | int64_tcxx . . $ int64_t#* frame); |
| 2660 | |
| 2661 | /** |
| 2662 | * @brief Add a non-particle dependent data block. |
| 2663 | * @param tng_data is the trajectory data container in which to add the data |
| 2664 | * block |
| 2665 | * @param id is the block ID of the block to add. |
| 2666 | * @param block_name is a descriptive name of the block to add |
| 2667 | * @param datatype is the datatype of the data in the block (e.g. int/float) |
| 2668 | * @param block_type_flag indicates if this is a non-trajectory block (added |
| 2669 | * directly to tng_data) or if it is a trajectory block (added to the |
| 2670 | * frame set) |
| 2671 | * @param n_frames is the number of frames of the data block (automatically |
| 2672 | * set to 1 if adding a non-trajectory data block) |
| 2673 | * @param n_values_per_frame is how many values a stored each frame (e.g. 9 |
| 2674 | * for a box shape block) |
| 2675 | * @param stride_length is how many frames are between each entry in the |
| 2676 | * data block |
| 2677 | * @param codec_id is the ID of the codec to compress the data. |
| 2678 | * @param new_data is an array of data values to add. |
| 2679 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2680 | * must be initialised before using it. |
| 2681 | * @pre \code block_name != 0 \endcode The pointer to the block name must |
| 2682 | * not be a NULL pointer. |
| 2683 | * @pre \code n_values_per_frame > 0 \endcode n_values_per_frame must be |
| 2684 | * a positive integer. |
| 2685 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2686 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2687 | */ |
| 2688 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_block_addcxx . . $ tng_data_block_add(3e91601dd1da9ee).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2689 | int64_tcxx . . $ int64_t# id, |
| 2690 | const char* block_name, |
| 2691 | char datatype, |
| 2692 | char block_type_flag, |
| 2693 | int64_tcxx . . $ int64_t# n_frames, |
| 2694 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 2695 | int64_tcxx . . $ int64_t# stride_length, |
| 2696 | int64_tcxx . . $ int64_t# codec_id, |
| 2697 | void* new_data); |
| 2698 | |
| 2699 | /** |
| 2700 | * @brief Add a particle dependent data block. |
| 2701 | * @param tng_data is the trajectory data container in which to add the data |
| 2702 | * block |
| 2703 | * @param id is the block ID of the block to add. |
| 2704 | * @param block_name is a descriptive name of the block to add |
| 2705 | * @param datatype is the datatype of the data in the block (e.g. int/float) |
| 2706 | * @param block_type_flag indicates if this is a non-trajectory block (added |
| 2707 | * directly to tng_data) or if it is a trajectory block (added to the |
| 2708 | * frame set) |
| 2709 | * @param n_frames is the number of frames of the data block (automatically |
| 2710 | * set to 1 if adding a non-trajectory data block) |
| 2711 | * @param n_values_per_frame is how many values a stored each frame (e.g. 9 |
| 2712 | * for a box shape block) |
| 2713 | * @param stride_length is how many frames are between each entry in the |
| 2714 | * data block |
| 2715 | * @param num_first_particle is the number of the first particle stored |
| 2716 | * in this data block |
| 2717 | * @param n_particles is the number of particles stored in this data block |
| 2718 | * @param codec_id is the ID of the codec to compress the data. |
| 2719 | * @param new_data is an array of data values to add. |
| 2720 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2721 | * must be initialised before using it. |
| 2722 | * @pre \code block_name != 0 \endcode The pointer to the block name must |
| 2723 | * not be a NULL pointer. |
| 2724 | * @pre \code n_values_per_frame > 0 \endcode n_values_per_frame must be |
| 2725 | * a positive integer. |
| 2726 | * @pre \code num_first_particle >= 0 \endcode The number of the |
| 2727 | * first particle must be >= 0. |
| 2728 | * @pre \code n_particles >= 0 \endcode n_particles must be >= 0. |
| 2729 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2730 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2731 | */ |
| 2732 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_particle_data_block_addcxx . . $ tng_particle_data_block_add(2e23db8949a3f61e).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2733 | int64_tcxx . . $ int64_t# id, |
| 2734 | const char* block_name, |
| 2735 | char datatype, |
| 2736 | char block_type_flag, |
| 2737 | int64_tcxx . . $ int64_t# n_frames, |
| 2738 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 2739 | int64_tcxx . . $ int64_t# stride_length, |
| 2740 | int64_tcxx . . $ int64_t# num_first_particle, |
| 2741 | int64_tcxx . . $ int64_t# n_particles, |
| 2742 | int64_tcxx . . $ int64_t# codec_id, |
| 2743 | void* new_data); |
| 2744 | |
| 2745 | /** @brief Get the name of a data block of a specific ID. |
| 2746 | * @param tng_data is the trajectory data container. |
| 2747 | * @param block_id is the ID of the data block of which to get the name. |
| 2748 | * @param name is a string, which is set to the name of the data block. |
| 2749 | * Memory must be reserved beforehand. |
| 2750 | * @param max_len is the maximum length of name. |
| 2751 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2752 | * must be initialised before using it. |
| 2753 | * @pre \code name != 0 \endcode The pointer to the name string |
| 2754 | * must not be a NULL pointer. |
| 2755 | * @return TNG_SUCCESS (0) if the data block is found, TNG_FAILURE (1) |
| 2756 | * if a minor error has occured or the data block is not found or |
| 2757 | * TNG_CRITICAL (2) if a major error has occured. |
| 2758 | */ |
| 2759 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_block_name_getcxx . . $ tng_data_block_name_get(d2af1d078b156b10).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2760 | int64_tcxx . . $ int64_t# block_id, |
| 2761 | char* name, |
| 2762 | int max_len); |
| 2763 | |
| 2764 | /** @brief Get the dependency of a data block of a specific ID. |
| 2765 | * @param tng_data is the trajectory data container. |
| 2766 | * @param block_id is the ID of the data block of which to get the name. |
| 2767 | * @param block_dependency is a pointer to the dependency of the data block. |
| 2768 | * If the block is frame dependent it will be set to TNG_FRAME_DEPENDENT, |
| 2769 | * if it is particle dependent it will be set to TNG_PARTICLE_DEPENDENT and |
| 2770 | * if it is both it will be set to TNG_FRAME_DEPENDENT & TNG_PARTICLE_DEPENDENT. |
| 2771 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2772 | * must be initialised before using it. |
| 2773 | * @pre \code block_dependency != 0 \endcode The pointer to the block dependency |
| 2774 | * must not be a NULL pointer. |
| 2775 | * @return TNG_SUCCESS (0) if the data block is found, TNG_FAILURE (1) |
| 2776 | * if a minor error has occured or the data block is not found or |
| 2777 | * TNG_CRITICAL (2) if a major error has occured. |
| 2778 | */ |
| 2779 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_block_dependency_getcxx . . $ tng_data_block_dependency_get(97e715932f5f5d61).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2780 | int64_tcxx . . $ int64_t# block_id, |
| 2781 | int* block_dependency); |
| 2782 | |
| 2783 | /** @brief Get the number of values per frame of a data block of a specific ID. |
| 2784 | * @param tng_data is the trajectory data container. |
| 2785 | * @param block_id is the ID of the data block of which to get the name. |
| 2786 | * @param n_values_per_frame is a pointer set to the number of values per frame. |
| 2787 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2788 | * must be initialised before using it. |
| 2789 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of values |
| 2790 | * per frame must not be a NULL pointer. |
| 2791 | * @return TNG_SUCCESS (0) if the data block is found, TNG_FAILURE (1) |
| 2792 | * if a minor error has occured or the data block is not found or |
| 2793 | * TNG_CRITICAL (2) if a major error has occured. |
| 2794 | */ |
| 2795 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_block_num_values_per_frame_getcxx . . $ tng_data_block_num_values_per_frame_get(f5bf858a7200dfaa).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2796 | int64_tcxx . . $ int64_t# block_id, |
| 2797 | int64_tcxx . . $ int64_t#* n_values_per_frame); |
| 2798 | |
| 2799 | /** |
| 2800 | * @brief Write data of one trajectory frame to the output_file of tng_data. |
| 2801 | * @param tng_data is a trajectory data container. tng_data->output_file_path |
| 2802 | * specifies which file to write to. If the file (output_file) is not open it |
| 2803 | * will be opened. |
| 2804 | * @param frame_nr is the index number of the frame to write. |
| 2805 | * @param block_id is the ID of the data block to write the data to. |
| 2806 | * @param values is an array of data to write. The length of the array should |
| 2807 | * equal n_values_per_frame. |
| 2808 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2809 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2810 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2811 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2812 | * must be initialised before using it. |
| 2813 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 2814 | * @pre \code values != 0 \endcode The pointer to the values must not be a NULL |
| 2815 | * pointer. |
| 2816 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2817 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2818 | */ |
| 2819 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_data_writecxx . . $ tng_frame_data_write(8d6b89c9f06472a8).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2820 | int64_tcxx . . $ int64_t# frame_nr, |
| 2821 | int64_tcxx . . $ int64_t# block_id, |
| 2822 | const void* values, |
| 2823 | char hash_mode); |
| 2824 | |
| 2825 | /** |
| 2826 | * @brief Write particle data of one trajectory frame to the output_file of |
| 2827 | * tng_data. |
| 2828 | * @param tng_data is a trajectory data container. tng_data->output_file_path |
| 2829 | * specifies which file to write to. If the file (output_file) is not open it |
| 2830 | * will be opened. |
| 2831 | * @param frame_nr is the index number of the frame to write. |
| 2832 | * @param block_id is the ID of the data block to write the data to. |
| 2833 | * @param val_first_particle is the number of the first particle in the data |
| 2834 | * array. |
| 2835 | * @param val_n_particles is the number of particles in the data array. |
| 2836 | * @param values is a 1D-array of data to write. The length of the array should |
| 2837 | * equal n_particles * n_values_per_frame. |
| 2838 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2839 | * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be |
| 2840 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2841 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2842 | * must be initialised before using it. |
| 2843 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 2844 | * @pre \code val_first_particle >= 0 \endcode The number of the |
| 2845 | * first particle must be >= 0. |
| 2846 | * @pre \code val_n_particles >= 0 \endcode The number of particles must be >= 0. |
| 2847 | * @pre \code values != 0 \endcode The pointer to the values must not be a NULL |
| 2848 | * pointer. |
| 2849 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2850 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2851 | */ |
| 2852 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_frame_particle_data_writecxx . . $ tng_frame_particle_data_write(361e47432c597fbf).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2853 | int64_tcxx . . $ int64_t# frame_nr, |
| 2854 | int64_tcxx . . $ int64_t# block_id, |
| 2855 | int64_tcxx . . $ int64_t# val_first_particle, |
| 2856 | int64_tcxx . . $ int64_t# val_n_particles, |
| 2857 | const void* values, |
| 2858 | char hash_mode); |
| 2859 | |
| 2860 | /** |
| 2861 | * @brief Free data of an array of values (2D). Obsolete! |
| 2862 | * @param tng_data is a trajectory data container. |
| 2863 | * @param values is the 2D array to free and will be set to 0 afterwards. |
| 2864 | * @param n_frames is the number of frames in the data array. |
| 2865 | * @param n_values_per_frame is the number of values per frame in the data array. |
| 2866 | * @param type is the data type of the data in the array (e.g. int/float/char). |
| 2867 | * @details This function should not be used. The data_values union is obsolete. |
| 2868 | * This function also causes memory leaks, but its signature cannot be changed |
| 2869 | * without disturbing the API. |
| 2870 | * @return TNG_SUCCESS (0) if successful. |
| 2871 | */ |
| 2872 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_values_freecxx . . $ tng_data_values_free(eaea26cced01a52b).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2873 | union data_valuescxx . . $ data_values#** values, |
| 2874 | int64_tcxx . . $ int64_t# n_frames, |
| 2875 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 2876 | char type); |
| 2877 | |
| 2878 | /** |
| 2879 | * @brief Free data of an array of values (3D). Obsolete! |
| 2880 | * @param tng_data is a trajectory data container. |
| 2881 | * @param values is the array to free and will be set to 0 afterwards. |
| 2882 | * @param n_frames is the number of frames in the data array. |
| 2883 | * @param n_particles is the number of particles in the data array. |
| 2884 | * @param n_values_per_frame is the number of values per frame in the data array. |
| 2885 | * @param type is the data type of the data in the array (e.g. int/float/char). |
| 2886 | * @details This function should not be used. The data_values union is obsolete. |
| 2887 | * This function also causes memory leaks, but its signature cannot be changed |
| 2888 | * without disturbing the API. |
| 2889 | * @return TNG_SUCCESS (0) if successful. |
| 2890 | */ |
| 2891 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_particle_data_values_freecxx . . $ tng_particle_data_values_free(770ddfab33b81465).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2892 | union data_valuescxx . . $ data_values#*** values, |
| 2893 | int64_tcxx . . $ int64_t# n_frames, |
| 2894 | int64_tcxx . . $ int64_t# n_particles, |
| 2895 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 2896 | char type); |
| 2897 | |
| 2898 | /** |
| 2899 | * @brief Retrieve non-particle data, from the last read frame set. Obsolete! |
| 2900 | * @param tng_data is a trajectory data container. tng_data->input_file_path specifies |
| 2901 | * which file to read from. If the file (input_file) is not open it will be |
| 2902 | * opened. |
| 2903 | * @param block_id is the id number of the particle data block to read. |
| 2904 | * @param values is a pointer to a 2-dimensional array (memory unallocated), which |
| 2905 | * will be filled with data. The array will be sized |
| 2906 | * (n_frames * n_values_per_frame). |
| 2907 | * Since ***values is allocated in this function it is the callers |
| 2908 | * responsibility to free the memory. |
| 2909 | * @param n_frames is set to the number of frames in the returned data. This is |
| 2910 | * needed to properly reach and/or free the data afterwards. |
| 2911 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 2912 | * This is needed to properly reach and/or free the data afterwards. |
| 2913 | * @param type is set to the data type of the data in the array. |
| 2914 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2915 | * must be initialised before using it. |
| 2916 | * @pre \code n_frames != 0 \endcode The pointer to the number of frames |
| 2917 | * must not be a NULL pointer. |
| 2918 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 2919 | * values per frame must not be a NULL pointer. |
| 2920 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 2921 | * be a NULL pointer. |
| 2922 | * @details This function is obsolete and only retained for compatibility. Use |
| 2923 | * tng_data_vector_get() instead. |
| 2924 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2925 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2926 | */ |
| 2927 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_getcxx . . $ tng_data_get(4b2f3449a0cb26e2).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2928 | int64_tcxx . . $ int64_t# block_id, |
| 2929 | union data_valuescxx . . $ data_values#*** values, |
| 2930 | int64_tcxx . . $ int64_t#* n_frames, |
| 2931 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 2932 | char* type); |
| 2933 | |
| 2934 | /** |
| 2935 | * @brief Retrieve a vector (1D array) of non-particle data, from the last read frame set. |
| 2936 | * @param tng_data is a trajectory data container. tng_data->input_file_path specifies |
| 2937 | * which file to read from. If the file (input_file) is not open it will be |
| 2938 | * opened. |
| 2939 | * @param block_id is the id number of the particle data block to read. |
| 2940 | * @param values is a pointer to a 1-dimensional array (memory unallocated), which |
| 2941 | * will be filled with data. The length of the array will be |
| 2942 | * (n_frames_with_data (see stride_length) * n_values_per_frame). |
| 2943 | * Since **values is allocated in this function it is the callers |
| 2944 | * responsibility to free the memory. |
| 2945 | * @param n_frames is set to the number of particles in the returned data. This is |
| 2946 | * needed to properly reach and/or free the data afterwards. |
| 2947 | * @param stride_length is set to the stride length of the returned data. |
| 2948 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 2949 | * This is needed to properly reach and/or free the data afterwards. |
| 2950 | * @param type is set to the data type of the data in the array. |
| 2951 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2952 | * must be initialised before using it. |
| 2953 | * @pre \code n_frames != 0 \endcode The pointer to the number of frames |
| 2954 | * must not be a NULL pointer. |
| 2955 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 2956 | * must not be a NULL pointer. |
| 2957 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 2958 | * values per frame must not be a NULL pointer. |
| 2959 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 2960 | * be a NULL pointer. |
| 2961 | * @details This does only work for numerical (int, float, double) data. |
| 2962 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 2963 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 2964 | */ |
| 2965 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_vector_getcxx . . $ tng_data_vector_get(d1b2b095f02e7faa).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 2966 | int64_tcxx . . $ int64_t# block_id, |
| 2967 | void** values, |
| 2968 | int64_tcxx . . $ int64_t#* n_frames, |
| 2969 | int64_tcxx . . $ int64_t#* stride_length, |
| 2970 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 2971 | char* type); |
| 2972 | |
| 2973 | /** |
| 2974 | * @brief Read and retrieve non-particle data, in a specific interval. Obsolete! |
| 2975 | * @param tng_data is a trajectory data container. tng_data->input_file_path specifies |
| 2976 | * which file to read from. If the file (input_file) is not open it will be |
| 2977 | * opened. |
| 2978 | * @param block_id is the id number of the particle data block to read. |
| 2979 | * @param start_frame_nr is the index number of the first frame to read. |
| 2980 | * @param end_frame_nr is the index number of the last frame to read. |
| 2981 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 2982 | * If hash_mode == TNG_USE_HASH the md5 hash in the file will be |
| 2983 | * compared to the md5 hash of the read contents to ensure valid data. |
| 2984 | * @param values is a pointer to a 2-dimensional array (memory unallocated), which |
| 2985 | * will be filled with data. The array will be sized |
| 2986 | * (n_frames * n_values_per_frame). |
| 2987 | * Since ***values is allocated in this function it is the callers |
| 2988 | * responsibility to free the memory. |
| 2989 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 2990 | * This is needed to properly reach and/or free the data afterwards. |
| 2991 | * @param type is set to the data type of the data in the array. |
| 2992 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 2993 | * must be initialised before using it. |
| 2994 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 2995 | * the last frame. |
| 2996 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 2997 | * values per frame must not be a NULL pointer. |
| 2998 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 2999 | * be a NULL pointer. |
| 3000 | * @details This function is obsolete and only retained for compatibility. Use |
| 3001 | * tng_data_vector_interval_get() instead. |
| 3002 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3003 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 3004 | */ |
| 3005 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_interval_getcxx . . $ tng_data_interval_get(377ee000c4228c6c).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3006 | int64_tcxx . . $ int64_t# block_id, |
| 3007 | int64_tcxx . . $ int64_t# start_frame_nr, |
| 3008 | int64_tcxx . . $ int64_t# end_frame_nr, |
| 3009 | char hash_mode, |
| 3010 | union data_valuescxx . . $ data_values#*** values, |
| 3011 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 3012 | char* type); |
| 3013 | |
| 3014 | /** |
| 3015 | * @brief Read and retrieve a vector (1D array) of non-particle data, |
| 3016 | * in a specific interval. |
| 3017 | * @param tng_data is a trajectory data container. tng_data->input_file_path specifies |
| 3018 | * which file to read from. If the file (input_file) is not open it will be |
| 3019 | * opened. |
| 3020 | * @param block_id is the id number of the particle data block to read. |
| 3021 | * @param start_frame_nr is the index number of the first frame to read. |
| 3022 | * @param end_frame_nr is the index number of the last frame to read. |
| 3023 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 3024 | * If hash_mode == TNG_USE_HASH the md5 hash in the file will be |
| 3025 | * compared to the md5 hash of the read contents to ensure valid data. |
| 3026 | * @param values is a pointer to a 1-dimensional array (memory unallocated), which |
| 3027 | * will be filled with data. The length of the array will be |
| 3028 | * (n_frames_with_data (see stride_length) * n_values_per_frame). |
| 3029 | * Since **values is allocated in this function it is the callers |
| 3030 | * responsibility to free the memory. |
| 3031 | * @param stride_length is set to the stride length (writing interval) of |
| 3032 | * the data. |
| 3033 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 3034 | * This is needed to properly reach and/or free the data afterwards. |
| 3035 | * @param type is set to the data type of the data in the array. |
| 3036 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3037 | * must be initialised before using it. |
| 3038 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 3039 | * the last frame. |
| 3040 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3041 | * must not be a NULL pointer. |
| 3042 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 3043 | * values per frame must not be a NULL pointer. |
| 3044 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 3045 | * be a NULL pointer. |
| 3046 | * @details This does only work for numerical (int, float, double) data. |
| 3047 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3048 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 3049 | */ |
| 3050 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_vector_interval_getcxx . . $ tng_data_vector_interval_get(d060252a71cbf6d0).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3051 | int64_tcxx . . $ int64_t# block_id, |
| 3052 | int64_tcxx . . $ int64_t# start_frame_nr, |
| 3053 | int64_tcxx . . $ int64_t# end_frame_nr, |
| 3054 | char hash_mode, |
| 3055 | void** values, |
| 3056 | int64_tcxx . . $ int64_t#* stride_length, |
| 3057 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 3058 | char* type); |
| 3059 | |
| 3060 | /** |
| 3061 | * @brief Retrieve particle data, from the last read frame set. Obsolete! |
| 3062 | * @details The particle dimension of the returned values array is translated |
| 3063 | * to real particle numbering, i.e. the numbering of the actual molecular |
| 3064 | * system. |
| 3065 | * @param tng_data is a trajectory data container. tng_data->input_file_path |
| 3066 | * specifies which file to read from. If the file (input_file) is not open it |
| 3067 | * will be opened. |
| 3068 | * @param block_id is the id number of the particle data block to read. |
| 3069 | * @param values is a pointer to a 3-dimensional array (memory unallocated), which |
| 3070 | * will be filled with data. The array will be sized |
| 3071 | * (n_frames * n_particles * n_values_per_frame). |
| 3072 | * Since ****values is allocated in this function it is the callers |
| 3073 | * responsibility to free the memory. |
| 3074 | * @param n_frames is set to the number of frames in the returned data. This is |
| 3075 | * needed to properly reach and/or free the data afterwards. |
| 3076 | * @param n_particles is set to the number of particles in the returned data. This is |
| 3077 | * needed to properly reach and/or free the data afterwards. |
| 3078 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 3079 | * This is needed to properly reach and/or free the data afterwards. |
| 3080 | * @param type is set to the data type of the data in the array. |
| 3081 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3082 | * must be initialised before using it. |
| 3083 | * @pre \code n_frames != 0 \endcode The pointer to the number of frames |
| 3084 | * must not be a NULL pointer. |
| 3085 | * @pre \code n_particles != 0 \endcode The pointer to the number of particles must |
| 3086 | * not be a NULL pointer. |
| 3087 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 3088 | * values per frame must not be a NULL pointer. |
| 3089 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 3090 | * be a NULL pointer. |
| 3091 | * @details This function is obsolete and only retained for compatibility. Use |
| 3092 | * tng_particle_data_vector_get() instead. |
| 3093 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3094 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 3095 | */ |
| 3096 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_particle_data_getcxx . . $ tng_particle_data_get(a0d7896c1d391eff).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3097 | int64_tcxx . . $ int64_t# block_id, |
| 3098 | union data_valuescxx . . $ data_values#**** values, |
| 3099 | int64_tcxx . . $ int64_t#* n_frames, |
| 3100 | int64_tcxx . . $ int64_t#* n_particles, |
| 3101 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 3102 | char* type); |
| 3103 | |
| 3104 | /** |
| 3105 | * @brief Retrieve a vector (1D array) of particle data, from the last read frame set. |
| 3106 | * @details The particle dimension of the returned values array is translated |
| 3107 | * to real particle numbering, i.e. the numbering of the actual molecular |
| 3108 | * system. |
| 3109 | * @param tng_data is a trajectory data container. tng_data->input_file_path |
| 3110 | * specifies which file to read from. If the file (input_file) is not open it |
| 3111 | * will be opened. |
| 3112 | * @param block_id is the id number of the particle data block to read. |
| 3113 | * @param values is a pointer to a 1-dimensional array (memory unallocated), which |
| 3114 | * will be filled with data. The length of the array will be |
| 3115 | * (n_frames_with_data (see stride_length) * n_particles * n_values_per_frame). |
| 3116 | * Since **values is allocated in this function it is the callers |
| 3117 | * responsibility to free the memory. |
| 3118 | * @param n_frames is set to the number of frames in the returned data. This is |
| 3119 | * needed to properly reach and/or free the data afterwards. |
| 3120 | * @param stride_length is set to the stride length of the returned data. |
| 3121 | * @param n_particles is set to the number of particles in the returned data. This is |
| 3122 | * needed to properly reach and/or free the data afterwards. |
| 3123 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 3124 | * This is needed to properly reach and/or free the data afterwards. |
| 3125 | * @param type is set to the data type of the data in the array. |
| 3126 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3127 | * must be initialised before using it. |
| 3128 | * @pre \code n_particles != 0 \endcode The pointer to the number of particles must |
| 3129 | * not be a NULL pointer. |
| 3130 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3131 | * must not be a NULL pointer. |
| 3132 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 3133 | * values per frame must not be a NULL pointer. |
| 3134 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 3135 | * be a NULL pointer. |
| 3136 | * @details This does only work for numerical (int, float, double) data. |
| 3137 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3138 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 3139 | */ |
| 3140 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_particle_data_vector_getcxx . . $ tng_particle_data_vector_get(4820a29f788e782a).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3141 | int64_tcxx . . $ int64_t# block_id, |
| 3142 | void** values, |
| 3143 | int64_tcxx . . $ int64_t#* n_frames, |
| 3144 | int64_tcxx . . $ int64_t#* stride_length, |
| 3145 | int64_tcxx . . $ int64_t#* n_particles, |
| 3146 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 3147 | char* type); |
| 3148 | |
| 3149 | /** |
| 3150 | * @brief Read and retrieve particle data, in a specific interval. Obsolete! |
| 3151 | * @details The particle dimension of the returned values array is translated |
| 3152 | * to real particle numbering, i.e. the numbering of the actual molecular |
| 3153 | * system. |
| 3154 | * @param tng_data is a trajectory data container. tng_data->input_file_path specifies |
| 3155 | * which file to read from. If the file (input_file) is not open it will be |
| 3156 | * opened. |
| 3157 | * @param block_id is the id number of the particle data block to read. |
| 3158 | * @param start_frame_nr is the index number of the first frame to read. |
| 3159 | * @param end_frame_nr is the index number of the last frame to read. |
| 3160 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 3161 | * If hash_mode == TNG_USE_HASH the md5 hash in the file will be |
| 3162 | * compared to the md5 hash of the read contents to ensure valid data. |
| 3163 | * @param values is a pointer to a 3-dimensional array (memory unallocated), which |
| 3164 | * will be filled with data. The array will be sized |
| 3165 | * (n_frames * n_particles * n_values_per_frame). |
| 3166 | * Since ****values is allocated in this function it is the callers |
| 3167 | * responsibility to free the memory. |
| 3168 | * @param n_particles is set to the number of particles in the returned data. This is |
| 3169 | * needed to properly reach and/or free the data afterwards. |
| 3170 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 3171 | * This is needed to properly reach and/or free the data afterwards. |
| 3172 | * @param type is set to the data type of the data in the array. |
| 3173 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3174 | * must be initialised before using it. |
| 3175 | * @pre \code n_frames != 0 \endcode The pointer to the number of frames |
| 3176 | * must not be a NULL pointer. |
| 3177 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 3178 | * the last frame. |
| 3179 | * @pre \code n_particles != 0 \endcode The pointer to the number of particles must |
| 3180 | * not be a NULL pointer. |
| 3181 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 3182 | * values per frame must not be a NULL pointer. |
| 3183 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 3184 | * be a NULL pointer. |
| 3185 | * @details This function is obsolete and only retained for compatibility. Use |
| 3186 | * tng_particle_data_vector_interval_get() instead. |
| 3187 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3188 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 3189 | */ |
| 3190 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_particle_data_interval_getcxx . . $ tng_particle_data_interval_get(227d17d4de877898).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3191 | int64_tcxx . . $ int64_t# block_id, |
| 3192 | int64_tcxx . . $ int64_t# start_frame_nr, |
| 3193 | int64_tcxx . . $ int64_t# end_frame_nr, |
| 3194 | char hash_mode, |
| 3195 | union data_valuescxx . . $ data_values#**** values, |
| 3196 | int64_tcxx . . $ int64_t#* n_particles, |
| 3197 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 3198 | char* type); |
| 3199 | |
| 3200 | /** |
| 3201 | * @brief Read and retrieve a vector (1D array) particle data, in a |
| 3202 | * specific interval. |
| 3203 | * @details The particle dimension of the returned values array is translated |
| 3204 | * to real particle numbering, i.e. the numbering of the actual molecular |
| 3205 | * system. |
| 3206 | * @param tng_data is a trajectory data container. tng_data->input_file_path specifies |
| 3207 | * which file to read from. If the file (input_file) is not open it will be |
| 3208 | * opened. |
| 3209 | * @param block_id is the id number of the particle data block to read. |
| 3210 | * @param start_frame_nr is the index number of the first frame to read. |
| 3211 | * @param end_frame_nr is the index number of the last frame to read. |
| 3212 | * @param hash_mode is an option to decide whether to use the md5 hash or not. |
| 3213 | * If hash_mode == TNG_USE_HASH the md5 hash in the file will be |
| 3214 | * compared to the md5 hash of the read contents to ensure valid data. |
| 3215 | * @param values is a pointer to a 1-dimensional array (memory unallocated), which |
| 3216 | * will be filled with data. The length of the array will be |
| 3217 | * (n_frames_with_data (see stride_length) * n_particles * n_values_per_frame). |
| 3218 | * Since **values is allocated in this function it is the callers |
| 3219 | * responsibility to free the memory. |
| 3220 | * @param stride_length is set to the stride length (writing interval) of |
| 3221 | * the data. |
| 3222 | * @param n_particles is set to the number of particles in the returned data. This is |
| 3223 | * needed to properly reach and/or free the data afterwards. |
| 3224 | * @param n_values_per_frame is set to the number of values per frame in the data. |
| 3225 | * This is needed to properly reach and/or free the data afterwards. |
| 3226 | * @param type is set to the data type of the data in the array. |
| 3227 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3228 | * must be initialised before using it. |
| 3229 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 3230 | * the last frame. |
| 3231 | * @pre \code n_particles != 0 \endcode The pointer to the number of particles must |
| 3232 | * not be a NULL pointer. |
| 3233 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3234 | * must not be a NULL pointer. |
| 3235 | * @pre \code n_values_per_frame != 0 \endcode The pointer to the number of |
| 3236 | * values per frame must not be a NULL pointer. |
| 3237 | * @pre \code type != 0 \endcode The pointer to the data type must not |
| 3238 | * be a NULL pointer. |
| 3239 | * @details This does only work for numerical (int, float, double) data. |
| 3240 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3241 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 3242 | */ |
| 3243 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_particle_data_vector_interval_getcxx . . $ tng_particle_data_vector_interval_get(3ce9bf2007368568).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3244 | int64_tcxx . . $ int64_t# block_id, |
| 3245 | int64_tcxx . . $ int64_t# start_frame_nr, |
| 3246 | int64_tcxx . . $ int64_t# end_frame_nr, |
| 3247 | char hash_mode, |
| 3248 | void** values, |
| 3249 | int64_tcxx . . $ int64_t#* n_particles, |
| 3250 | int64_tcxx . . $ int64_t#* stride_length, |
| 3251 | int64_tcxx . . $ int64_t#* n_values_per_frame, |
| 3252 | char* type); |
| 3253 | |
| 3254 | /** |
| 3255 | * @brief Get the stride length of a specific data (particle dependency does not matter) |
| 3256 | * block, either in the current frame set or of a specific frame. |
| 3257 | * @param tng_data is the trajectory data container. |
| 3258 | * @param block_id is the block ID of the data block, of which to retrieve the |
| 3259 | * stride length of the data. |
| 3260 | * @param frame is the frame from which to get the stride length. If frame is set to -1 |
| 3261 | * no specific frame will be used, but instead the first frame, starting from the last read |
| 3262 | * frame set, containing the data block will be used. |
| 3263 | * @param stride_length is set to the value of the stride length of the data block. |
| 3264 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3265 | * has occurred or TNG_CRITICAL (2) if a major error has occured. |
| 3266 | */ |
| 3267 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_data_get_stride_lengthcxx . . $ tng_data_get_stride_length(33c770c170b381b4).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3268 | int64_tcxx . . $ int64_t# block_id, |
| 3269 | int64_tcxx . . $ int64_t# frame, |
| 3270 | int64_tcxx . . $ int64_t#* stride_length); |
| 3271 | |
| 3272 | /** |
| 3273 | * @brief Get the date and time of initial file creation in ISO format (string). |
| 3274 | * @param tng_data is a trajectory data container. |
| 3275 | * @param time is a pointer to the string in which the date will be stored. Memory |
| 3276 | * must be reserved beforehand. |
| 3277 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3278 | * must be initialised before using it. |
| 3279 | * @pre \code time != 0 \endcode The pointer to the time must not be a NULL |
| 3280 | * pointer. |
| 3281 | * @return TNG_SUCCESS (0) if successful. |
| 3282 | */ |
| 3283 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_time_get_strcxx . . $ tng_time_get_str(69905c993f04e069).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, char* time); |
| 3284 | /** @} */ /* end of group1 */ |
| 3285 | |
| 3286 | /** @defgroup group2 High-level API |
| 3287 | * These functions make it easier to access and output TNG data. They |
| 3288 | * are recommended unless there is a special reason to use the more |
| 3289 | * detailed functions available in the low-level API. |
| 3290 | * @{ |
| 3291 | */ |
| 3292 | |
| 3293 | /** |
| 3294 | * @brief High-level function for opening and initializing a TNG trajectory. |
| 3295 | * @param filename is a string containing the name of the trajectory to open. |
| 3296 | * @param mode specifies the file mode of the trajectory. Can be set to 'r', |
| 3297 | * 'w' or 'a' for reading, writing or appending respectively. |
| 3298 | * @param tng_data_p is a pointer to the opened trajectory. This will be |
| 3299 | * allocated by the TNG library. The trajectory must be |
| 3300 | * closed by the user, whereby memory is freed. |
| 3301 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3302 | * must be initialised before using it. |
| 3303 | * @pre \code filename != 0 \endcode The pointer to the filename must not be a |
| 3304 | * NULL pointer. |
| 3305 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3306 | * has occured (such as invalid mode) or TNG_CRITICAL (2) if a major error |
| 3307 | * has occured. |
| 3308 | */ |
| 3309 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_trajectory_opencxx . . $ tng_util_trajectory_open(f5127e903e41c270).(const char* filename, |
| 3310 | char mode, |
| 3311 | tng_trajectory_tcxx . . $ tng_trajectory_t#* tng_data_p); |
| 3312 | |
| 3313 | /** |
| 3314 | * @brief High-level function for closing a TNG trajectory. |
| 3315 | * @param tng_data_p is a pointer to the trajectory to close. The memory |
| 3316 | * will be freed after finalising the writing. |
| 3317 | * @return TNG_SUCCESS (0) if successful. |
| 3318 | */ |
| 3319 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_trajectory_closecxx . . $ tng_util_trajectory_close(2bf8210ff4df0885).(tng_trajectory_tcxx . . $ tng_trajectory_t#* tng_data_p); |
| 3320 | |
| 3321 | /** |
| 3322 | * @brief High-level function for getting the time (in seconds) of a frame. |
| 3323 | * @param tng_data is the trajectory containing the frame. |
| 3324 | * @param frame_nr is the frame number of which to get the time. |
| 3325 | * @param time is set to the time (in seconds) of the specified frame. |
| 3326 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3327 | * must be initialised before using it. |
| 3328 | * @pre \code time != 0 \endcode The pointer to the time must not be a |
| 3329 | * NULL pointer. |
| 3330 | * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a |
| 3331 | * minor error has occured. |
| 3332 | */ |
| 3333 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_time_of_frame_getcxx . . $ tng_util_time_of_frame_get(1ffd49d9d2748247).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3334 | int64_tcxx . . $ int64_t# frame_nr, |
| 3335 | double* time); |
| 3336 | |
| 3337 | /** |
| 3338 | * @brief High-level function for reading the positions of all particles |
| 3339 | * from all frames. |
| 3340 | * @param tng_data is the trajectory to read from. |
| 3341 | * @param positions will be set to point at a 1-dimensional array of floats, |
| 3342 | * which will contain the positions. The data is stored sequentially in order |
| 3343 | * of frames. For each frame the positions (x, y and z coordinates) are stored. |
| 3344 | * The variable may point at already allocated memory or be a NULL pointer. |
| 3345 | * The memory must be freed afterwards. |
| 3346 | * @param stride_length will be set to the writing interval of the stored data. |
| 3347 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3348 | * must be initialised before using it. |
| 3349 | * @pre \code positions != 0 \endcode The pointer to the positions array |
| 3350 | * must not be a NULL pointer. |
| 3351 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3352 | * must not be a NULL pointer. |
| 3353 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3354 | * has occured (such as not finding a positions block or the datatype not |
| 3355 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3356 | */ |
| 3357 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_readcxx . . $ tng_util_pos_read(34d69dd3049389fb).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3358 | float** positions, |
| 3359 | int64_tcxx . . $ int64_t#* stride_length); |
| 3360 | |
| 3361 | /** |
| 3362 | * @brief High-level function for reading the velocities of all particles |
| 3363 | * from all frames. |
| 3364 | * @param tng_data is the trajectory to read from. |
| 3365 | * @param velocities will be set to point at a 1-dimensional array of floats, |
| 3366 | * which will contain the velocities. The data is stored sequentially in order |
| 3367 | * of frames. For each frame the velocities (in x, y and z) are stored. The |
| 3368 | * variable may point at already allocated memory or be a NULL pointer. |
| 3369 | * The memory must be freed afterwards. |
| 3370 | * @param stride_length will be set to the writing interval of the stored data. |
| 3371 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3372 | * must be initialised before using it. |
| 3373 | * @pre \code velocities != 0 \endcode The pointer to the velocities array |
| 3374 | * must not be a NULL pointer. |
| 3375 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3376 | * must not be a NULL pointer. |
| 3377 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3378 | * has occured (such as not finding a velocities block or the datatype not |
| 3379 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3380 | */ |
| 3381 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_readcxx . . $ tng_util_vel_read(34d69dd3049389fb).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3382 | float** velocities, |
| 3383 | int64_tcxx . . $ int64_t#* stride_length); |
| 3384 | |
| 3385 | /** |
| 3386 | * @brief High-level function for reading the forces of all particles |
| 3387 | * from all frames. |
| 3388 | * @param tng_data is the trajectory to read from. |
| 3389 | * @param forces will be set to point at a 1-dimensional array of floats, |
| 3390 | * which will contain the forces. The data is stored sequentially in order |
| 3391 | * of frames. For each frame the forces (in x, y and z) are stored. The |
| 3392 | * variable may point at already allocated memory or be a NULL pointer. |
| 3393 | * The memory must be freed afterwards. |
| 3394 | * @param stride_length will be set to the writing interval of the stored data. |
| 3395 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3396 | * must be initialised before using it. |
| 3397 | * @pre \code forces != 0 \endcode The pointer to the forces array |
| 3398 | * must not be a NULL pointer. |
| 3399 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3400 | * must not be a NULL pointer. |
| 3401 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3402 | * has occured (such as not finding a force block or the datatype not |
| 3403 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3404 | */ |
| 3405 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_readcxx . . $ tng_util_force_read(34d69dd3049389fb).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3406 | float** forces, |
| 3407 | int64_tcxx . . $ int64_t#* stride_length); |
| 3408 | |
| 3409 | /** |
| 3410 | * @brief High-level function for reading the box shape from all frames. |
| 3411 | * @param tng_data is the trajectory to read from. |
| 3412 | * @param box_shape will be set to point at a 1-dimensional array of floats, |
| 3413 | * which will contain the box shape. The data is stored sequentially in order |
| 3414 | * of frames. The variable may point at already allocated memory or be a NULL pointer. |
| 3415 | * If the box shape is not modified during the trajectory, but as general data, |
| 3416 | * that will be returned instead. |
| 3417 | * @param stride_length will be set to the writing interval of the stored data. |
| 3418 | * @details This function should only be used if number of values used to specify |
| 3419 | * the box shape is known (by default TNG uses 9 values) since it does not |
| 3420 | * return the number of values in the array. It is recommended to use |
| 3421 | * tng_data_vector_interval_get() instead. |
| 3422 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3423 | * must be initialised before using it. |
| 3424 | * @pre \code box_shape != 0 \endcode The pointer to the box_shape array |
| 3425 | * must not be a NULL pointer. |
| 3426 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3427 | * must not be a NULL pointer. |
| 3428 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3429 | * has occured (such as not finding a box shape block or the datatype not |
| 3430 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3431 | */ |
| 3432 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_readcxx . . $ tng_util_box_shape_read(34d69dd3049389fb).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3433 | float** box_shape, |
| 3434 | int64_tcxx . . $ int64_t#* stride_length); |
| 3435 | |
| 3436 | /** |
| 3437 | * @brief High-level function for reading the next frame of particle-dependent |
| 3438 | * data of a specific type. |
| 3439 | * @param tng_data is the trajectory to read from. |
| 3440 | * @param block_id is the ID number of the block containing the data of interest. |
| 3441 | * @param values will be set to point at a 1-dimensional array containing the |
| 3442 | * requested data. The variable may point at already allocated memory (which will |
| 3443 | * be reallocated with realloc()), or be a |
| 3444 | * NULL pointer. The calling code must free the memory afterwards. |
| 3445 | * @param data_type will be pointing to a character indicating the size of the |
| 3446 | * data of the returned values, e.g. TNG_INT_DATA, TNG_FLOAT_DATA or TNG_DOUBLE_DATA. |
| 3447 | * @param retrieved_frame_number will be pointing at the frame number of the |
| 3448 | * returned frame. |
| 3449 | * @param retrieved_time will be pointing at the time stamp of the returned |
| 3450 | * frame. |
| 3451 | * @details If no frame has been read before the first frame of the trajectory |
| 3452 | * is read. |
| 3453 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3454 | * must be initialised before using it. |
| 3455 | * @pre \code values != 0 \endcode The pointer to the values array |
| 3456 | * must not be a NULL pointer. |
| 3457 | * @pre \code data_type != 0 \endcode The pointer to the data type of the |
| 3458 | * returned data must not be a NULL pointer. |
| 3459 | * @pre \code retrieved_frame_number != 0 \endcode The pointer to the frame |
| 3460 | * number of the returned data must not be a NULL pointer. |
| 3461 | * @pre \code retrieved_time != 0 \endcode The pointer to the time of the |
| 3462 | * returned data must not be a NULL pointer. |
| 3463 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3464 | * has occured (such as the block_id not found) or TNG_CRITICAL (2) if a |
| 3465 | * major error has occured. |
| 3466 | */ |
| 3467 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_particle_data_next_frame_readcxx . . $ tng_util_particle_data_next_frame_read(a6545fedc751be08).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3468 | int64_tcxx . . $ int64_t# block_id, |
| 3469 | void** values, |
| 3470 | char* data_type, |
| 3471 | int64_tcxx . . $ int64_t#* retrieved_frame_number, |
| 3472 | double* retrieved_time); |
| 3473 | |
| 3474 | /** |
| 3475 | * @brief High-level function for reading the next frame of non-particle-dependent |
| 3476 | * data of a specific type. |
| 3477 | * @param tng_data is the trajectory to read from. |
| 3478 | * @param block_id is the ID number of the block containing the data of interest. |
| 3479 | * @param values will be set to point at a 1-dimensional array containing the |
| 3480 | * requested data. The variable may point at already allocated memory or be a |
| 3481 | * NULL pointer. The memory must be freed afterwards. |
| 3482 | * @param data_type will be pointing to a character indicating the size of the |
| 3483 | * data of the returned values, e.g. TNG_INT_DATA, TNG_FLOAT_DATA or TNG_DOUBLE_DATA. |
| 3484 | * @param retrieved_frame_number will be pointing at the frame number of the |
| 3485 | * returned frame. |
| 3486 | * @param retrieved_time will be pointing at the time stamp of the returned |
| 3487 | * frame. |
| 3488 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3489 | * must be initialised before using it. |
| 3490 | * @pre \code values != 0 \endcode The pointer to the values array |
| 3491 | * must not be a NULL pointer. |
| 3492 | * @pre \code data_type != 0 \endcode The pointer to the data type of the |
| 3493 | * returned data must not be a NULL pointer. |
| 3494 | * @pre \code retrieved_frame_number != 0 \endcode The pointer to the frame |
| 3495 | * number of the returned data must not be a NULL pointer. |
| 3496 | * @pre \code retrieved_time != 0 \endcode The pointer to the time of the |
| 3497 | * returned data must not be a NULL pointer. |
| 3498 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3499 | * has occured (such as the block_id not found) or TNG_CRITICAL (2) if a |
| 3500 | * major error has occured. |
| 3501 | */ |
| 3502 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! |
| 3503 | tng_util_non_particle_data_next_frame_readcxx . . $ tng_util_non_particle_data_next_frame_read(a6545fedc751be08).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3504 | int64_tcxx . . $ int64_t# block_id, |
| 3505 | void** values, |
| 3506 | char* data_type, |
| 3507 | int64_tcxx . . $ int64_t#* retrieved_frame_number, |
| 3508 | double* retrieved_time); |
| 3509 | |
| 3510 | /** |
| 3511 | * @brief High-level function for reading the positions of all particles |
| 3512 | * from a specific range of frames. |
| 3513 | * @param tng_data is the trajectory to read from. |
| 3514 | * @param first_frame is the first frame to return position data from. |
| 3515 | * @param last_frame is the last frame to return position data from. |
| 3516 | * @param positions will be set to point at a 1-dimensional array of floats, |
| 3517 | * which will contain the positions. The data is stored sequentially in order |
| 3518 | * of frames. For each frame the positions (x, y and z coordinates) are stored. |
| 3519 | * The variable may point at already allocated memory or be a NULL pointer. |
| 3520 | * The memory must be freed afterwards. |
| 3521 | * @param stride_length will be set to the writing interval of the stored data. |
| 3522 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3523 | * must be initialised before using it. |
| 3524 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 3525 | * the last frame. |
| 3526 | * @pre \code positions != 0 \endcode The pointer to the positions array |
| 3527 | * must not be a NULL pointer. |
| 3528 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3529 | * must not be a NULL pointer. |
| 3530 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3531 | * has occured (such as not finding a positions block or the datatype not |
| 3532 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3533 | */ |
| 3534 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_read_rangecxx . . $ tng_util_pos_read_range(9b2d52950062e166).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3535 | int64_tcxx . . $ int64_t# first_frame, |
| 3536 | int64_tcxx . . $ int64_t# last_frame, |
| 3537 | float** positions, |
| 3538 | int64_tcxx . . $ int64_t#* stride_length); |
| 3539 | |
| 3540 | /** |
| 3541 | * @brief High-level function for reading the velocities of all particles |
| 3542 | * from a specific range of frames. |
| 3543 | * @param tng_data is the trajectory to read from. |
| 3544 | * @param first_frame is the first frame to return position data from. |
| 3545 | * @param last_frame is the last frame to return position data from. |
| 3546 | * @param velocities will be set to point at a 1-dimensional array of floats, |
| 3547 | * which will contain the velocities. The data is stored sequentially in order |
| 3548 | * of frames. For each frame the velocities (in x, y and z) are stored. The |
| 3549 | * variable may point at already allocated memory or be a NULL pointer. |
| 3550 | * The memory must be freed afterwards. |
| 3551 | * @param stride_length will be set to the writing interval of the stored data. |
| 3552 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3553 | * must be initialised before using it. |
| 3554 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 3555 | * the last frame. |
| 3556 | * @pre \code velocities != 0 \endcode The pointer to the velocities array |
| 3557 | * must not be a NULL pointer. |
| 3558 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3559 | * must not be a NULL pointer. |
| 3560 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3561 | * has occured (such as not finding a velocities block or the datatype not |
| 3562 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3563 | */ |
| 3564 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_read_rangecxx . . $ tng_util_vel_read_range(9b2d52950062e166).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3565 | int64_tcxx . . $ int64_t# first_frame, |
| 3566 | int64_tcxx . . $ int64_t# last_frame, |
| 3567 | float** velocities, |
| 3568 | int64_tcxx . . $ int64_t#* stride_length); |
| 3569 | |
| 3570 | /** |
| 3571 | * @brief High-level function for reading the forces of all particles |
| 3572 | * from a specific range of frames. |
| 3573 | * @param tng_data is the trajectory to read from. |
| 3574 | * @param first_frame is the first frame to return position data from. |
| 3575 | * @param last_frame is the last frame to return position data from. |
| 3576 | * @param forces will be set to point at a 1-dimensional array of floats, |
| 3577 | * which will contain the forces. The data is stored sequentially in order |
| 3578 | * of frames. For each frame the forces (in x, y and z) are stored. The |
| 3579 | * variable may point at already allocated memory or be a NULL pointer. |
| 3580 | * The memory must be freed afterwards. |
| 3581 | * @param stride_length will be set to the writing interval of the stored data. |
| 3582 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3583 | * must be initialised before using it. |
| 3584 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 3585 | * the last frame. |
| 3586 | * @pre \code forces != 0 \endcode The pointer to the forces array |
| 3587 | * must not be a NULL pointer. |
| 3588 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3589 | * must not be a NULL pointer. |
| 3590 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3591 | * has occured (such as not finding a force block or the datatype not |
| 3592 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3593 | */ |
| 3594 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_read_rangecxx . . $ tng_util_force_read_range(9b2d52950062e166).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3595 | int64_tcxx . . $ int64_t# first_frame, |
| 3596 | int64_tcxx . . $ int64_t# last_frame, |
| 3597 | float** forces, |
| 3598 | int64_tcxx . . $ int64_t#* stride_length); |
| 3599 | |
| 3600 | /** |
| 3601 | * @brief High-level function for reading the box shape |
| 3602 | * from a specific range of frames. |
| 3603 | * @param tng_data is the trajectory to read from. |
| 3604 | * @param first_frame is the first frame to return position data from. |
| 3605 | * @param last_frame is the last frame to return position data from. |
| 3606 | * @param box_shape will be set to point at a 1-dimensional array of floats, |
| 3607 | * which will contain the box shape. The data is stored sequentially in order |
| 3608 | * of frames. |
| 3609 | * If the box shape is not modified during the trajectory, but as general data, |
| 3610 | * that will be returned instead. The |
| 3611 | * variable may point at already allocated memory or be a NULL pointer. |
| 3612 | * The memory must be freed afterwards. |
| 3613 | * @param stride_length will be set to the writing interval of the stored data. |
| 3614 | * @details This function should only be used if number of values used to specify |
| 3615 | * the box shape is known (by default TNG uses 9 values) since it does not |
| 3616 | * return the number of values in the array. It is recommended to use |
| 3617 | * tng_data_vector_interval_get() instead. |
| 3618 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3619 | * must be initialised before using it. |
| 3620 | * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |
| 3621 | * the last frame. |
| 3622 | * @pre \code box_shape != 0 \endcode The pointer to the box_shape array |
| 3623 | * must not be a NULL pointer. |
| 3624 | * @pre \code stride_length != 0 \endcode The pointer to the stride length |
| 3625 | * must not be a NULL pointer. |
| 3626 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3627 | * has occured (such as not finding a box shape block or the datatype not |
| 3628 | * being float) or TNG_CRITICAL (2) if a major error has occured. |
| 3629 | */ |
| 3630 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_read_rangecxx . . $ tng_util_box_shape_read_range(9b2d52950062e166).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3631 | int64_tcxx . . $ int64_t# first_frame, |
| 3632 | int64_tcxx . . $ int64_t# last_frame, |
| 3633 | float** box_shape, |
| 3634 | int64_tcxx . . $ int64_t#* stride_length); |
| 3635 | |
| 3636 | /** |
| 3637 | * @brief High-level function for setting the writing interval of data blocks. |
| 3638 | * @param tng_data is the trajectory to use. |
| 3639 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3640 | * frame. |
| 3641 | * @param n_values_per_frame is the number of values to store per frame. If the |
| 3642 | * data is particle dependent there will be n_values_per_frame stored per |
| 3643 | * particle each frame. |
| 3644 | * @param block_id is the ID of the block, of which to set the output interval. |
| 3645 | * @param block_name is a string that will be used as name of the block. Only |
| 3646 | * required if the block did not exist, i.e. a new block is created. |
| 3647 | * @param particle_dependency should be TNG_NON_PARTICLE_BLOCK_DATA (0) if the |
| 3648 | * data is not related to specific particles (e.g. box shape) or |
| 3649 | * TNG_PARTICLE_BLOCK_DATA (1) is it is related to specific particles (e.g. |
| 3650 | * positions). Only required if the block did not exist, i.e. a new block is |
| 3651 | * created. |
| 3652 | * @param compression is the compression routine to use when writing the data. |
| 3653 | * Only required if the block did not exist, i.e. a new block is created. |
| 3654 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3655 | * must be initialised before using it. |
| 3656 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3657 | * @details n_values_per_frame, block_name, particle_dependency and |
| 3658 | * compression are only used if the data block did not exist before calling |
| 3659 | * this function, in which case it is created. |
| 3660 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3661 | * has occured (such as i < 0) or TNG_CRITICAL (2) if a major error |
| 3662 | * has occured. |
| 3663 | */ |
| 3664 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_generic_write_interval_setcxx . . $ tng_util_generic_write_interval_set(fc8d4d792bce6fc8).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3665 | int64_tcxx . . $ int64_t# i, |
| 3666 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 3667 | int64_tcxx . . $ int64_t# block_id, |
| 3668 | const char* block_name, |
| 3669 | char particle_dependency, |
| 3670 | char compression); |
| 3671 | |
| 3672 | /** |
| 3673 | * @brief High-level function for setting the writing interval of data blocks |
| 3674 | * containing double precision data. |
| 3675 | * @param tng_data is the trajectory to use. |
| 3676 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3677 | * frame. |
| 3678 | * @param n_values_per_frame is the number of values to store per frame. If the |
| 3679 | * data is particle dependent there will be n_values_per_frame stored per |
| 3680 | * particle each frame. |
| 3681 | * @param block_id is the ID of the block, of which to set the output interval. |
| 3682 | * @param block_name is a string that will be used as name of the block. Only |
| 3683 | * required if the block did not exist, i.e. a new block is created. |
| 3684 | * @param particle_dependency should be TNG_NON_PARTICLE_BLOCK_DATA (0) if the |
| 3685 | * data is not related to specific particles (e.g. box shape) or |
| 3686 | * TNG_PARTICLE_BLOCK_DATA (1) is it is related to specific particles (e.g. |
| 3687 | * positions). Only required if the block did not exist, i.e. a new block is |
| 3688 | * created. |
| 3689 | * @param compression is the compression routine to use when writing the data. |
| 3690 | * Only required if the block did not exist, i.e. a new block is created. |
| 3691 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3692 | * must be initialised before using it. |
| 3693 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3694 | * @details n_values_per_frame, block_name, particle_dependency and |
| 3695 | * compression are only used if the data block did not exist before calling |
| 3696 | * this function, in which case it is created. |
| 3697 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3698 | * has occured (such as i < 0) or TNG_CRITICAL (2) if a major error |
| 3699 | * has occured. |
| 3700 | */ |
| 3701 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! |
| 3702 | tng_util_generic_write_interval_double_setcxx . . $ tng_util_generic_write_interval_double_set(fc8d4d792bce6fc8).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3703 | int64_tcxx . . $ int64_t# i, |
| 3704 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 3705 | int64_tcxx . . $ int64_t# block_id, |
| 3706 | const char* block_name, |
| 3707 | char particle_dependency, |
| 3708 | char compression); |
| 3709 | |
| 3710 | /** |
| 3711 | * @brief High-level function for setting the writing interval of data blocks. |
| 3712 | * Obsolete! Use tng_util_generic_write_interval_set() |
| 3713 | * @param tng_data is the trajectory to use. |
| 3714 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3715 | * frame. |
| 3716 | * @param n_values_per_frame is the number of values to store per frame. If the |
| 3717 | * data is particle dependent there will be n_values_per_frame stored per |
| 3718 | * particle each frame. |
| 3719 | * @param block_id is the ID of the block, of which to set the output interval. |
| 3720 | * @param block_name is a string that will be used as name of the block. Only |
| 3721 | * required if the block did not exist, i.e. a new block is created. |
| 3722 | * @param particle_dependency should be TNG_NON_PARTICLE_BLOCK_DATA (0) if the |
| 3723 | * data is not related to specific particles (e.g. box shape) or |
| 3724 | * TNG_PARTICLE_BLOCK_DATA (1) is it is related to specific particles (e.g. |
| 3725 | * positions). Only required if the block did not exist, i.e. a new block is |
| 3726 | * created. |
| 3727 | * @param compression is the compression routine to use when writing the data. |
| 3728 | * Only required if the block did not exist, i.e. a new block is created. |
| 3729 | * @details n_values_per_frame, block_name, particle_dependency and |
| 3730 | * compression are only used if the data block did not exist before calling |
| 3731 | * this function, in which case it is created. |
| 3732 | * This function is replaced by the more correcly named |
| 3733 | * tng_util_generic_write_interval_set(), but is kept for compatibility. |
| 3734 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3735 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3736 | */ |
| 3737 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_generic_write_frequency_setcxx . . $ tng_util_generic_write_frequency_set(fc8d4d792bce6fc8).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3738 | int64_tcxx . . $ int64_t# i, |
| 3739 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 3740 | int64_tcxx . . $ int64_t# block_id, |
| 3741 | const char* block_name, |
| 3742 | char particle_dependency, |
| 3743 | char compression); |
| 3744 | |
| 3745 | /** |
| 3746 | * @brief High-level function for setting the writing interval of position |
| 3747 | * data blocks. |
| 3748 | * @param tng_data is the trajectory to use. |
| 3749 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3750 | * frame. |
| 3751 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3752 | * must be initialised before using it. |
| 3753 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3754 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3755 | * create a positions data block if none exists. |
| 3756 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3757 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3758 | */ |
| 3759 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_write_interval_setcxx . . $ tng_util_pos_write_interval_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3760 | int64_tcxx . . $ int64_t# i); |
| 3761 | |
| 3762 | /** |
| 3763 | * @brief High-level function for setting the writing interval of position |
| 3764 | * data blocks containing double precision data. |
| 3765 | * @param tng_data is the trajectory to use. |
| 3766 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3767 | * frame. |
| 3768 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3769 | * must be initialised before using it. |
| 3770 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3771 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3772 | * create a positions data block if none exists. |
| 3773 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3774 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3775 | */ |
| 3776 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_write_interval_double_setcxx . . $ tng_util_pos_write_interval_double_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3777 | int64_tcxx . . $ int64_t# i); |
| 3778 | |
| 3779 | /** |
| 3780 | * @brief High-level function for setting the writing interval of position |
| 3781 | * data blocks. Obsolete! Use tng_util_pos_write_interval_set() |
| 3782 | * @param tng_data is the trajectory to use. |
| 3783 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3784 | * frame. |
| 3785 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3786 | * must be initialised before using it. |
| 3787 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3788 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3789 | * create a positions data block if none exists. |
| 3790 | * This function is replaced by the more correcly named |
| 3791 | * tng_util_pos_write_interval_set(), but is kept for compatibility. |
| 3792 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3793 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3794 | */ |
| 3795 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_write_frequency_setcxx . . $ tng_util_pos_write_frequency_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3796 | int64_tcxx . . $ int64_t# i); |
| 3797 | |
| 3798 | /** |
| 3799 | * @brief High-level function for setting the writing interval of velocity |
| 3800 | * data blocks. |
| 3801 | * @param tng_data is the trajectory to use. |
| 3802 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3803 | * frame. |
| 3804 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3805 | * must be initialised before using it. |
| 3806 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3807 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3808 | * create a velocities data block if none exists. |
| 3809 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3810 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3811 | */ |
| 3812 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_write_interval_setcxx . . $ tng_util_vel_write_interval_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3813 | int64_tcxx . . $ int64_t# i); |
| 3814 | |
| 3815 | /** |
| 3816 | * @brief High-level function for setting the writing interval of velocity |
| 3817 | * data blocks containing double precision data. |
| 3818 | * @param tng_data is the trajectory to use. |
| 3819 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3820 | * frame. |
| 3821 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3822 | * must be initialised before using it. |
| 3823 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3824 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3825 | * create a velocities data block if none exists. |
| 3826 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3827 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3828 | */ |
| 3829 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_write_interval_double_setcxx . . $ tng_util_vel_write_interval_double_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3830 | int64_tcxx . . $ int64_t# i); |
| 3831 | |
| 3832 | /** |
| 3833 | * @brief High-level function for setting the writing interval of velocity |
| 3834 | * data blocks. Obsolete! Use tng_util_vel_write_interval_set() |
| 3835 | * @param tng_data is the trajectory to use. |
| 3836 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3837 | * frame. |
| 3838 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3839 | * create a velocities data block if none exists. |
| 3840 | * This function is replaced by the more correcly named |
| 3841 | * tng_util_vel_write_interval_set(), but is kept for compatibility. |
| 3842 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3843 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3844 | */ |
| 3845 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_write_frequency_setcxx . . $ tng_util_vel_write_frequency_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3846 | int64_tcxx . . $ int64_t# i); |
| 3847 | |
| 3848 | /** |
| 3849 | * @brief High-level function for setting the writing interval of force |
| 3850 | * data blocks. |
| 3851 | * @param tng_data is the trajectory to use. |
| 3852 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3853 | * frame. |
| 3854 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3855 | * must be initialised before using it. |
| 3856 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3857 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3858 | * create a forces data block if none exists. |
| 3859 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3860 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3861 | */ |
| 3862 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_write_interval_setcxx . . $ tng_util_force_write_interval_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3863 | int64_tcxx . . $ int64_t# i); |
| 3864 | |
| 3865 | /** |
| 3866 | * @brief High-level function for setting the writing interval of force |
| 3867 | * data blocks containing double precision data. |
| 3868 | * @param tng_data is the trajectory to use. |
| 3869 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3870 | * frame. |
| 3871 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3872 | * must be initialised before using it. |
| 3873 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3874 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3875 | * create a forces data block if none exists. |
| 3876 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3877 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3878 | */ |
| 3879 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_write_interval_double_setcxx . . $ tng_util_force_write_interval_double_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3880 | int64_tcxx . . $ int64_t# i); |
| 3881 | |
| 3882 | /** |
| 3883 | * @brief High-level function for setting the writing interval of force |
| 3884 | * data blocks. Obsolete! Use tng_util_force_write_interval_set() |
| 3885 | * @param tng_data is the trajectory to use. |
| 3886 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3887 | * frame. |
| 3888 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3889 | * create a forces data block if none exists. |
| 3890 | * This function is replaced by the more correcly named |
| 3891 | * tng_util_force_write_interval_set(), but is kept for compatibility. |
| 3892 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3893 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3894 | */ |
| 3895 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_write_frequency_setcxx . . $ tng_util_force_write_frequency_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3896 | int64_tcxx . . $ int64_t# i); |
| 3897 | |
| 3898 | /** |
| 3899 | * @brief High-level function for setting the writing interval of box shape |
| 3900 | * data blocks. |
| 3901 | * @param tng_data is the trajectory to use. |
| 3902 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3903 | * frame. |
| 3904 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3905 | * must be initialised before using it. |
| 3906 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3907 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3908 | * create a box shape data block if none exists. |
| 3909 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3910 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3911 | */ |
| 3912 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_write_interval_setcxx . . $ tng_util_box_shape_write_interval_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3913 | int64_tcxx . . $ int64_t# i); |
| 3914 | |
| 3915 | /** |
| 3916 | * @brief High-level function for setting the writing interval of box shape |
| 3917 | * data blocks containing double precision data. |
| 3918 | * @param tng_data is the trajectory to use. |
| 3919 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3920 | * frame. |
| 3921 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3922 | * must be initialised before using it. |
| 3923 | * @pre \code i >= 0 \endcode The writing interval must be >= 0. |
| 3924 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3925 | * create a box shape data block if none exists. |
| 3926 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3927 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3928 | */ |
| 3929 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_write_interval_double_setcxx . . $ tng_util_box_shape_write_interval_double_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3930 | int64_tcxx . . $ int64_t# i); |
| 3931 | |
| 3932 | /** |
| 3933 | * @brief High-level function for setting the writing interval of velocity |
| 3934 | * data blocks. Obsolete! Use tng_util_box_shape_write_interval_set() |
| 3935 | * @param tng_data is the trajectory to use. |
| 3936 | * @param i is the output interval, i.e. i == 10 means data written every 10th |
| 3937 | * frame. |
| 3938 | * @details This function uses tng_util_generic_write_interval_set() and will |
| 3939 | * create a box shape data block if none exists. |
| 3940 | * This function is replaced by the more correcly named |
| 3941 | * tng_util_box_shape_write_interval_set(), but is kept for compatibility. |
| 3942 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3943 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3944 | */ |
| 3945 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_write_frequency_setcxx . . $ tng_util_box_shape_write_frequency_set(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3946 | int64_tcxx . . $ int64_t# i); |
| 3947 | |
| 3948 | /** |
| 3949 | * @brief High-level function for writing data of one frame to a data block. |
| 3950 | * @param tng_data is the trajectory to use. |
| 3951 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 3952 | * data is written as non-trajectory data. |
| 3953 | * @param values is a 1D array of data to add. The array should be of length |
| 3954 | * n_particles * n_values_per_frame if writing particle related data, otherwise |
| 3955 | * it should be n_values_per_frame. |
| 3956 | * @param n_values_per_frame is the number of values to store per frame. If the |
| 3957 | * data is particle dependent there will be n_values_per_frame stored per |
| 3958 | * particle each frame. |
| 3959 | * @param block_id is the ID of the block, of which to set the output interval. |
| 3960 | * @param block_name is a string that will be used as name of the block. Only |
| 3961 | * required if the block did not exist, i.e. a new block is created. |
| 3962 | * @param particle_dependency should be TNG_NON_PARTICLE_BLOCK_DATA (0) if the |
| 3963 | * data is not related to specific particles (e.g. box shape) or |
| 3964 | * TNG_PARTICLE_BLOCK_DATA (1) is it is related to specific particles (e.g. |
| 3965 | * positions). Only required if the block did not exist, i.e. a new block is |
| 3966 | * created. |
| 3967 | * @param compression is the compression routine to use when writing the data. |
| 3968 | * Only required if the block did not exist, i.e. a new block is created. |
| 3969 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 3970 | * must be initialised before using it. |
| 3971 | * @pre \code values != 0 \endcode The pointer to the values array must not |
| 3972 | * be a NULL pointer. |
| 3973 | * @details n_values_per_frame, block_name, particle_dependency and |
| 3974 | * compression are only used if the data block did not exist before calling |
| 3975 | * this function, in which case it is created. |
| 3976 | * N.b. Data is written a whole block at a time. The data is not |
| 3977 | * actually written to disk until the frame set is finished or the TNG |
| 3978 | * trajectory is closed. |
| 3979 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 3980 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 3981 | */ |
| 3982 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_generic_writecxx . . $ tng_util_generic_write(a379c5572ff568de).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 3983 | int64_tcxx . . $ int64_t# frame_nr, |
| 3984 | const float* values, |
| 3985 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 3986 | int64_tcxx . . $ int64_t# block_id, |
| 3987 | const char* block_name, |
| 3988 | char particle_dependency, |
| 3989 | char compression); |
| 3990 | |
| 3991 | /** |
| 3992 | * @brief High-level function for writing data of one frame to a double precision |
| 3993 | * data block. |
| 3994 | * @param tng_data is the trajectory to use. |
| 3995 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 3996 | * data is written as non-trajectory data. |
| 3997 | * @param values is a 1D array of data to add. The array should be of length |
| 3998 | * n_particles * n_values_per_frame if writing particle related data, otherwise |
| 3999 | * it should be n_values_per_frame. |
| 4000 | * @param n_values_per_frame is the number of values to store per frame. If the |
| 4001 | * data is particle dependent there will be n_values_per_frame stored per |
| 4002 | * particle each frame. |
| 4003 | * @param block_id is the ID of the block, of which to set the output interval. |
| 4004 | * @param block_name is a string that will be used as name of the block. Only |
| 4005 | * required if the block did not exist, i.e. a new block is created. |
| 4006 | * @param particle_dependency should be TNG_NON_PARTICLE_BLOCK_DATA (0) if the |
| 4007 | * data is not related to specific particles (e.g. box shape) or |
| 4008 | * TNG_PARTICLE_BLOCK_DATA (1) is it is related to specific particles (e.g. |
| 4009 | * positions). Only required if the block did not exist, i.e. a new block is |
| 4010 | * created. |
| 4011 | * @param compression is the compression routine to use when writing the data. |
| 4012 | * Only required if the block did not exist, i.e. a new block is created. |
| 4013 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4014 | * must be initialised before using it. |
| 4015 | * @pre \code values != 0 \endcode The pointer to the values array must not |
| 4016 | * be a NULL pointer. |
| 4017 | * @details n_values_per_frame, block_name, particle_dependency and |
| 4018 | * compression are only used if the data block did not exist before calling |
| 4019 | * this function, in which case it is created. |
| 4020 | * N.b. Data is written a whole block at a time. The data is not |
| 4021 | * actually written to disk until the frame set is finished or the TNG |
| 4022 | * trajectory is closed. |
| 4023 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4024 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4025 | */ |
| 4026 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_generic_double_writecxx . . $ tng_util_generic_double_write(9c4c3c149abf355f).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4027 | int64_tcxx . . $ int64_t# frame_nr, |
| 4028 | const double* values, |
| 4029 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 4030 | int64_tcxx . . $ int64_t# block_id, |
| 4031 | const char* block_name, |
| 4032 | char particle_dependency, |
| 4033 | char compression); |
| 4034 | |
| 4035 | /** |
| 4036 | * @brief High-level function for adding data to positions data blocks. |
| 4037 | * @param tng_data is the trajectory to use. |
| 4038 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4039 | * data is written as non-trajectory data. |
| 4040 | * @param positions is a 1D array of data to add. The array should be of length |
| 4041 | * n_particles * 3. |
| 4042 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4043 | * must be initialised before using it. |
| 4044 | * @pre \code positions != 0 \endcode The pointer to the positions array must not |
| 4045 | * be a NULL pointer. |
| 4046 | * @details This function uses tng_util_generic_write() and will |
| 4047 | * create a positions data block if none exists. Positions are stored as three |
| 4048 | * values per frame and compressed using TNG compression. |
| 4049 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4050 | * actually written to disk until the frame set is finished or the TNG |
| 4051 | * trajectory is closed. |
| 4052 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4053 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4054 | */ |
| 4055 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_writecxx . . $ tng_util_pos_write(dac58a0a271bee14).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4056 | int64_tcxx . . $ int64_t# frame_nr, |
| 4057 | const float* positions); |
| 4058 | |
| 4059 | /** |
| 4060 | * @brief High-level function for adding data to positions data blocks at double |
| 4061 | * precision. |
| 4062 | * @param tng_data is the trajectory to use. |
| 4063 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4064 | * data is written as non-trajectory data. |
| 4065 | * @param positions is a 1D array of data to add. The array should be of length |
| 4066 | * n_particles * 3. |
| 4067 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4068 | * must be initialised before using it. |
| 4069 | * @pre \code positions != 0 \endcode The pointer to the positions array must not |
| 4070 | * be a NULL pointer. |
| 4071 | * @details This function uses tng_util_generic_write() and will |
| 4072 | * create a positions data block if none exists. Positions are stored as three |
| 4073 | * values per frame and compressed using TNG compression. |
| 4074 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4075 | * actually written to disk until the frame set is finished or the TNG |
| 4076 | * trajectory is closed. |
| 4077 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4078 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4079 | */ |
| 4080 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_double_writecxx . . $ tng_util_pos_double_write(256c89ef652533f3).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4081 | int64_tcxx . . $ int64_t# frame_nr, |
| 4082 | const double* positions); |
| 4083 | |
| 4084 | /** |
| 4085 | * @brief High-level function for adding data to velocities data blocks. |
| 4086 | * @param tng_data is the trajectory to use. |
| 4087 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4088 | * data is written as non-trajectory data. |
| 4089 | * @param velocities is a 1D array of data to add. The array should be of length |
| 4090 | * n_particles * 3. |
| 4091 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4092 | * must be initialised before using it. |
| 4093 | * @pre \code velocities != 0 \endcode The pointer to the velocities array must not |
| 4094 | * be a NULL pointer. |
| 4095 | * @details This function uses tng_util_generic_write() and will |
| 4096 | * create a velocities data block if none exists. Velocities are stored as three |
| 4097 | * values per frame and compressed using TNG compression. |
| 4098 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4099 | * actually written to disk until the frame set is finished or the TNG |
| 4100 | * trajectory is closed. |
| 4101 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4102 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4103 | */ |
| 4104 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_writecxx . . $ tng_util_vel_write(dac58a0a271bee14).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4105 | int64_tcxx . . $ int64_t# frame_nr, |
| 4106 | const float* velocities); |
| 4107 | |
| 4108 | /** |
| 4109 | * @brief High-level function for adding data to velocities data blocks at double |
| 4110 | * precision. |
| 4111 | * @param tng_data is the trajectory to use. |
| 4112 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4113 | * data is written as non-trajectory data. |
| 4114 | * @param velocities is a 1D array of data to add. The array should be of length |
| 4115 | * n_particles * 3. |
| 4116 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4117 | * must be initialised before using it. |
| 4118 | * @pre \code velocities != 0 \endcode The pointer to the velocities array must not |
| 4119 | * be a NULL pointer. |
| 4120 | * @details This function uses tng_util_generic_write() and will |
| 4121 | * create a velocities data block if none exists. Velocities are stored as three |
| 4122 | * values per frame and compressed using TNG compression. |
| 4123 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4124 | * actually written to disk until the frame set is finished or the TNG |
| 4125 | * trajectory is closed. |
| 4126 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4127 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4128 | */ |
| 4129 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_double_writecxx . . $ tng_util_vel_double_write(256c89ef652533f3).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4130 | int64_tcxx . . $ int64_t# frame_nr, |
| 4131 | const double* velocities); |
| 4132 | |
| 4133 | /** |
| 4134 | * @brief High-level function for adding data to forces data blocks. |
| 4135 | * @param tng_data is the trajectory to use. |
| 4136 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4137 | * data is written as non-trajectory data. |
| 4138 | * @param forces is a 1D array of data to add. The array should be of length |
| 4139 | * n_particles * 3. |
| 4140 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4141 | * must be initialised before using it. |
| 4142 | * @pre \code forces != 0 \endcode The pointer to the forces array must not |
| 4143 | * be a NULL pointer. |
| 4144 | * @details This function uses tng_util_generic_write() and will |
| 4145 | * create a forces data block if none exists. Forces are stored as three |
| 4146 | * values per frame and compressed using gzip compression. |
| 4147 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4148 | * actually written to disk until the frame set is finished or the TNG |
| 4149 | * trajectory is closed. |
| 4150 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4151 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4152 | */ |
| 4153 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_writecxx . . $ tng_util_force_write(dac58a0a271bee14).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4154 | int64_tcxx . . $ int64_t# frame_nr, |
| 4155 | const float* forces); |
| 4156 | |
| 4157 | /** |
| 4158 | * @brief High-level function for adding data to forces data blocks at double |
| 4159 | * precision. |
| 4160 | * @param tng_data is the trajectory to use. |
| 4161 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4162 | * data is written as non-trajectory data. |
| 4163 | * @param forces is a 1D array of data to add. The array should be of length |
| 4164 | * n_particles * 3. |
| 4165 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4166 | * must be initialised before using it. |
| 4167 | * @pre \code forces != 0 \endcode The pointer to the forces array must not |
| 4168 | * be a NULL pointer. |
| 4169 | * @details This function uses tng_util_generic_write() and will |
| 4170 | * create a forces data block if none exists. Forces are stored as three |
| 4171 | * values per frame and compressed using gzip compression. |
| 4172 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4173 | * actually written to disk until the frame set is finished or the TNG |
| 4174 | * trajectory is closed. |
| 4175 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4176 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4177 | */ |
| 4178 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_double_writecxx . . $ tng_util_force_double_write(256c89ef652533f3).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4179 | int64_tcxx . . $ int64_t# frame_nr, |
| 4180 | const double* forces); |
| 4181 | |
| 4182 | /** |
| 4183 | * @brief High-level function for adding data to box shape data blocks. |
| 4184 | * @param tng_data is the trajectory to use. |
| 4185 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4186 | * data is written as non-trajectory data. |
| 4187 | * @param box_shape is a 1D array of data to add. The array should be of length 9. |
| 4188 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4189 | * must be initialised before using it. |
| 4190 | * @pre \code box_shape != 0 \endcode The pointer to the box_shape array must not |
| 4191 | * be a NULL pointer. |
| 4192 | * @details This function uses tng_util_generic_write() and will |
| 4193 | * create a box shape data block if none exists. Box shapes are stored as 9 |
| 4194 | * values per frame and compressed using TNG compression. |
| 4195 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4196 | * actually written to disk until the frame set is finished or the TNG |
| 4197 | * trajectory is closed. |
| 4198 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4199 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4200 | */ |
| 4201 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_writecxx . . $ tng_util_box_shape_write(dac58a0a271bee14).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4202 | int64_tcxx . . $ int64_t# frame_nr, |
| 4203 | const float* box_shape); |
| 4204 | |
| 4205 | /** |
| 4206 | * @brief High-level function for adding data to box shape data blocks at double |
| 4207 | * precision. |
| 4208 | * @param tng_data is the trajectory to use. |
| 4209 | * @param frame_nr is the frame number of the data. If frame_nr < 0 the |
| 4210 | * data is written as non-trajectory data. |
| 4211 | * @param box_shape is a 1D array of data to add. The array should be of length 9. |
| 4212 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4213 | * must be initialised before using it. |
| 4214 | * @pre \code box_shape != 0 \endcode The pointer to the box_shape array must not |
| 4215 | * be a NULL pointer. |
| 4216 | * @details This function uses tng_util_generic_write() and will |
| 4217 | * create a box shape data block if none exists. Box shapes are stored as 9 |
| 4218 | * values per frame and compressed using TNG compression. |
| 4219 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4220 | * actually written to disk until the frame set is finished or the TNG |
| 4221 | * trajectory is closed. |
| 4222 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4223 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4224 | */ |
| 4225 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_double_writecxx . . $ tng_util_box_shape_double_write(256c89ef652533f3).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4226 | int64_tcxx . . $ int64_t# frame_nr, |
| 4227 | const double* box_shape); |
| 4228 | |
| 4229 | /** |
| 4230 | * @brief High-level function for writing data of one frame to a data block. |
| 4231 | * If the frame is at the beginning of a frame set the time stamp of the frame |
| 4232 | * set is set. |
| 4233 | * @param tng_data is the trajectory to use. |
| 4234 | * @param frame_nr is the frame number of the data. |
| 4235 | * @param time is the time stamp of the frame (in seconds). |
| 4236 | * @param values is a 1D array of data to add. The array should be of length |
| 4237 | * n_particles * n_values_per_frame if writing particle related data, otherwise |
| 4238 | * it should be n_values_per_frame. |
| 4239 | * @param n_values_per_frame is the number of values to store per frame. If the |
| 4240 | * data is particle dependent there will be n_values_per_frame stored per |
| 4241 | * particle each frame. |
| 4242 | * @param block_id is the ID of the block, of which to set the output interval. |
| 4243 | * @param block_name is a string that will be used as name of the block. Only |
| 4244 | * required if the block did not exist, i.e. a new block is created. |
| 4245 | * @param particle_dependency should be TNG_NON_PARTICLE_BLOCK_DATA (0) if the |
| 4246 | * data is not related to specific particles (e.g. box shape) or |
| 4247 | * TNG_PARTICLE_BLOCK_DATA (1) is it is related to specific particles (e.g. |
| 4248 | * positions). Only required if the block did not exist, i.e. a new block is |
| 4249 | * created. |
| 4250 | * @param compression is the compression routine to use when writing the data. |
| 4251 | * Only required if the block did not exist, i.e. a new block is created. |
| 4252 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4253 | * must be initialised before using it. |
| 4254 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4255 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4256 | * @pre \code values != 0 \endcode The pointer to the values array must not |
| 4257 | * be a NULL pointer. |
| 4258 | * @details n_values_per_frame, block_name, particle_dependency and |
| 4259 | * compression are only used if the data block did not exist before calling |
| 4260 | * this function, in which case it is created. |
| 4261 | * N.b. Data is written a whole block at a time. The data is not |
| 4262 | * actually written to disk until the frame set is finished or the TNG |
| 4263 | * trajectory is closed. |
| 4264 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4265 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4266 | */ |
| 4267 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_generic_with_time_writecxx . . $ tng_util_generic_with_time_write(c3551d0998f63d18).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4268 | int64_tcxx . . $ int64_t# frame_nr, |
| 4269 | double time, |
| 4270 | const float* values, |
| 4271 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 4272 | int64_tcxx . . $ int64_t# block_id, |
| 4273 | const char* block_name, |
| 4274 | char particle_dependency, |
| 4275 | char compression); |
| 4276 | |
| 4277 | /** |
| 4278 | * @brief High-level function for writing data of one frame to a double precision |
| 4279 | * data block. If the frame is at the beginning of a frame set the time stamp of |
| 4280 | * the frame set is set. |
| 4281 | * @param tng_data is the trajectory to use. |
| 4282 | * @param frame_nr is the frame number of the data. |
| 4283 | * @param time is the time stamp of the frame (in seconds). |
| 4284 | * @param values is a 1D array of data to add. The array should be of length |
| 4285 | * n_particles * n_values_per_frame if writing particle related data, otherwise |
| 4286 | * it should be n_values_per_frame. |
| 4287 | * @param n_values_per_frame is the number of values to store per frame. If the |
| 4288 | * data is particle dependent there will be n_values_per_frame stored per |
| 4289 | * particle each frame. |
| 4290 | * @param block_id is the ID of the block, of which to set the output interval. |
| 4291 | * @param block_name is a string that will be used as name of the block. Only |
| 4292 | * required if the block did not exist, i.e. a new block is created. |
| 4293 | * @param particle_dependency should be TNG_NON_PARTICLE_BLOCK_DATA (0) if the |
| 4294 | * data is not related to specific particles (e.g. box shape) or |
| 4295 | * TNG_PARTICLE_BLOCK_DATA (1) is it is related to specific particles (e.g. |
| 4296 | * positions). Only required if the block did not exist, i.e. a new block is |
| 4297 | * created. |
| 4298 | * @param compression is the compression routine to use when writing the data. |
| 4299 | * Only required if the block did not exist, i.e. a new block is created. |
| 4300 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4301 | * must be initialised before using it. |
| 4302 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4303 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4304 | * @pre \code values != 0 \endcode The pointer to the values array must not |
| 4305 | * be a NULL pointer. |
| 4306 | * @details n_values_per_frame, block_name, particle_dependency and |
| 4307 | * compression are only used if the data block did not exist before calling |
| 4308 | * this function, in which case it is created. |
| 4309 | * N.b. Data is written a whole block at a time. The data is not |
| 4310 | * actually written to disk until the frame set is finished or the TNG |
| 4311 | * trajectory is closed. |
| 4312 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4313 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4314 | */ |
| 4315 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_generic_with_time_double_writecxx . . $ tng_util_generic_with_time_double_write(a589c3c57caebeb6).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4316 | int64_tcxx . . $ int64_t# frame_nr, |
| 4317 | double time, |
| 4318 | const double* values, |
| 4319 | int64_tcxx . . $ int64_t# n_values_per_frame, |
| 4320 | int64_tcxx . . $ int64_t# block_id, |
| 4321 | const char* block_name, |
| 4322 | char particle_dependency, |
| 4323 | char compression); |
| 4324 | |
| 4325 | /** |
| 4326 | * @brief High-level function for adding data to positions data blocks. If the |
| 4327 | * frame is at the beginning of a frame set the time stamp of the frame set |
| 4328 | * is set. |
| 4329 | * @param tng_data is the trajectory to use. |
| 4330 | * @param frame_nr is the frame number of the data. |
| 4331 | * @param time is the time stamp of the frame (in seconds). |
| 4332 | * @param positions is a 1D array of data to add. The array should be of length |
| 4333 | * n_particles * 3. |
| 4334 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4335 | * must be initialised before using it. |
| 4336 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4337 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4338 | * @pre \code positions != 0 \endcode The pointer to the positions array must not |
| 4339 | * be a NULL pointer. |
| 4340 | * @details This function uses tng_util_generic_with_time_write() and will |
| 4341 | * create a positions data block if none exists. Positions are stored as three |
| 4342 | * values per frame and compressed using TNG compression. |
| 4343 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4344 | * actually written to disk until the frame set is finished or the TNG |
| 4345 | * trajectory is closed. |
| 4346 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4347 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4348 | */ |
| 4349 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_with_time_writecxx . . $ tng_util_pos_with_time_write(2510400b998598cf).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4350 | int64_tcxx . . $ int64_t# frame_nr, |
| 4351 | double time, |
| 4352 | const float* positions); |
| 4353 | |
| 4354 | /** |
| 4355 | * @brief High-level function for adding data to positions data blocks at double |
| 4356 | * precision. If the frame is at the beginning of a frame set the time stamp of |
| 4357 | * the frame set is set. |
| 4358 | * @param tng_data is the trajectory to use. |
| 4359 | * @param frame_nr is the frame number of the data. |
| 4360 | * @param time is the time stamp of the frame (in seconds). |
| 4361 | * @param positions is a 1D array of data to add. The array should be of length |
| 4362 | * n_particles * 3. |
| 4363 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4364 | * must be initialised before using it. |
| 4365 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4366 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4367 | * @pre \code positions != 0 \endcode The pointer to the positions array must not |
| 4368 | * be a NULL pointer. |
| 4369 | * @details This function uses tng_util_generic_with_time_double_write() and will |
| 4370 | * create a positions data block if none exists. Positions are stored as three |
| 4371 | * values per frame and compressed using TNG compression. |
| 4372 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4373 | * actually written to disk until the frame set is finished or the TNG |
| 4374 | * trajectory is closed. |
| 4375 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4376 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4377 | */ |
| 4378 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_pos_with_time_double_writecxx . . $ tng_util_pos_with_time_double_write(59eaa4ba34ca7e79).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4379 | int64_tcxx . . $ int64_t# frame_nr, |
| 4380 | double time, |
| 4381 | const double* positions); |
| 4382 | |
| 4383 | /** |
| 4384 | * @brief High-level function for adding data to velocities data blocks. If the |
| 4385 | * frame is at the beginning of a frame set the time stamp of the frame set |
| 4386 | * is set. |
| 4387 | * @param tng_data is the trajectory to use. |
| 4388 | * @param frame_nr is the frame number of the data. |
| 4389 | * @param time is the time stamp of the frame (in seconds). |
| 4390 | * @param velocities is a 1D array of data to add. The array should be of length |
| 4391 | * n_particles * 3. |
| 4392 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4393 | * must be initialised before using it. |
| 4394 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4395 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4396 | * @pre \code velocities != 0 \endcode The pointer to the velocities array must not |
| 4397 | * be a NULL pointer. |
| 4398 | * @details This function uses tng_util_generic_with_time_write() and will |
| 4399 | * create a velocities data block if none exists. Velocities are stored as three |
| 4400 | * values per frame and compressed using TNG compression. |
| 4401 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4402 | * actually written to disk until the frame set is finished or the TNG |
| 4403 | * trajectory is closed. |
| 4404 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4405 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4406 | */ |
| 4407 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_with_time_writecxx . . $ tng_util_vel_with_time_write(2510400b998598cf).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4408 | int64_tcxx . . $ int64_t# frame_nr, |
| 4409 | double time, |
| 4410 | const float* velocities); |
| 4411 | |
| 4412 | /** |
| 4413 | * @brief High-level function for adding data to velocities data blocks at |
| 4414 | * double precision. If the frame is at the beginning of a frame set the |
| 4415 | * time stamp of the frame set is set. |
| 4416 | * @param tng_data is the trajectory to use. |
| 4417 | * @param frame_nr is the frame number of the data. |
| 4418 | * @param time is the time stamp of the frame (in seconds). |
| 4419 | * @param velocities is a 1D array of data to add. The array should be of length |
| 4420 | * n_particles * 3. |
| 4421 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4422 | * must be initialised before using it. |
| 4423 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4424 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4425 | * @pre \code velocities != 0 \endcode The pointer to the velocities array must not |
| 4426 | * be a NULL pointer. |
| 4427 | * @details This function uses tng_util_generic_with_time_double_write() and will |
| 4428 | * create a velocities data block if none exists. Velocities are stored as three |
| 4429 | * values per frame and compressed using TNG compression. |
| 4430 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4431 | * actually written to disk until the frame set is finished or the TNG |
| 4432 | * trajectory is closed. |
| 4433 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4434 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4435 | */ |
| 4436 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_vel_with_time_double_writecxx . . $ tng_util_vel_with_time_double_write(59eaa4ba34ca7e79).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4437 | int64_tcxx . . $ int64_t# frame_nr, |
| 4438 | double time, |
| 4439 | const double* velocities); |
| 4440 | |
| 4441 | /** |
| 4442 | * @brief High-level function for adding data to forces data blocks. If the |
| 4443 | * frame is at the beginning of a frame set the time stamp of the frame set |
| 4444 | * is set. |
| 4445 | * @param tng_data is the trajectory to use. |
| 4446 | * @param frame_nr is the frame number of the data. |
| 4447 | * @param time is the time stamp of the frame (in seconds). |
| 4448 | * @param forces is a 1D array of data to add. The array should be of length |
| 4449 | * n_particles * 3. |
| 4450 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4451 | * must be initialised before using it. |
| 4452 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4453 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4454 | * @pre \code forces != 0 \endcode The pointer to the forces array must not |
| 4455 | * be a NULL pointer. |
| 4456 | * @details This function uses tng_util_generic_with_time_write() and will |
| 4457 | * create a forces data block if none exists. Forces are stored as three |
| 4458 | * values per frame and compressed using gzip compression. |
| 4459 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4460 | * actually written to disk until the frame set is finished or the TNG |
| 4461 | * trajectory is closed. |
| 4462 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4463 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4464 | */ |
| 4465 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_with_time_writecxx . . $ tng_util_force_with_time_write(2510400b998598cf).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4466 | int64_tcxx . . $ int64_t# frame_nr, |
| 4467 | double time, |
| 4468 | const float* forces); |
| 4469 | |
| 4470 | /** |
| 4471 | * @brief High-level function for adding data to forces data blocks at |
| 4472 | * double precision. If the frame is at the beginning of a frame set |
| 4473 | * the time stamp of the frame set is set. |
| 4474 | * @param tng_data is the trajectory to use. |
| 4475 | * @param frame_nr is the frame number of the data. |
| 4476 | * @param time is the time stamp of the frame (in seconds). |
| 4477 | * @param forces is a 1D array of data to add. The array should be of length |
| 4478 | * n_particles * 3. |
| 4479 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4480 | * must be initialised before using it. |
| 4481 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4482 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4483 | * @pre \code forces != 0 \endcode The pointer to the forces array must not |
| 4484 | * be a NULL pointer. |
| 4485 | * @details This function uses tng_util_generic_with_time_double_write() and will |
| 4486 | * create a forces data block if none exists. Forces are stored as three |
| 4487 | * values per frame and compressed using gzip compression. |
| 4488 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4489 | * actually written to disk until the frame set is finished or the TNG |
| 4490 | * trajectory is closed. |
| 4491 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4492 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4493 | */ |
| 4494 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_force_with_time_double_writecxx . . $ tng_util_force_with_time_double_write(59eaa4ba34ca7e79).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4495 | int64_tcxx . . $ int64_t# frame_nr, |
| 4496 | double time, |
| 4497 | const double* forces); |
| 4498 | |
| 4499 | /** |
| 4500 | * @brief High-level function for adding data to box shape data blocks. If the |
| 4501 | * frame is at the beginning of a frame set the time stamp of the frame set |
| 4502 | * is set. |
| 4503 | * @param tng_data is the trajectory to use. |
| 4504 | * @param frame_nr is the frame number of the data. |
| 4505 | * @param time is the time stamp of the frame (in seconds). |
| 4506 | * @param box_shape is a 1D array of data to add. The array should be of length 9. |
| 4507 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4508 | * must be initialised before using it. |
| 4509 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4510 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4511 | * @pre \code box_shape != 0 \endcode The pointer to the box_shape array must not |
| 4512 | * be a NULL pointer. |
| 4513 | * @details This function uses tng_util_generic_with_time_write() and will |
| 4514 | * create a box shape data block if none exists. Box shapes are stored as 9 |
| 4515 | * values per frame and compressed using TNG compression. |
| 4516 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4517 | * actually written to disk until the frame set is finished or the TNG |
| 4518 | * trajectory is closed. |
| 4519 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4520 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4521 | */ |
| 4522 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_with_time_writecxx . . $ tng_util_box_shape_with_time_write(2510400b998598cf).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4523 | int64_tcxx . . $ int64_t# frame_nr, |
| 4524 | double time, |
| 4525 | const float* box_shape); |
| 4526 | |
| 4527 | /** |
| 4528 | * @brief High-level function for adding data to box shape data blocks at |
| 4529 | * double precision. If the frame is at the beginning of a frame set the |
| 4530 | * time stamp of the frame set is set. |
| 4531 | * @param tng_data is the trajectory to use. |
| 4532 | * @param frame_nr is the frame number of the data. |
| 4533 | * @param time is the time stamp of the frame (in seconds). |
| 4534 | * @param box_shape is a 1D array of data to add. The array should be of length 9. |
| 4535 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4536 | * must be initialised before using it. |
| 4537 | * @pre \code frame_nr >= 0 \endcode The frame number to write must be >= 0. |
| 4538 | * @pre \code time >= 0 \endcode The time stamp must be >= 0. |
| 4539 | * @pre \code box_shape != 0 \endcode The pointer to the box_shape array must not |
| 4540 | * be a NULL pointer. |
| 4541 | * @details This function uses tng_util_generic_with_time_double_write() and will |
| 4542 | * create a box shape data block if none exists. Box shapes are stored as 9 |
| 4543 | * values per frame and compressed using TNG compression. |
| 4544 | * N.b. Since compressed data is written a whole block at a time the data is not |
| 4545 | * actually written to disk until the frame set is finished or the TNG |
| 4546 | * trajectory is closed. |
| 4547 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4548 | * has occured or TNG_CRITICAL (2) if a major error has occured. |
| 4549 | */ |
| 4550 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_box_shape_with_time_double_writecxx . . $ tng_util_box_shape_with_time_double_write(59eaa4ba34ca7e79).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4551 | int64_tcxx . . $ int64_t# frame_nr, |
| 4552 | double time, |
| 4553 | const double* box_shape); |
| 4554 | |
| 4555 | /** |
| 4556 | * @brief High-level function for getting the compression method and |
| 4557 | * multiplication factor of the last read frame of a specific data block. |
| 4558 | * @param tng_data is the trajectory to use. |
| 4559 | * @param block_id is the ID number of the block containing the data of |
| 4560 | * interest. |
| 4561 | * @param codec_id will be set to the value of the codec_id of the |
| 4562 | * compression of the data block. See tng_compression for more details. |
| 4563 | * @param factor will be set to the multiplication factor applied to |
| 4564 | * the values before compression, in order to get integers from them. |
| 4565 | * factor is 1/precision. |
| 4566 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4567 | * must be initialised before using it. |
| 4568 | * @pre \code codec_id != 0 \endcode The pointer to the returned codec id |
| 4569 | * must not be a NULL pointer. |
| 4570 | * @pre \code factor != 0 \endcode The pointer to the returned multiplication |
| 4571 | * factor must not be a NULL pointer. |
| 4572 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4573 | * has occured (such as the block_id not found) or TNG_CRITICAL (2) if a major error |
| 4574 | * has occured. |
| 4575 | */ |
| 4576 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_frame_current_compression_getcxx . . $ tng_util_frame_current_compression_get(6c9b22367368cf80).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4577 | int64_tcxx . . $ int64_t# block_id, |
| 4578 | int64_tcxx . . $ int64_t#* codec_id, |
| 4579 | double* factor); |
| 4580 | |
| 4581 | /** @brief High-level function for determining the next frame with data and what |
| 4582 | * data blocks have data for that frame. The search can be limited to certain |
| 4583 | * data blocks. |
| 4584 | * @param tng_data is the trajectory to use. |
| 4585 | * @param current_frame is the frame that was last read, from where to start |
| 4586 | * looking for data. |
| 4587 | * @param n_requested_data_block_ids is the number of data blocks listed in |
| 4588 | * requested_data_block_ids. If this is 0 all data blocks will be taken into |
| 4589 | * account. |
| 4590 | * @param requested_data_block_ids is an array of data blocks to look for. |
| 4591 | * @param next_frame will be set to the next frame with data. |
| 4592 | * @param n_data_blocks_in_next_frame is set to the number of data blocks with |
| 4593 | * data for next_frame. |
| 4594 | * @param data_block_ids_in_next_frame is set to an array (of length |
| 4595 | * n_data_blocks_in_next_frame) that lists the data block IDs with data for |
| 4596 | * next_frame. It must be pointing at NULL or previously allocated memory. |
| 4597 | * Memory for the array is reallocated by this function using realloc(). |
| 4598 | * The memory must be freed by the client afterwards or |
| 4599 | * there will be a memory leak. |
| 4600 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4601 | * must be initialised before using it. |
| 4602 | * @pre \code next_frame != 0 \endcode The pointer to the next frame must not |
| 4603 | * be NULL. |
| 4604 | * @pre \code n_data_blocks_in_next_frame != 0 \endcode The pointer to |
| 4605 | * n_data_blocks_in_next_frame must not be NULL. |
| 4606 | * @pre \code *data_block_ids_in_next_frame != 0 \endcode The pointer to the |
| 4607 | * list of data block IDs must not be NULL. |
| 4608 | * @pre \code n_requested_data_block_ids == 0 || requested_data_block_ids != 0 \endcode |
| 4609 | * If the number of requested data blocks != 0 then the array of data block IDs must not be NULL. |
| 4610 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4611 | * has occured (such as no next frame found) or TNG_CRITICAL (2) if a major error |
| 4612 | * has occured. |
| 4613 | */ |
| 4614 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! |
| 4615 | tng_util_trajectory_next_frame_present_data_blocks_findcxx . . $ tng_util_trajectory_next_frame_present_data_blocks_find(34d783a8062f8296).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4616 | int64_tcxx . . $ int64_t# current_frame, |
| 4617 | int64_tcxx . . $ int64_t# n_requested_data_block_ids, |
| 4618 | const int64_tcxx . . $ int64_t#* requested_data_block_ids, |
| 4619 | int64_tcxx . . $ int64_t#* next_frame, |
| 4620 | int64_tcxx . . $ int64_t#* n_data_blocks_in_next_frame, |
| 4621 | int64_tcxx . . $ int64_t#** data_block_ids_in_next_frame); |
| 4622 | |
| 4623 | |
| 4624 | /** @brief Finds the frame set of the specified frame in order to prepare for writing |
| 4625 | * after it. |
| 4626 | * @param tng_data is the trajectory to use. |
| 4627 | * @param prev_frame is the frame after which to start appending. |
| 4628 | * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) |
| 4629 | * must be initialised before using it. |
| 4630 | * @pre \code prev_frame >= 0 \endcode The previous frame must not be negative. |
| 4631 | * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error |
| 4632 | * has occured (such as not finding the requested frame) or TNG_CRITICAL (2) |
| 4633 | * if a major error has occured. |
| 4634 | */ |
| 4635 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_prepare_append_after_framecxx . . $ tng_util_prepare_append_after_frame(cb6749fc713494d7).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4636 | int64_tcxx . . $ int64_t# prev_frame); |
| 4637 | |
| 4638 | |
| 4639 | /** @brief Get the number of frames containing data of a specific type. |
| 4640 | * @param tng_data is the trajectory to use. |
| 4641 | * @param block_id is the id of the block of the data type. |
| 4642 | * @param n_frames is set to the number of frames containing data of |
| 4643 | * the requested data type. |
| 4644 | * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major |
| 4645 | * error has occured. |
| 4646 | */ |
| 4647 | tng_function_statuscxx . . $ tng_function_status# DECLSPECDLLEXPORTcxx . . $ `src/external/tng_io/include/tng/tng_io.h:381:17`! tng_util_num_frames_with_data_of_block_id_getcxx . . $ tng_util_num_frames_with_data_of_block_id_get(f5bf858a7200dfaa).(tng_trajectory_tcxx . . $ tng_trajectory_t# tng_data, |
| 4648 | int64_tcxx . . $ int64_t# block_id, |
| 4649 | int64_tcxx . . $ int64_t#* n_frames); |
| 4650 | /** @} */ /* end of group2 */ |
| 4651 | |
| 4652 | |
| 4653 | #ifdef __cpluspluscxx . . $ `<built-in>:478:9`! |
| 4654 | } /* end extern "C" */ |
| 4655 | #endif |
| 4656 | |
| 4657 | #endif /* TNG_IO_H */ |