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