29 #ifndef CDPL_VIS_CAIROPOINTER_HPP
30 #define CDPL_VIS_CAIROPOINTER_HPP
146 template <
typename T>
191 bool operator!() const throw();
198 T& operator*() const throw();
208 T* operator->() const throw();
244 template <typename
T>
249 template <
typename T>
254 template <
typename T>
260 template <
typename T>
263 if (
this != &other) {
271 template <
typename T>
277 template <
typename T>
283 template <
typename T>
289 template <
typename T>
295 template <
typename T>
303 template <
typename T>
struct _cairo_surface cairo_surface_t
Definition: CairoPointer.hpp:36
struct _cairo cairo_t
Definition: CairoPointer.hpp:35
struct _cairo_pattern cairo_pattern_t
Definition: CairoPointer.hpp:37
Definition of the preprocessor macro CDPL_VIS_API.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
A smart pointer managing the lifetime of allocated Cairo 2D Graphics Library data structures.
Definition: CairoPointer.hpp:148
void reset(T *ptr=0)
Replaces the currently managed object with the object pointed to by ptr.
Definition: CairoPointer.hpp:304
T * get() const
Returns a pointer to the managed object.
Definition: CairoPointer.hpp:290
T * operator->() const
Returns a pointer to the managed object.
Definition: CairoPointer.hpp:284
T * release()
Releases the currently managed object.
Definition: CairoPointer.hpp:296
bool operator!() const
Tells whether this CairoPointer references an object or holds a null pointer.
Definition: CairoPointer.hpp:272
CairoPointer & operator=(const CairoPointer &ptr)
Assignment operator.
Definition: CairoPointer.hpp:261
CairoPointer(T *ptr=0)
Constructs a CairoPointer that manages the reference count of the object pointed to by ptr.
Definition: CairoPointer.hpp:245
T & operator*() const
Returns a non-const reference to the managed object.
Definition: CairoPointer.hpp:278
~CairoPointer()
Destroys the CairoPointer.
Definition: CairoPointer.hpp:255
constexpr unsigned int T
Specifies Hydrogen (Tritium).
Definition: AtomType.hpp:67
constexpr unsigned int p
Specifies that the stereocenter has p configuration.
Definition: CIPDescriptor.hpp:121
The namespace of the Chemical Data Processing Library.
static void destroy(cairo_pattern_t *p)
Decrements the reference count of the object pointed to by p by 1.
static cairo_pattern_t * reference(cairo_pattern_t *p)
Increments the reference count of the object pointed to by p by 1.
static void destroy(cairo_surface_t *p)
Decrements the reference count of the object pointed to by p by 1.
static cairo_surface_t * reference(cairo_surface_t *p)
Increments the reference count of the object pointed to by p by 1.
static cairo_t * reference(cairo_t *p)
Increments the reference count of the object pointed to by p by 1.
static void destroy(cairo_t *p)
Decrements the reference count of the object pointed to by p by 1.
Traits class providing the reference-count management functions for a particular Cairo 2D Graphics Li...
Definition: CairoPointer.hpp:59