Trisurf Monte Carlo simulator
mihaf
2014-06-03 c60a49ec71004bad2af9ca8b3240c035a7ab8d2a
commit | author | age
d7639a 1 #ifndef _BOND_H
SP 2 #define _BOND_H
3
4
5 /** Initialize bond list with zero values
6  *    @param *blist is a pointer to a ts_bond_list structure
7  */
a10dd5 8 ts_bond_list *init_bond_list();
d7639a 9
SP 10 /** @brief Adds bond in the bond list
11  *
12  *  Function allocates space for *bond member of ts_bond_list. It then sets pointers to two vertices *vtx1 and *vtx2 that
13  *  are members of the list.
14  *    @param *blist is a pointer to initialized ts_bond_list.
15  *    @param *vtx1 is a first vertex of a bond
16  *    @param *vtx2 is a second vertex of a bond
17  *    @returns TS_SUCCESS on success, TS_FAIL otherwise. If memory cannot be allocated
18  *  this is considered as fatal error and execution stops, returning error code to the operating
19  *  system.
20  */
a10dd5 21 ts_bond *bond_add(ts_bond_list *blist, ts_vertex *vtx1, ts_vertex *vtx2);
d7639a 22
58230a 23 ts_bool bond_vector(ts_bond *bond);
a10dd5 24 ts_bool bond_list_free(ts_bond_list *blist);
d7639a 25
SP 26
27
28 #endif