Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfTask.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of mdcore.
3 * Coypright (c) 2013 Pedro Gonnet (pedro.gonnet@durham.ac.uk)
4 * Coypright (c) 2017 Andy Somogyi (somogyie at indiana dot edu)
5 * Copyright (c) 2022-2024 T.J. Sego
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published
9 * by the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 ******************************************************************************/
21
26
27#ifndef _MDCORE_INCLUDE_TFTASK_H_
28#define _MDCORE_INCLUDE_TFTASK_H_
29
30#include "tf_platform.h"
31
32
33/* some constants */
34#define task_max_unlock 124
35
36
38enum {
39 task_type_none = 0,
40 task_type_self,
41 task_type_pair,
42 task_type_sort,
43 task_type_bonded,
44 task_type_count
45};
46
47
49enum {
50 task_subtype_none = 0,
51 task_subtype_real,
52 task_subtype_count
53};
54
55
56namespace TissueForge {
57
58
60 typedef struct task {
61
63 short int type, subtype;
64
66 int wait;
67
69 int flags;
70
72 int i, j;
73
76
78 struct task *unlock[task_max_unlock];
79
81
82 /* associated functions */
83
91 HRESULT task_addunlock(struct task *ta, struct task *tb);
92
93};
94
95#include <iostream>
96std::ostream& operator<<(std::ostream& os, const struct TissueForge::task*);
97
98
99#endif // _MDCORE_INCLUDE_TFTASK_H_
Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
Definition tfAngleConfig.h:26
HRESULT task_addunlock(struct task *ta, struct task *tb)
Add a task dependency.
struct TissueForge::task task
Definition tfTask.h:60
struct task * unlock[124]
Definition tfTask.h:78
int i
Definition tfTask.h:72
short int type
Definition tfTask.h:63
int nr_unlock
Definition tfTask.h:75
int wait
Definition tfTask.h:66
int flags
Definition tfTask.h:69
int32_t HRESULT
Definition tf_port.h:255