top | up | prev | next

Handle Class

Definition at line 19 of Handle.hpp

Constructors

Handle(Handle&& that)
Handle(int handle_)

Member Functions

operator int() const
void operator=(Handle&& that)

Member Variables

int handle

Constructor Details

Handle Constructor

soulng::util::Handle::Handle(Handle && that)

Definition at line 32 of Handle.hpp :
33 {
34     handle = that.handle;
35     that.handle = -1;
36 }



Handle Constructor

soulng::util::Handle::Handle(int handle_)

Definition at line 22 of Handle.hpp :
22 : handle(handle_)
23 {
24 }



Member Function Details

operator int Member Function

soulng::util::Handle::operator int() const

Definition at line 46 of Handle.hpp :
46 { return handle; }


operator= Member Function

void soulng::util::Handle::operator=(Handle && that)

Definition at line 37 of Handle.hpp :
38 {
39     if (handle != -1)
40     {
41         close(handle);
42     }
43     handle = that.handle;
44     that.handle = -1;
45 }



top | up | prev | next