HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  virtual int id() = 0;
34  virtual std::string name() = 0;
35 
36  virtual std::string object() = 0;
37  virtual bool isAutoNestEnabled() = 0;
38 
39  virtual std::vector<double> stop() = 0;
40 
41  // This method is deprecated. Use isRunning() instead.
42  virtual bool isTiming() = 0;
43  virtual bool isRunning() = 0;
44 
45  virtual double startTime() = 0;
46 
47  // Enter and exit methods so that the class
48  // can be used in `with` statements.
49  virtual HOM_PerfMonEvent *__enter__() = 0;
50  SWIGOUT(%ignore opaqueExit;)
51  virtual void opaqueExit() = 0;
52 #ifdef SWIG
53 %extend
54 {
55  // We can ignore the type, value, and traceback Python objects.
56  SWIGOUT(virtual void __exit__(
57  InterpreterObject type, InterpreterObject value,
58  InterpreterObject traceback)
59  { self->opaqueExit(); };)
60 }
61 #endif
62 
63 };
64 
65 #endif
virtual std::string __repr__()=0
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:983
HOM_PerfMonEvent(const HOM_PerfMonEvent &event)
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
struct _cl_event * event
Definition: glcorearb.h:2960
GLuint id
Definition: glcorearb.h:654
virtual void stop()=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:982
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual ~HOM_PerfMonEvent()
GLsizei const GLfloat * value
Definition: glcorearb.h:823
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107