Home | History | Annotate | Download | only in common

Lines Matching defs:object

15 // Object.hpp: Defines the Object base class that provides
32 class [[clang::lto_visibility_public]] Object
35 Object();
46 virtual ~Object();
56 static std::set<Object*> instances; // For leak checking
60 class NamedObject : public Object
73 BindingPointer() : object(nullptr) { }
75 BindingPointer(const BindingPointer<ObjectType> &other) : object(nullptr)
77 operator=(other.object);
82 ASSERT(!object); // Objects have to be released before the resource manager is destroyed, so they must be explicitly cleaned up. Assign null to all binding pointers to make the reference count go to zero.
88 if(object) object->release();
90 object = newObject;
92 return object;
97 return operator=(other.object);
100 operator ObjectType*() const { return object; }
101 ObjectType *operator->() const { return object; }
102 GLuint name() const { return object ? object->name : 0; }
103 bool operator!() const { return !object; }
106 ObjectType *object;