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

Container of link views with iterator. More...

#include <ocf/oclink.h>

Inheritance diagram for ocf::TOcLinkCollection:
owl::TPtrArray< TOcLinkView * > owl::TTypedArray< T, R, A > owl::TArrayBase

Public Member Functions

 TOcLinkCollection ()
 
 ~TOcLinkCollection ()
 
void Clear ()
 Release Views in the collection.
 
int Add (TOcLinkView *const &View)
 
int IsEmpty () const
 
int Find (TOcLinkView *const &view)
 
virtual unsigned Count () const
 
int Detach (TOcLinkView *const &view, int del=0)
 
TOcLinkViewFind (owl::TString const moniker) const
 
- Public Member Functions inherited from owl::TPtrArray< TOcLinkView * >
 TPtrArray (int upper, int lower=0, int delta=0)
 
 TPtrArray ()
 
 TPtrArray (const TPtrArray< TOcLinkView * > &array)
 
- Public Member Functions inherited from owl::TTypedArray< T, R, A >
 TTypedArray (int upper, int=0, int=0)
 
 TTypedArray ()
 
 ~TTypedArray ()
 
 TTypedArray (const TTypedArray< T, R, A > &array)
 
TTypedArray< T, R, A > & operator= (const TTypedArray< T, R, A > &array)
 
void RemoveEntry (int loc)
 
void SqueezeEntry (unsigned loc)
 
void Grow (int index)
 
int Add (R t)
 
void AddAt (R t, uint index)
 
bool DetachItem (R t)
 
bool Detach (int loc)
 
bool DestroyItem (R t)
 
bool Destroy (int loc)
 
bool HasMember (R t) const
 
int Find (R 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::TTypedArray< T, R, A >
typedef void(* IterFunc) (R, void *)
 
typedef bool(* CondFunc) (R, void *)
 
typedef TPtrArrayIterator< R, TTypedArray< T, R, A > > Iterator
 
typedef Iterator iterator
 
- Static Public Attributes inherited from owl::TArrayBase
static const auto NPOS = -1
 
- Protected Member Functions inherited from owl::TTypedArray< T, R, A >
void Resize (int delta)
 
void Remove (int index)
 
- Protected Attributes inherited from owl::TTypedArray< T, R, A >
T * Data
 
- Protected Attributes inherited from owl::TArrayBase
uint ItemCnt
 
uint Reserved
 

Detailed Description

Container of link views with iterator.

Definition at line 123 of file oclink.h.

Constructor & Destructor Documentation

◆ TOcLinkCollection()

ocf::TOcLinkCollection::TOcLinkCollection ( )

Definition at line 471 of file oclink.cpp.

◆ ~TOcLinkCollection()

ocf::TOcLinkCollection::~TOcLinkCollection ( )

Definition at line 478 of file oclink.cpp.

References Clear().

Member Function Documentation

◆ Add()

int ocf::TOcLinkCollection::Add ( TOcLinkView *const & View)
inline

Definition at line 133 of file oclink.h.

◆ Clear()

void ocf::TOcLinkCollection::Clear ( )

Release Views in the collection.

DR why do we want to keep data after a clear? Remove it.

Definition at line 487 of file oclink.cpp.

References Count(), and owl::TTypedArray< T, R, A >::Detach().

◆ Count()

virtual unsigned ocf::TOcLinkCollection::Count ( ) const
inlinevirtual

Definition at line 138 of file oclink.h.

◆ Detach()

int ocf::TOcLinkCollection::Detach ( TOcLinkView *const & view,
int del = 0 )

Definition at line 500 of file oclink.cpp.

References owl::TTypedArray< T, R, A >::Detach(), and Find().

◆ Find() [1/2]

TOcLinkView * ocf::TOcLinkCollection::Find ( owl::TString const moniker) const

Definition at line 512 of file oclink.cpp.

◆ Find() [2/2]

int ocf::TOcLinkCollection::Find ( TOcLinkView *const & view)
inline

Definition at line 136 of file oclink.h.

◆ IsEmpty()

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

Definition at line 135 of file oclink.h.


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