OOFILE  1.9
Public Member Functions | List of all members

Array of owned oofDrawStyle's adopting them for correct lifetime management. More...

#include <oofDStyl.h>

Public Member Functions

void adopt (oofDrawStyleArray *)
 adopts the storage of the array passed in, appending to the end of the current storage. More...
 
void append (oofDrawStyle &)
 
unsigned long count () const
 
void deleteAll ()
 
const oofDrawStyleitem (unsigned long index) const
 
 oofDrawStyleArray ()
 
oofDrawStyleArrayoperator<< (oofDrawStyle *)
 
oofDrawStyleArrayoperator<< (oofDrawStyle &)
 
 ~oofDrawStyleArray ()
 

Detailed Description

Array of owned oofDrawStyle's adopting them for correct lifetime management.

Provides both append() and operator<<() interfaces for choice of program style. oofDrawStyle& parameters are copied. Can adopt an entire oofDrawStyleArray to allow efficiently passing objects.

Todo:
confirm can change append(oofDrawStyle&) to append(const oofDrawStyle&)
See also
oofDrawStyleSetSupplied

Definition at line 86 of file oofDStyl.h.

Constructor & Destructor Documentation

oofDrawStyleArray::oofDrawStyleArray ( )

Definition at line 280 of file oofDStyl.cpp.

oofDrawStyleArray::~oofDrawStyleArray ( )

Member Function Documentation

void oofDrawStyleArray::adopt ( oofDrawStyleArray inArray)

adopts the storage of the array passed in, appending to the end of the current storage.

thus we work at a lower level than normal - we are just grabbing these items directly rather than copying as in our normal append()

Definition at line 335 of file oofDStyl.cpp.

References OOF_ExpandableLongArray::append(), OOF_ExpandableLongArray::count(), OOF_ExpandableLongArray::deleteAllCells(), and OOF_ExpandableLongArray::value().

Referenced by oofDrawStyleSetSupplied::oofDrawStyleSetSupplied().

void oofDrawStyleArray::append ( oofDrawStyle ds)

Definition at line 295 of file oofDStyl.cpp.

References OOF_ExpandableLongArray::append().

Referenced by operator<<().

unsigned long oofDrawStyleArray::count ( ) const

Definition at line 348 of file oofDStyl.cpp.

References OOF_ExpandableLongArray::count().

Referenced by oofDrawStyleSetSupplied::getNextDrawStyle().

void oofDrawStyleArray::deleteAll ( )
const oofDrawStyle & oofDrawStyleArray::item ( unsigned long  index) const
oofDrawStyleArray & oofDrawStyleArray::operator<< ( oofDrawStyle ds)

Definition at line 304 of file oofDStyl.cpp.

References append().

oofDrawStyleArray & oofDrawStyleArray::operator<< ( oofDrawStyle ds)

Definition at line 312 of file oofDStyl.cpp.

References append().


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