私有成员函数 |
|
| GvPortList () | |
| ~GvPortList () | |
Alloc/Free |
|
| static GvPortList * | Alloc () |
| static void | Free ( GvPortList *&list) |
List |
|
| Int32 | GetCount (void) const |
| Bool | Append ( GvPortListEntry *e) |
| Bool | 移除 ( GvPortListEntry *e) |
| GvPortListEntry * | GetIndex ( Int32 i) const |
| void | FlushAll (void) |
|
|
|
static |
Allocates a port list. Destroy the allocated port list with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs port lists allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
| [in,out] | list | The port lists to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
| Int32 GetCount | ( | void | ) | const |
Gets the number of port entries.
| Bool Append | ( | GvPortListEntry * | e | ) |
Appends an entry to the end of the list.
| [in] | e | The entry to append. The list takes over the ownership of the pointed entry. |
| Bool 移除 | ( | GvPortListEntry * | e | ) |
Removes the entry given by e .
| [in] | e | The entry to remove. If the removal succeed, the ownership is transfered to the caller. |
| GvPortListEntry * GetIndex | ( | Int32 | i | ) | const |
Retrieves an entry by index.
| [in] | i | The entry index: 0 <= i < GetCount() . |
| void FlushAll | ( | void | ) |
Clears the list.