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_Output.h (C++)
7  */
8 
9 #ifndef _OP_Output_h_
10 #define _OP_Output_h_
11 
12 #include "OP_API.h"
13 #include "OP_ConnectorId.h"
14 #include "OP_DataTypes.h"
15 
16 #include <UT/UT_String.h>
17 #include <UT/UT_ValArray.h>
18 
19 
20 class OP_NetworkBoxItem;
21 
23 {
24 public:
25  OP_Output(OP_ConnectorId& new_id);
26  ~OP_Output();
27 
28  int64 getMemoryUsage(bool inclusive) const
29  {
30  int64 mem = inclusive ? sizeof(*this) : 0;
31  mem += myOutputs.getMemoryUsage(false);
32  return mem;
33  }
34 
35  int getNumOutputs() const;
36  OP_NetworkBoxItem *getOutput(int index);
37  const OP_NetworkBoxItem *getOutput(int index) const;
38 
39  void appendOutput(OP_NetworkBoxItem *item);
40  bool remove(OP_NetworkBoxItem *item);
41 
42  void getId(int& id);
43 
45  { return myId; }
46 
47 private:
48  OP_NetworkBoxItemList myOutputs;
49  OP_ConnectorId myId;
50 };
51 
52 #endif
53 
int64 getMemoryUsage(bool inclusive) const
Definition: OP_Output.h:28
OP_ConnectorId getId()
Definition: OP_Output.h:44
long long int64
Definition: SYS_Types.h:116
#define OP_API
Definition: OP_API.h:10
GLuint index
Definition: glcorearb.h:785