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:1291
HOM_PerfMonEvent(const HOM_PerfMonEvent &event)
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
struct _cl_event * event
Definition: glcorearb.h:2961
virtual void stop()=0
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLuint const GLchar * name
Definition: glcorearb.h:786
virtual ~HOM_PerfMonEvent()
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
Definition: core.h:1131
type
Definition: core.h:1059