HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_Output.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: OP_Input.h (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef _OP_Output_h_
13 #define _OP_Output_h_
14 
15 #include "OP_API.h"
16 #include "OP_ConnectorId.h"
17 #include "OP_DataTypes.h"
18 
19 #include <UT/UT_String.h>
20 #include <UT/UT_ValArray.h>
21 
22 
23 class OP_NetworkBoxItem;
24 
26 {
27 public:
28  OP_Output(OP_ConnectorId& new_id);
29  ~OP_Output();
30 
31  int64 getMemoryUsage(bool inclusive) const
32  {
33  int64 mem = inclusive ? sizeof(*this) : 0;
34  mem += myOutputs.getMemoryUsage(false);
35  return mem;
36  }
37 
38  int getNumOutputs() const;
39  OP_NetworkBoxItem *getOutput(int index);
40  const OP_NetworkBoxItem *getOutput(int index) const;
41 
42  void appendOutput(OP_NetworkBoxItem *item);
43  bool remove(OP_NetworkBoxItem *item);
44 
45  void getId(int& id);
46  void setId(int id);
47 
49  { return myId; }
50 
51 private:
52  OP_NetworkBoxItemList myOutputs;
53  OP_ConnectorId myId;
54 };
55 
56 #endif
57 
GLuint index
Definition: glew.h:1814
int64 getMemoryUsage(bool inclusive) const
Definition: OP_Output.h:31
OP_ConnectorId getId()
Definition: OP_Output.h:48
long long int64
Definition: SYS_Types.h:116
#define OP_API
Definition: OP_API.h:10