docs
This commit is contained in:
parent
01175e16a6
commit
3a61c4b2a1
@ -12,6 +12,12 @@
|
|||||||
namespace uvw {
|
namespace uvw {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Common class for almost all the resources available in `uvw`.
|
||||||
|
*
|
||||||
|
* This is the base class for handles and requests.<br/>
|
||||||
|
* It mainly acts as a wrapper around a libuv's data structure.
|
||||||
|
*/
|
||||||
template<typename T, typename U>
|
template<typename T, typename U>
|
||||||
class Resource: public Emitter<T>, public Self<T> {
|
class Resource: public Emitter<T>, public Self<T> {
|
||||||
template<typename, typename>
|
template<typename, typename>
|
||||||
@ -52,6 +58,10 @@ public:
|
|||||||
Resource& operator=(const Resource &) = delete;
|
Resource& operator=(const Resource &) = delete;
|
||||||
Resource& operator=(Resource &&) = delete;
|
Resource& operator=(Resource &&) = delete;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the loop from which the resource was originated.
|
||||||
|
* @return A reference to a loop instance.
|
||||||
|
*/
|
||||||
Loop& loop() const noexcept { return *pLoop; }
|
Loop& loop() const noexcept { return *pLoop; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user