Jamoma API  0.6.0.a19
TTGraph.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup graphLibrary
4  *
5  * @brief Jamoma Asynchronous Object Graph Layer
6  *
7  * @details Creates a wrapper for TTObjectBases that can be used to build a control graph for asynchronous message passing
8  *
9  * @authors Timothy Place
10  *
11  * @copyright Copyright © 2010 by Timothy Place @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #ifndef __TTGRAPH_H__
18 #define __TTGRAPH_H__
19 
20 #include "TTDSP.h"
21 
22 
23 #ifdef TT_PLATFORM_WIN
24  #include "windows.h"
25  #if defined( TTGRAPH_EXPORTS )
26  #define TTGRAPH_EXPORT __declspec(dllexport)
27  #else
28  #define TTGRAPH_EXPORT __declspec(dllimport)
29  #endif
30 
31  #include <algorithm>
32  using namespace std;
33 #else // TT_PLATFORM_MAC
34  #ifdef TTGRAPH_EXPORTS
35  #define TTGRAPH_EXPORT __attribute__((visibility("default")))
36  #else
37  #define TTGRAPH_EXPORT
38  #endif
39 #endif
40 
41 
42 /******************************************************************************************/
43 
44 
45 /** \ingroup bitmasks
46  Flags to be used as a bitmask.
47 */
49  kTTGraphFlagsNone = 0x00, ///< No flags are set.
50 };
51 
52 
53 // data passed to all nodes in the graph when the graph is initialized
54 class TTGraphInitData {
55 public:
56  TTUInt16 vectorSize; // the global/recommended/initial vectorSize (which can be overriden during process)
57 };
58 
59 
60 class TTGraphObjectBase;
62 typedef std::vector<TTGraphObjectBasePtr> TTGraphObjectBaseVector;
63 typedef TTGraphObjectBaseVector::iterator TTGraphObjectBaseIter;
64 
65 //#include "TTGraphInlet.h"
66 //#include "TTGraphOutlet.h"
67 //class TTGraphOutlet;
68 
69 //#include "TTGraphDescription.h"
70 
71 /******************************************************************************************/
72 
73 TTGRAPH_EXPORT void TTGraphInit(void);
74 
75 
76 #endif // __TTGRAPH_H__
The TTGraphObjectBase wraps a TTDSP object such that it is possible to build a dynamic graph of audio...
std::uint16_t TTUInt16
16 bit unsigned integer
Definition: TTBase.h:176
STL namespace.
No flags are set.
Definition: TTGraph.h:49
Jamoma DSP Library.
TTGraphFlags
Flags to be used as a bitmask.
Definition: TTGraph.h:48