Class Object

Inheritance Relationships

Derived Types

Class Documentation

class Object

Reference counted object base class.

Subclassed by nanogui::Layout, nanogui::Theme, nanogui::Widget

Public Functions

Object()

Default constructor.

Object(const Object&)

Copy constructor.

int getRefCount() const

Return the current reference count.

void incRef() const

Increase the object’s reference count by one.

void decRef(bool dealloc = true) const

Decrease the reference count of the object and possibly deallocate it.

The object will automatically be deallocated once the reference count reaches zero.

Protected Functions

virtual ~Object()

Virtual protected deconstructor. (Will only be called by ref)