|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Container of parts with iterator. More...
#include <ocf/ocpart.h>
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) |
| TOcPart * | Locate (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 () | |
| TPtrArray (int upper, int lower=0, int delta=0) | |
| TPtrArray (const TPtrArray< TOcPart * > &array) | |
| Public Member Functions inherited from owl::TTypedArray< T, R, A > | |
| TTypedArray () | |
| TTypedArray (int upper, int=0, int=0) | |
| ~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::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::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 int | 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 |
| ocf::TOcPartCollection::TOcPartCollection | ( | ) |
Definition at line 804 of file ocpart.cpp.
| ocf::TOcPartCollection::~TOcPartCollection | ( | ) |
Definition at line 808 of file ocpart.cpp.
References Clear().
|
inline |
Definition at line 180 of file ocpart.h.
References owl::TTypedArray< T, R, A >::Add().
| void ocf::TOcPartCollection::Clear | ( | ) |
Release parts in the collection.
Definition at line 817 of file ocpart.cpp.
References Count(), and ocf::TOcPart::Release().
|
inlinevirtual |
Definition at line 185 of file ocpart.h.
References owl::TArrayBase::Size().
| 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().
|
inline |
Definition at line 183 of file ocpart.h.
References owl::TTypedArray< T, R, A >::Find().
|
inline |
Definition at line 182 of file ocpart.h.
References owl::TArrayBase::Empty().
| 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.
References owl::TSize::TSize().
| bool ocf::TOcPartCollection::SelectAll | ( | bool | select = false | ) |
Select/unselect all parts.
Definition at line 845 of file ocpart.cpp.
References ocf::TOcPart::Select().