#include <utility.hxx>
Inherited by SmFontPickList.
Inheritance diagram for SmPickList:

Public Member Functions | |
| SmPickList (USHORT nInitSize=0, USHORT nMaxSize=5) | |
| virtual | ~SmPickList () |
| SmPickList & | operator= (const SmPickList &rList) |
| void * | Get (USHORT nPos=0) const |
| void | Insert (const void *pItem) |
| void | Update (const void *pItem, const void *pNewItem) |
| void | Remove (const void *pItem) |
| void * | operator[] (USHORT nPos) const |
| void | SetSize (USHORT nNewSize) |
| USHORT | GetSize () const |
| USHORT | Count () const |
| BOOL | Contains (const void *pItem) const |
| void | Clear () |
Protected Member Functions | |
| virtual void * | CreateItem (const String &rString)=0 |
| virtual void * | CreateItem (const void *pItem)=0 |
| virtual void | DestroyItem (void *pItem)=0 |
| virtual BOOL | CompareItem (const void *pFirstItem, const void *pSecondItem) const =0 |
| virtual String | GetStringItem (void *pItem)=0 |
| void * | GetPtr (USHORT nPos) const |
| void *& | GetPtr (USHORT nPos) |
| void | InsertPtr (USHORT nPos, void *pItem) |
| void | RemovePtr (USHORT nPos, USHORT nCount=1) |
Protected Attributes | |
| USHORT | nSize |
Definition at line 183 of file utility.hxx.
| SmPickList::SmPickList | ( | USHORT | nInitSize = 0, |
|
| USHORT | nMaxSize = 5 | |||
| ) |
| SmPickList::~SmPickList | ( | ) | [virtual] |
| virtual void* SmPickList::CreateItem | ( | const String & | rString | ) | [protected, pure virtual] |
| virtual void* SmPickList::CreateItem | ( | const void * | pItem | ) | [protected, pure virtual] |
Implemented in SmFontPickList.
| virtual void SmPickList::DestroyItem | ( | void * | pItem | ) | [protected, pure virtual] |
| virtual BOOL SmPickList::CompareItem | ( | const void * | pFirstItem, | |
| const void * | pSecondItem | |||
| ) | const [protected, pure virtual] |
| virtual String SmPickList::GetStringItem | ( | void * | pItem | ) | [protected, pure virtual] |
Implemented in SmFontPickList.
| void* SmPickList::GetPtr | ( | USHORT | nPos | ) | const [inline, protected] |
Definition at line 196 of file utility.hxx.
Referenced by Clear(), Contains(), Get(), SmFontPickListBox::Insert(), Insert(), SmFontPickListBox::operator=(), operator[](), Remove(), SetSize(), and Update().
| void*& SmPickList::GetPtr | ( | USHORT | nPos | ) | [inline, protected] |
Definition at line 197 of file utility.hxx.
| void SmPickList::InsertPtr | ( | USHORT | nPos, | |
| void * | pItem | |||
| ) | [inline, protected] |
| void SmPickList::RemovePtr | ( | USHORT | nPos, | |
| USHORT | nCount = 1 | |||
| ) | [inline, protected] |
| SmPickList & SmPickList::operator= | ( | const SmPickList & | rList | ) |
Definition at line 95 of file utility.cxx.
References Clear(), Count(), CreateItem(), Get(), InsertPtr(), and nSize.
| void* SmPickList::Get | ( | USHORT | nPos = 0 |
) | const [inline] |
Reimplemented in SmFontPickList.
Definition at line 207 of file utility.hxx.
References GetPtr().
Referenced by SmFontPickList::Get(), and operator=().
| void SmPickList::Insert | ( | const void * | pItem | ) |
Definition at line 108 of file utility.cxx.
References Count(), CreateItem(), DestroyItem(), GetPtr(), InsertPtr(), nSize, Remove(), and RemovePtr().
Referenced by SmFontPickList::Insert().
| void SmPickList::Update | ( | const void * | pItem, | |
| const void * | pNewItem | |||
| ) |
Definition at line 121 of file utility.cxx.
References CompareItem(), Count(), CreateItem(), DestroyItem(), and GetPtr().
Referenced by SmFontPickList::Update().
| void SmPickList::Remove | ( | const void * | pItem | ) |
Definition at line 134 of file utility.cxx.
References CompareItem(), Count(), DestroyItem(), GetPtr(), and RemovePtr().
Referenced by Insert(), and SmFontPickList::Remove().
| void* SmPickList::operator[] | ( | USHORT | nPos | ) | const [inline] |
| void SmPickList::SetSize | ( | USHORT | nNewSize | ) |
Definition at line 147 of file utility.cxx.
References Count(), DestroyItem(), GetPtr(), nSize, and RemovePtr().
| USHORT SmPickList::GetSize | ( | ) | const [inline] |
| USHORT SmPickList::Count | ( | ) | const [inline] |
Definition at line 219 of file utility.hxx.
Referenced by Clear(), Contains(), SmFontPickList::Get(), Insert(), SmFontPickListBox::operator=(), operator=(), Remove(), SetSize(), and Update().
| BOOL SmPickList::Contains | ( | const void * | pItem | ) | const |
Definition at line 159 of file utility.cxx.
References CompareItem(), Count(), and GetPtr().
Referenced by SmFontPickList::Contains().
| void SmPickList::Clear | ( | ) |
Definition at line 171 of file utility.cxx.
References Count(), DestroyItem(), GetPtr(), and RemovePtr().
Referenced by operator=(), SmFontPickList::~SmFontPickList(), and ~SmPickList().
USHORT SmPickList::nSize [protected] |
Definition at line 186 of file utility.hxx.
Referenced by GetSize(), SmFontPickListBox::Insert(), Insert(), operator=(), SetSize(), and SmPickList().
1.5.1