-#ifndef __DALI_INTRUSIVE_PTR_H__
-#define __DALI_INTRUSIVE_PTR_H__
+#ifndef DALI_INTRUSIVE_PTR_H
+#define DALI_INTRUSIVE_PTR_H
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
/**
- * @brief Templated intrusive pointer class
+ * @brief Templated intrusive pointer class.
*
* Uses the Dali:RefObject type with actual reference counting.
* The object is responsible for destroying itself.
* @brief Constructor to attach existing object.
*
* @SINCE_1_0.0
- * @param[in] p Pointer to object,
+ * @param[in] p Pointer to object
*/
IntrusivePtr( T* p ) : mPtr( p )
{
/**
* @brief Copy constructor.
* @SINCE_1_0.0
+ * @param[in] rhs Const reference to an IntrusivePtr
*/
IntrusivePtr( IntrusivePtr const& rhs ) : mPtr( rhs.mPtr )
{
/**
* @brief Destructor.
*
- * Object will self-destruct if reference count is zero
+ * Object will self-destruct if reference count is zero.
* @SINCE_1_0.0
*/
~IntrusivePtr()
}
/**
- * @brief Get pointer to reference counted object.
+ * @brief Gets pointer to reference counted object.
*
* @SINCE_1_0.0
* @return Pointer to reference counted object
}
/**
- * @brief Detach pointer from intrusive ptr counting.
+ * @brief Detaches pointer from intrusive ptr counting.
*
* Use with care.
* @SINCE_1_0.0
+ * @return Pointer to reference counted object
*/
T* Detach()
{
void ThisIsSaferThanReturningVoidStar() const {}
/**
- * @brief Internal swap function
+ * @brief Internal swap function.
* @SINCE_1_0.0
*/
void Swap( IntrusivePtr& rhs )
}
/**
- * @brief Comparison overrides of objects wrapped by intrusive pointers
+ * @brief Comparison overrides of objects wrapped by intrusive pointers.
*
* @SINCE_1_0.0
* @param[in] lhs Intrusive pointer to compare with
}
/**
- * @brief Comparison overrides of objects wrapped by intrusive pointers
+ * @brief Comparison overrides of objects wrapped by intrusive pointers.
*
* @SINCE_1_0.0
* @param[in] lhs Object to compare with
}
/**
- * @brief Comparison overrides of objects wrapped by intrusive pointers
+ * @brief Comparison overrides of objects wrapped by intrusive pointers.
*
* @SINCE_1_0.0
* @param[in] lhs Object to compare with
*/
} // namespace Dali
-#endif /* __DALI_INTRUSIVE_PTR_H__ */
+#endif // DALI_INTRUSIVE_PTR_H