module charge.sys.resource

Source file for Resource and Pool.

Code Map

//! Source file for Resource and Pool.
module charge.sys.resource;


//! Reference base class for all Resources.
class Resource
{
public:
	url: string;
	name: string;


public:
	fn incRef() { }
	fn decRef() { }


protected:
	static fn alloc(ti: TypeInfo, uri: scope (const(scope (char)[]), name: scope (const(scope (char)[]), extraSize: size_t, extraPtr: void*, file: const(char)*, line: u32) void* { }
}

//! Pool for named resources.
class Pool
{
public:
	suppress404: bool;


public:
	this() { }
	fn collect() { }
	fn cleanAndLeakCheck(sink: scope (Sink)) { }


public:
	static fn opCall() Pool { }
}
class Resource

Reference base class for all Resources.

class Pool

Pool for named resources.