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

Container of parts with iterator. More...

#include <ocf/ocpart.h>

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

Public Member Functions

 TOcPartCollection ()
 
 ~TOcPartCollection ()
 
void Clear ()
 Release parts in the collection.
 
int Add (TOcPart *const &part)
 
int IsEmpty () const
 
int Find (TOcPart *const &part)
 
virtual unsigned Count () const
 
int Detach (TOcPart *const &part, int del=0)
 
TOcPartLocate (owl::TPoint &point)
 walk thru Part collection & return the last one that logical point hits, (first one in Z order)
 
bool SelectAll (bool select=false)
 Select/unselect all parts.
 
- Public Member Functions inherited from owl::TPtrArray< TOcPart * >
 TPtrArray (int upper, int lower=0, int delta=0)
 
 TPtrArray ()
 
 TPtrArray (const TPtrArray< TOcPart * > &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 parts with iterator.

Definition at line 172 of file ocpart.h.

Constructor & Destructor Documentation

◆ TOcPartCollection()

ocf::TOcPartCollection::TOcPartCollection ( )

Definition at line 804 of file ocpart.cpp.

◆ ~TOcPartCollection()

ocf::TOcPartCollection::~TOcPartCollection ( )

Definition at line 808 of file ocpart.cpp.

References Clear().

Member Function Documentation

◆ Add()

int ocf::TOcPartCollection::Add ( TOcPart *const & part)
inline

Definition at line 180 of file ocpart.h.

◆ Clear()

void ocf::TOcPartCollection::Clear ( )

Release parts in the collection.

Definition at line 817 of file ocpart.cpp.

References Count().

◆ Count()

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

Definition at line 185 of file ocpart.h.

◆ Detach()

int ocf::TOcPartCollection::Detach ( TOcPart *const & part,
int del = 0 )

Definition at line 853 of file ocpart.cpp.

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

◆ Find()

int ocf::TOcPartCollection::Find ( TOcPart *const & part)
inline

Definition at line 183 of file ocpart.h.

◆ IsEmpty()

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

Definition at line 182 of file ocpart.h.

◆ Locate()

TOcPart * ocf::TOcPartCollection::Locate ( owl::TPoint & point)

walk thru Part collection & return the last one that logical point hits, (first one in Z order)

Definition at line 830 of file ocpart.cpp.

◆ SelectAll()

bool ocf::TOcPartCollection::SelectAll ( bool select = false)

Select/unselect all parts.

Definition at line 845 of file ocpart.cpp.


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