SmPickList Class Reference

#include <utility.hxx>

Inherited by SmFontPickList.

Inheritance diagram for SmPickList:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 SmPickList (USHORT nInitSize=0, USHORT nMaxSize=5)
virtual ~SmPickList ()
SmPickListoperator= (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

Detailed Description

Definition at line 183 of file utility.hxx.


Constructor & Destructor Documentation

SmPickList::SmPickList ( USHORT  nInitSize = 0,
USHORT  nMaxSize = 5 
)

Definition at line 82 of file utility.cxx.

References nSize.

SmPickList::~SmPickList (  )  [virtual]

Definition at line 89 of file utility.cxx.

References Clear().


Member Function Documentation

virtual void* SmPickList::CreateItem ( const String &  rString  )  [protected, pure virtual]

Implemented in SmFontPickList.

Referenced by Insert(), operator=(), and Update().

virtual void* SmPickList::CreateItem ( const void *  pItem  )  [protected, pure virtual]

Implemented in SmFontPickList.

virtual void SmPickList::DestroyItem ( void *  pItem  )  [protected, pure virtual]

Implemented in SmFontPickList.

Referenced by Clear(), Insert(), Remove(), SetSize(), and Update().

virtual BOOL SmPickList::CompareItem ( const void *  pFirstItem,
const void *  pSecondItem 
) const [protected, pure virtual]

Implemented in SmFontPickList.

Referenced by Contains(), Remove(), and Update().

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]

Definition at line 198 of file utility.hxx.

Referenced by Insert(), and operator=().

void SmPickList::RemovePtr ( USHORT  nPos,
USHORT  nCount = 1 
) [inline, protected]

Definition at line 199 of file utility.hxx.

Referenced by Clear(), Insert(), Remove(), and SetSize().

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]

Reimplemented in SmFontPickList.

Definition at line 215 of file utility.hxx.

References GetPtr().

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]

Definition at line 218 of file utility.hxx.

References nSize.

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().


Member Data Documentation

USHORT SmPickList::nSize [protected]

Definition at line 186 of file utility.hxx.

Referenced by GetSize(), SmFontPickListBox::Insert(), Insert(), operator=(), SetSize(), and SmPickList().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 17:23:24 2008 for maths by  doxygen 1.5.1