Loading...
Searching...
No Matches
Referenced.h
Go to the documentation of this file.
#pragma once
#include <globjects/globjects_api.h>
#include <globjects/base/HeapOnly.h>
namespace globjects
{
class GLOBJECTS_API Referenced : public HeapOnly
{
public:
Referenced();
void ref() const;
void unref() const;
int refCounter() const;
private:
Referenced(const Referenced &) = delete;
Referenced & operator=(const Referenced &) = delete;
protected:
virtual ~Referenced();
private:
mutable int m_refCounter;
};
} // namespace globjects
HeapOnly.h
globjects::HeapOnly
The HeapOnly class Restricts creation to heap.
Definition HeapOnly.h:17
globjects::Referenced
Superclass for all classes that use reference counting in globjects.
Definition Referenced.h:23
globjects::Referenced::unref
void unref() const
globjects::Referenced::ref
void ref() const
globjects::Referenced::refCounter
int refCounter() const
globjects::Referenced::~Referenced
virtual ~Referenced()
globjects::Referenced::Referenced
Referenced()
globjects
Contains all the classes that wrap OpenGL functionality.