Inheritance diagram for ViewList:
Public Member Functions | |
~ViewList () | |
BOOL | AddView (View *) |
Add a View to a list to indicate that it has been optimised. | |
BOOL | IsViewOptimised (View *) |
Determine whether the given View is recorded in this list as having been optimised or not. |
Definition at line 161 of file rgnlist.cpp.
|
Definition at line 166 of file rgnlist.cpp. 00166 { DeleteAll(); }
|
|
Add a View to a list to indicate that it has been optimised.
Definition at line 198 of file rgnlist.cpp. 00199 { 00200 // Try to create the new item 00201 ViewItem *pItem = new ViewItem(pView); 00202 if (pItem == NULL) 00203 // Failed - flag error to caller 00204 return FALSE; 00205 00206 // Ok - add to list and return success 00207 AddTail(pItem); 00208 return TRUE; 00209 }
|
|
Determine whether the given View is recorded in this list as having been optimised or not.
Definition at line 227 of file rgnlist.cpp. 00228 { 00229 ViewItem *pItem = (ViewItem *) GetHead(); 00230 while (pItem != NULL) 00231 { 00232 if (pItem->pView == pView) 00233 // It's in the list 00234 return TRUE; 00235 00236 // Try next item 00237 pItem = (ViewItem *) GetNext(pItem); 00238 } 00239 00240 // Not found - inform caller 00241 return FALSE; 00242 }
|