OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TOcNameList Class Reference

Clipboard format names. More...

#include <ocf/ocapp.h>

Inheritance diagram for ocf::TOcNameList:
owl::TIPtrArray< TOcFormatName * > owl::TPtrArray< T > owl::TTypedArray< T, T, TStandardAllocator > owl::TStandardAllocator owl::TArrayBase

Public Member Functions

 TOcNameList ()
 ~TOcNameList ()
TOcFormatName *& operator[] (unsigned index)
TOcFormatName * operator[] (TCHAR *)
 Find the format name with the corresponding id.
void Clear (int del=1)
int Add (TOcFormatName *name)
bool IsEmpty () const
bool Find (const TOcFormatName *name)
owl::uint Count () const
bool Detach (TOcFormatName *item, bool del=false)

Additional Inherited Members

Protected Types inherited from owl::TIPtrArray< TOcFormatName * >
typedef TPtrArrayIterator< TOcFormatName *, TIPtrArray< TOcFormatName * > > Iterator
typedef Iterator iterator
Protected Types inherited from owl::TTypedArray< T, T, TStandardAllocator >
typedef void(*) IterFunc(T, void *)
typedef bool(*) CondFunc(T, void *)
typedef TPtrArrayIterator< T, TTypedArray< T, T, TStandardAllocator > > Iterator
typedef Iterator iterator
Protected Member Functions inherited from owl::TIPtrArray< TOcFormatName * >
 TIPtrArray ()
 TIPtrArray (int upper, int lower=0, int delta=0)
 ~TIPtrArray ()
 TIPtrArray (const TIPtrArray< TOcFormatName * > &array)
TIPtrArray< TOcFormatName * > & operator= (const TIPtrArray< TOcFormatName * > &array)
bool DestroyItem (TOcFormatName *t)
bool Destroy (int loc)
void Flush (bool del=true)
Protected Member Functions inherited from owl::TPtrArray< T >
 TPtrArray ()
 TPtrArray (int upper, int lower=0, int delta=0)
 TPtrArray (const TPtrArray< T > &array)
Protected Member Functions inherited from owl::TTypedArray< T, T, TStandardAllocator >
void Resize (int delta)
void Remove (int index)
 TTypedArray ()
 ~TTypedArray ()
TTypedArray< T, T, TStandardAllocator > & operator= (const TTypedArray< T, T, TStandardAllocator > &array)
void RemoveEntry (int loc)
void SqueezeEntry (unsigned loc)
void Grow (int index)
int Add (T t)
void AddAt (T t, uint index)
bool DetachItem (T t)
bool Detach (int loc)
bool DestroyItem (T t)
bool Destroy (int loc)
bool HasMember (T t) const
int Find (T t) const
T & operator[] (int loc)
void ForEach (IterFunc iter, void *args)
T * FirstThat (CondFunc cond, void *args) const
T * LastThat (CondFunc cond, void *args) const
void Flush ()
Protected Member Functions inherited from owl::TStandardAllocator
void operator delete (void *ptr)
void * operator new (size_t sz)
void * Alloc (size_t sz)
void Free (void *ptr)
void * ReAlloc (void *ptr, size_t sz)
Protected Member Functions inherited from owl::TArrayBase
 TArrayBase ()
uint GetItemsInContainer () const
int LowerBound () const
int UpperBound () const
uint ArraySize () const
bool IsFull () const
bool IsEmpty () const
uint Size () const
uint Count () const
bool Empty () const
uint size () const
bool empty () const
Protected Attributes inherited from owl::TTypedArray< T, T, TStandardAllocator >
T * Data
Protected Attributes inherited from owl::TArrayBase
uint ItemCnt
uint Reserved
Static Protected Attributes inherited from owl::TArrayBase
static const int NPOS = -1

Detailed Description

Clipboard format names.

Definition at line 73 of file ocapp.h.

Constructor & Destructor Documentation

◆ TOcNameList()

ocf::TOcNameList::TOcNameList ( )

Definition at line 1121 of file ocapp.cpp.

◆ ~TOcNameList()

ocf::TOcNameList::~TOcNameList ( )

Definition at line 1125 of file ocapp.cpp.

References Clear().

Member Function Documentation

◆ Add()

int ocf::TOcNameList::Add ( TOcFormatName * name)
inline

Definition at line 82 of file ocapp.h.

References owl::TTypedArray< T, T, TStandardAllocator >::Add().

◆ Clear()

void ocf::TOcNameList::Clear ( int del = 1)
inline

Definition at line 81 of file ocapp.h.

References owl::TIPtrArray< TOcFormatName * >::Flush().

◆ Count()

owl::uint ocf::TOcNameList::Count ( ) const
inline

Definition at line 85 of file ocapp.h.

References owl::TArrayBase::Size().

◆ Detach()

bool ocf::TOcNameList::Detach ( TOcFormatName * item,
bool del = false )
inline

◆ Find()

bool ocf::TOcNameList::Find ( const TOcFormatName * name)
inline

Definition at line 84 of file ocapp.h.

References owl::TTypedArray< T, T, TStandardAllocator >::Find().

◆ IsEmpty()

bool ocf::TOcNameList::IsEmpty ( ) const
inline

Definition at line 83 of file ocapp.h.

References owl::TArrayBase::Empty().

◆ operator[]() [1/2]

TOcFormatName * ocf::TOcNameList::operator[] ( TCHAR * id)

Find the format name with the corresponding id.

Definition at line 1134 of file ocapp.cpp.

References _tcscmp, Count(), and ocf::TOcFormatName::GetId().

◆ operator[]() [2/2]

TOcFormatName *& ocf::TOcNameList::operator[] ( unsigned index)
inline

The documentation for this class was generated from the following files: