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

Container of clipboard formats with iterator. More...

#include <ocf/ocview.h>

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

Public Member Functions

 TOcFormatList ()
 ~TOcFormatList ()
TOcFormat *& operator[] (unsigned index)
void Clear (int del=1)
int Add (TOcFormat *format)
int IsEmpty () const
int Find (const TOcFormat *format) const
owl::uint Count () const
int Detach (TOcFormat *item, bool del=false)
TOcFormat * Find (owl::uint const id) const
Public Member Functions inherited from owl::TIPtrArray< TOcFormat * >
 TIPtrArray ()
 TIPtrArray (int upper, int lower=0, int delta=0)
 ~TIPtrArray ()
 TIPtrArray (const TIPtrArray< TOcFormat * > &array)
TIPtrArray< TOcFormat * > & operator= (const TIPtrArray< TOcFormat * > &array)
bool DestroyItem (TOcFormat *t)
bool Destroy (int loc)
void Flush (bool del=true)
Public Member Functions inherited from owl::TPtrArray< T >
 TPtrArray ()
 TPtrArray (int upper, int lower=0, int delta=0)
 TPtrArray (const TPtrArray< T > &array)
Public Member Functions inherited from owl::TTypedArray< T, T, TStandardAllocator >
 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 ()
Public 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)
Public 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

Additional Inherited Members

Public Types inherited from owl::TIPtrArray< TOcFormat * >
typedef TPtrArrayIterator< TOcFormat *, TIPtrArray< TOcFormat * > > Iterator
typedef Iterator iterator
Public 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
Static Public Attributes inherited from owl::TArrayBase
static const int NPOS = -1
Protected Member Functions inherited from owl::TTypedArray< T, T, TStandardAllocator >
void Resize (int delta)
void Remove (int index)
Protected Attributes inherited from owl::TTypedArray< T, T, TStandardAllocator >
T * Data
Protected Attributes inherited from owl::TArrayBase
uint ItemCnt
uint Reserved

Detailed Description

Container of clipboard formats with iterator.

Definition at line 101 of file ocview.h.

Constructor & Destructor Documentation

◆ TOcFormatList()

ocf::TOcFormatList::TOcFormatList ( )

Definition at line 1078 of file ocview.cpp.

◆ ~TOcFormatList()

ocf::TOcFormatList::~TOcFormatList ( )

Definition at line 1085 of file ocview.cpp.

References Clear().

Member Function Documentation

◆ Add()

int ocf::TOcFormatList::Add ( TOcFormat * format)
inline

Definition at line 109 of file ocview.h.

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

◆ Clear()

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

Definition at line 108 of file ocview.h.

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

◆ Count()

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

Definition at line 112 of file ocview.h.

References owl::TArrayBase::Size().

◆ Detach()

int ocf::TOcFormatList::Detach ( TOcFormat * item,
bool del = false )
inline

◆ Find() [1/2]

int ocf::TOcFormatList::Find ( const TOcFormat * format) const
inline

Definition at line 111 of file ocview.h.

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

◆ Find() [2/2]

TOcFormat * ocf::TOcFormatList::Find ( owl::uint const id) const

Definition at line 1094 of file ocview.cpp.

References TOcFormatList(), and ocf::TOcFormat::GetFormatId().

◆ IsEmpty()

int ocf::TOcFormatList::IsEmpty ( ) const
inline

Definition at line 110 of file ocview.h.

References owl::TArrayBase::Empty().

◆ operator[]()

TOcFormat *& ocf::TOcFormatList::operator[] ( unsigned index)
inline

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