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 1806 - (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 : jhr 1716 enum {
26 : jhr 1714 nrrdTypeLength = nrrdTypeLast+1 //!< nrrd typecode for dynamic sequence lengths
27 :     };
28 :    
29 : jhr 1692 /* description of an output */
30 :     typedef struct {
31 :     const char *name; //!< name of output variable
32 :     int nrrdType; //!< nrrd type code for elements
33 :     int nDims; //!< number of dimensions (order) of tensor/sequence types
34 :     int *dims; //!< array of dimension sizes in slowest to fastest; the
35 : jhr 1699 //!< value -1 is used for a dynamically sized dimension,
36 :     //!< which will always be the slowest dimension.
37 : jhr 1692 } OutputDesc_t;
38 :    
39 : jhr 1115 /* hooks generated by the compiler for the runtime */
40 : jhr 1716 struct struct_strand {
41 : jhr 1640 char *name; //!< name of strand
42 :     size_t stateSzb; //!< size of strand state in bytes
43 :     #if defined(DIDEROT_TARGET_CL)
44 :     size_t shadowStrandSzb; //!< shadow strand size
45 :     #endif
46 :     update_method_t update; //!< update method
47 :     stabilize_method_t stabilize; //!< stabilize method
48 :     #if defined(DIDEROT_TARGET_CL)
49 :     convert_method_t strandCopy; //!< method for copying
50 :     #endif
51 : jhr 1716 };
52 : jhr 1115
53 :     #endif /* !_DIDEROT_STRANDS_H_ */

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