Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/vis12/src/include/Diderot/strands.h
ViewVC logotype

Annotation of /branches/vis12/src/include/Diderot/strands.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1978 - (view) (download) (as text)

1 : jhr 1115 /*! \file strands.h
2 :     *
3 :     * \author John Reppy
4 :     */
5 :    
6 :     /*
7 :     * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
8 :     * All rights reserved.
9 :     */
10 :    
11 :     #ifndef _DIDEROT_STRANDS_H_
12 :     #define _DIDEROT_STRANDS_H_
13 :    
14 :     #ifndef _DIDEROT_TYPES_H_
15 : jhr 1640 # include "Diderot/types.h"
16 : jhr 1115 #endif
17 : jhr 1640 #ifndef _DIDEROT_WORLD_H_
18 :     # include "Diderot/world.h"
19 :     #endif
20 : jhr 1115
21 : jhr 1806 typedef StrandStatus_t (*update_method_t)(void *glob, void *inSt, void *outSt);
22 :     typedef void (*stabilize_method_t)(void *glob, void *inSt, void *outSt);
23 : jhr 1714 typedef void (*convert_method_t)(void *st, void *);
24 : jhr 1115
25 :     /* hooks generated by the compiler for the runtime */
26 : jhr 1716 struct struct_strand {
27 : jhr 1640 char *name; //!< name of strand
28 :     size_t stateSzb; //!< size of strand state in bytes
29 :     #if defined(DIDEROT_TARGET_CL)
30 :     size_t shadowStrandSzb; //!< shadow strand size
31 :     #endif
32 :     update_method_t update; //!< update method
33 :     stabilize_method_t stabilize; //!< stabilize method
34 :     #if defined(DIDEROT_TARGET_CL)
35 :     convert_method_t strandCopy; //!< method for copying
36 :     #endif
37 : jhr 1716 };
38 : jhr 1115
39 :     #endif /* !_DIDEROT_STRANDS_H_ */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0