| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
SketchPool Class Template Reference#include <SketchPool.h>
Inheritance diagram for SketchPool: ![]() Detailed Descriptiontemplate<typename T>
Manages a pool of SketchData<T> instances.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | |
| SketchDataRoot * | retrieveSketch (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 &) | |
| SketchPool & | operator= (const SketchPool &) |
| never call this | |
typedef std::vector<SketchData<T>*>::const_iterator CI [private] |
Definition at line 49 of file SketchPool.h.
| 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] |
| 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 |
| SketchData< T > * findSketchData | ( | const std::string & | name | ) |
Definition at line 113 of file SketchPool.h.
| SketchData< T > * get_free_element | ( | void | ) |
| 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().
| std::vector<SketchData<T>*> elements |
this is made public so VisualRoutinesBehavior can access
Definition at line 26 of file SketchPool.h.
Referenced by SketchPool::clear(), SketchPool::dumpPool(), SketchPool::findSketchData(), SketchPool::get_free_element(), SketchPool::getSketchListForGUI(), SketchPool::retrieveSketch(), SketchPool::SketchPool(), and SketchPool::~SketchPool().
|
DualCoding 3.0beta |
Generated Wed Oct 4 00:02:31 2006 by Doxygen 1.4.7 |