Home | History | Annotate | Download | only in util

Lines Matching defs:UniquePtr

32 class UniquePtr : public NonCopyable {
35 * Construct a UniquePtr instance that does not own any object.
37 UniquePtr();
40 * Constructs a UniquePtr instance that owns the given object, and will free
41 * its memory when the UniquePtr is destructed.
47 UniquePtr(ObjectType *object);
50 * Constructs a new UniquePtr via moving the Object from another UniquePtr.
52 * @param other UniquePtr instance to move into this object
54 UniquePtr(UniquePtr<ObjectType>&& other);
57 * Constructs a new UniquePtr via moving the Object from another UniquePtr.
61 * @param other UniquePtr instance to move and convert into this object.
64 UniquePtr(UniquePtr<OtherObjectType>&& other);
69 ~UniquePtr();
72 * Determines if this UniquePtr owns an object, or references null.
95 * Replaces the object owned by the UniquePtr by an object pointed by a given
98 * the UniquePtr, obtained via get(), is illegal.
100 * @param object the object to replace the ownership of the UniquePtr
127 UniquePtr<ObjectType>& operator=(UniquePtr<ObjectType>&& other);
133 friend class UniquePtr;
141 * returns a UniquePtr that owns the object. This function is similar to
147 UniquePtr<ObjectType> MakeUnique(Args&&... args);
155 UniquePtr<ObjectType> MakeUniqueZeroFill();