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