HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_PerfMonEvent.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  * COMMENTS:
7  */
8 
9 #ifndef __HOM_PerfMonEvent_h__
10 #define __HOM_PerfMonEvent_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include <string>
17 
18 SWIGOUT(%rename(PerfMonEvent) HOM_PerfMonEvent;)
19 
21 {
22 public:
24  { HOM_CONSTRUCT_OBJECT(this) }
26  { HOM_CONSTRUCT_OBJECT(this) }
28  { HOM_DESTRUCT_OBJECT(this) }
29 
30  virtual std::string __repr__() = 0;
31 
32  // These methods are deprecated.
33  SWIGOUT(%warnfilter(321) id;)
34  virtual int id() = 0;
35  virtual std::string name() = 0;
36 
37  SWIGOUT(%warnfilter(321) object;)
38  virtual std::string object() = 0;
39  virtual bool isAutoNestEnabled() = 0;
40 
41  virtual std::vector<double> stop() = 0;
42 
43  // This method is deprecated. Use isRunning() instead.
44  virtual bool isTiming() = 0;
45  virtual bool isRunning() = 0;
46 
47  virtual double startTime() = 0;
48 
49  // Enter and exit methods so that the class
50  // can be used in `with` statements.
51  virtual HOM_PerfMonEvent *__enter__() = 0;
52  SWIGOUT(%ignore opaqueExit;)
53  virtual void opaqueExit() = 0;
54 #ifdef SWIG
55 %extend
56 {
57  // We can ignore the type, value, and traceback Python objects.
58  SWIGOUT(virtual void __exit__(
59  InterpreterObject type, InterpreterObject value,
60  InterpreterObject traceback)
61  { self->opaqueExit(); };)
62 }
63 #endif
64 
65 };
66 
67 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1238
HOM_PerfMonEvent(const HOM_PerfMonEvent &event)
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:353
GLuint const GLchar * name
Definition: glcorearb.h:785
struct _cl_event * event
Definition: glcorearb.h:2960
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
virtual void stop()=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1237
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
virtual ~HOM_PerfMonEvent()
GLsizei const GLfloat * value
Definition: glcorearb.h:823