SessionTable Class

Definition

Line 21 of cmsxk/Session.cm

Constructors & Destructor

static SessionTable()
private nothrow SessionTable()

Member Functions

public Session* CreateSession()
public void FreeSession(Session* session)
public Session* GetSession(int sid) const
public static SessionTable& Instance()

Member Variables

private Session* free
private static UniquePtr<SessionTable> instance
private int nextFreeSessionSlot
private int nextSid
private HashMap<int, Session*, Hasher<int>, EqualTo<int>> sessionMap
private Session[128] sessions

Constructor& Destructor Details

SessionTable Static Constructor

static SessionTable()

Definition
Line 23 of cmsxk/Session.cm


SessionTable Constructor

private nothrow SessionTable()

Definition
Line 30 of cmsxk/Session.cm


Member Function Details

CreateSession Member Function

public Session* CreateSession()

Definition
Line 33 of cmsxk/Session.cm


FreeSession Member Function

public void FreeSession(Session* session)

Definition
Line 54 of cmsxk/Session.cm


GetSession Member Function

public Session* GetSession(int sid)

Definition
Line 61 of cmsxk/Session.cm


Instance Static Member Function

public static SessionTable& Instance()

Definition
Line 26 of cmsxk/Session.cm