Homepage Demos Overview Downloads Tutorials Reference
Credits

SketchPool Class Template Reference

#include <SketchPool.h>

Inheritance diagram for SketchPool:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename T>
class DualCoding::SketchPool< T >

Manages a pool of SketchData<T> instances.

Definition at line 23 of file SketchPool.h.

Public Member Functions

 SketchPool (SketchSpace *_space, int poolsize=0)
 ~SketchPool ()
void clear ()
 called by SketchPool to clear out non-static Viewable Sketch's
SketchData< T > * get_free_element (void)
SketchData< T > * findSketchData (const std::string &name)
std::string getSketchListForGUI ()
 Returns a list of the valid SketchData's in this pool.
SketchDataRootretrieveSketch (int id)
 Returns a copy of the sketch with specified ID, null if no such Sketch.
void dumpPool () const

Public Attributes

std::vector< SketchData< T > * > elements
 this is made public so VisualRoutinesBehavior can access

Private Types

typedef std::vector< SketchData<
T > * >::const_iterator 
CI

Private Member Functions

 SketchPool (const SketchPool &)
SketchPooloperator= (const SketchPool &)
 never call this


Member Typedef Documentation

typedef std::vector<SketchData<T>*>::const_iterator CI [private]

Definition at line 49 of file SketchPool.h.


Constructor & Destructor Documentation

SketchPool ( SketchSpace _space,
int  poolsize = 0 
)

Definition at line 58 of file SketchPool.h.

~SketchPool (  ) 

Definition at line 68 of file SketchPool.h.

SketchPool ( const SketchPool< T > &   )  [private]


Member Function Documentation

void clear (  ) 

called by SketchPool to clear out non-static Viewable Sketch's

Definition at line 79 of file SketchPool.h.

Referenced by SketchSpace::clear().

void dumpPool (  )  const

Definition at line 154 of file SketchPool.h.

Referenced by SketchSpace::dumpSpace().

SketchData< T > * findSketchData ( const std::string &  name  ) 

Definition at line 113 of file SketchPool.h.

SketchData< T > * get_free_element ( void   ) 

Definition at line 99 of file SketchPool.h.

Referenced by Sketch::Sketch().

std::string getSketchListForGUI (  ) 

Returns a list of the valid SketchData's in this pool.

Definition at line 122 of file SketchPool.h.

Referenced by SketchSpace::getSketchListForGUI().

SketchPool& operator= ( const SketchPool< T > &   )  [private]

never call this

SketchDataRoot * retrieveSketch ( int  id  ) 

Returns a copy of the sketch with specified ID, null if no such Sketch.

Definition at line 145 of file SketchPool.h.

Referenced by SketchSpace::retrieveSketch().


Member Data Documentation


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

DualCoding 3.0beta
Generated Wed Oct 4 00:02:31 2006 by Doxygen 1.4.7