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::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)
 
TOcFormatFind (owl::uint const id) const
 
- Public Member Functions inherited from owl::TIPtrArray< TOcFormat * >
 TIPtrArray (int upper, int lower=0, int delta=0)
 
 TIPtrArray ()
 
 TIPtrArray (const TIPtrArray< TOcFormat * > &array)
 
 ~TIPtrArray ()
 
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 (int upper, int lower=0, int delta=0)
 
 TPtrArray ()
 
 TPtrArray (const TPtrArray< T > &array)
 
- Public Member Functions inherited from owl::TTypedArray< T, T, TStandardAllocator >
 TTypedArray (int upper, int=0, int=0)
 
 TTypedArray ()
 
 TTypedArray (const TTypedArray< T, T, TStandardAllocator > &array)
 
 ~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)
 
const T & operator[] (int loc) const
 
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::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 auto 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.

◆ Clear()

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

Definition at line 108 of file ocview.h.

◆ Count()

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

Definition at line 112 of file ocview.h.

◆ Detach()

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

Definition at line 113 of file ocview.h.

◆ Find() [1/2]

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

Definition at line 111 of file ocview.h.

◆ Find() [2/2]

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

Definition at line 1094 of file ocview.cpp.

◆ IsEmpty()

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

Definition at line 110 of file ocview.h.

◆ operator[]()

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

Definition at line 107 of file ocview.h.


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