Alex Bikfalvi
SimStream Documentation
ConnectionEntry.h
00001 #pragma once 00002 00003 #include "Connection.h" 00004 00005 class CConnectionEntry 00006 { 00007 public: 00008 enum EState 00009 { 00010 FREE = 0, 00011 ALLOC = 1, 00012 ASSIGNED = 2 00013 }; 00014 private: 00015 CConnectionEntry* next; 00016 CConnectionEntry* prev; 00017 CConnection* connection; 00018 __uint32 entry; 00019 EState state; 00020 00021 public: 00022 CConnectionEntry(); 00023 ~CConnectionEntry() { } 00024 00025 void Free(); 00026 void Alloc(); 00027 void Assign(CConnection* connection); 00028 00029 inline CConnection* Connection() { return this->connection; } 00030 inline EState State() { return this->state; } 00031 00032 inline CConnectionEntry* Next() { return this->next; } 00033 inline void Next(CConnectionEntry* next) { this->next = next; } 00034 inline CConnectionEntry* Prev() { return this->prev; } 00035 inline void Prev(CConnectionEntry* prev) { this->prev = prev; } 00036 inline __uint32 Entry() { return this->entry; } 00037 inline void Entry(__uint32 entry) { this->entry = entry; } 00038 };
Last updated: February 8, 2011