HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 <UT/UT_Defines.h>
17 #include <UT/UT_String.h>
18 #include <UT/UT_ValArray.h>
19 #include "OP_ConnectorId.h"
20 #include "OP_DataTypes.h"
21 
22 class OP_NetworkBoxItem;
23 
25 {
26 public:
27  OP_Output(OP_ConnectorId& new_id);
28  ~OP_Output();
29 
30  int64 getMemoryUsage(bool inclusive) const
31  {
32  int64 mem = inclusive ? sizeof(*this) : 0;
33  mem += myOutputs.getMemoryUsage(false);
34  return mem;
35  }
36 
37  int getNumOutputs() const;
38  OP_NetworkBoxItem *getOutput(int index);
39  const OP_NetworkBoxItem *getOutput(int index) const;
40 
41  void appendOutput(OP_NetworkBoxItem *item);
42  bool remove(OP_NetworkBoxItem *item);
43 
44  void getId(int& id);
45  void setId(int id);
46 
48  { return myId; }
49 
50 private:
51  OP_NetworkBoxItemList myOutputs;
52  OP_ConnectorId myId;
53 };
54 
55 #endif
56 
int64 getMemoryUsage(bool inclusive) const
Definition: OP_Output.h:30
OP_ConnectorId getId()
Definition: OP_Output.h:47
long long int64
Definition: SYS_Types.h:100
#define OP_API
Definition: OP_API.h:10
GLuint index
Definition: glcorearb.h:785