29 #ifndef CDPL_VIS_CAIROPOINTER_HPP
30 #define CDPL_VIS_CAIROPOINTER_HPP
134 template <
typename T>
179 bool operator!() const throw();
186 T& operator*() const throw();
196 T* operator->() const throw();
232 template <typename
T>
237 template <
typename T>
242 template <
typename T>
248 template <
typename T>
251 if (
this != &other) {
259 template <
typename T>
265 template <
typename T>
271 template <
typename T>
277 template <
typename T>
283 template <
typename T>
291 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 data structures.
Definition: CairoPointer.hpp:136
void reset(T *ptr=0)
Replaces the current object reference with a reference to the object pointed to by ptr.
Definition: CairoPointer.hpp:292
T * get() const
Returns a pointer to the referenced object.
Definition: CairoPointer.hpp:278
T * operator->() const
Returns a pointer to the referenced object.
Definition: CairoPointer.hpp:272
T * release()
Releases the currently referenced object.
Definition: CairoPointer.hpp:284
bool operator!() const
Tells whether this CairoPointer references an object or holds a null pointer.
Definition: CairoPointer.hpp:260
CairoPointer & operator=(const CairoPointer &ptr)
Assignment operator.
Definition: CairoPointer.hpp:249
CairoPointer(T *ptr=0)
Constructs a CairoPointer that manages the reference count of the object pointed to by ptr.
Definition: CairoPointer.hpp:233
T & operator*() const
Returns a non-const reference to the pointed-to object.
Definition: CairoPointer.hpp:266
~CairoPointer()
Destroys the CairoPointer.
Definition: CairoPointer.hpp:243
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.
Definition: CairoPointer.hpp:47