QGVGvcPrivate.h
Go to the documentation of this file.
1 #ifndef QGVGVCPRIVATE_H
2 #define QGVGVCPRIVATE_H
3 
4 #include <gvc.h>
5 
6 class QGVGvcPrivate {
7  public:
8  QGVGvcPrivate(GVC_t* context = NULL);
9 
10  void setContext(GVC_t* context);
11  GVC_t* context() const;
12 
13  // operators to implicit cast from QGVGvcPrivate* into GVC_t* seems not to
14  // work, because of typedef GVC_t
15  // inline operator const GVC_t* () const
16  // {
17  // return const_cast<VC_t*>(context());
18  // }
19 
20  // inline operator struct GVC_t* ()
21  // {
22  // return context();
23  // }
24 
25  private:
26  GVC_t* _context;
27 };
28 
29 #endif // QGVGVCPRIVATE_H
void setContext(GVC_t *context)
Definition: QGVGvcPrivate.cpp:5
QGVGvcPrivate(GVC_t *context=NULL)
Definition: QGVGvcPrivate.cpp:3
Definition: QGVGvcPrivate.h:6
GVC_t * context() const
Definition: QGVGvcPrivate.cpp:7