#include <object_instance_list.h>
Inheritance diagram for mimas::object_instance_list:
Public Member Functions | |
object_instance_list (void) | |
void | setObject (object_ptr ob) |
object_ptr | getObject (void) |
bool | empty (void) |
coordinate_xform_ptr_list & | getList (void) |
void | push_back (coordinate_xform_ptr m) |
I wanted a means to have a single object type (such as for example a house object) which was then instanciated N times in different positions or situations. Hence this class. You can define an object, eg house and then use this class to point to the house structure and store alongside that all the inforamtion about each different instance. We use this in auto pgh to store the positions of all the different found instances of the house template. And, to add to the confusion, you can of course, store lists of lists. Its just a way to store a set of object instances so we can do things with them all , or so we can do repetitive ops on a given set of data.
Definition at line 27 of file object_instance_list.h.
mimas::object_instance_list::object_instance_list | ( | void | ) | [inline] |
Definition at line 38 of file object_instance_list.h.
void mimas::object_instance_list::setObject | ( | object_ptr | ob | ) | [inline] |
Definition at line 57 of file object_instance_list.h.
object_ptr mimas::object_instance_list::getObject | ( | void | ) | [inline] |
Definition at line 58 of file object_instance_list.h.
bool mimas::object_instance_list::empty | ( | void | ) | [inline] |
Definition at line 61 of file object_instance_list.h.
coordinate_xform_ptr_list& mimas::object_instance_list::getList | ( | void | ) | [inline] |
Definition at line 63 of file object_instance_list.h.
void mimas::object_instance_list::push_back | ( | coordinate_xform_ptr | m | ) | [inline] |
Definition at line 65 of file object_instance_list.h.