#include <worldviews.h>
Inheritance diagram for WorldViews


Interface iterating over eyes; should be used only for output | |
| typedef Retinal_Composite* | value_type |
| Type to hold view of world. More... | |
| typedef std::vector<value_type> | vector_type |
| Type of container of world views. More... | |
| typedef vector_type::iterator | iterator |
| Iterator over the container of world views. More... | |
| typedef vector_type::const_iterator | const_iterator |
| Iterator over the container of world views. More... | |
| iterator | begin () |
| Underlying container's begin(). More... | |
| iterator | end () |
| Underlying container's end(). More... | |
| const_iterator | begin () const |
| Underlying container's begin(). More... | |
| const_iterator | end () const |
| Underlying container's end(). More... | |
Public Methods | |
| virtual | ~WorldViews () |
| virtual void | uninit () |
| Reset to initial, undefined state. More... | |
| virtual void | init () |
| Initialize input objects and parameters at start of session (after all architecture parameters have been defined); must be called before calling create_object. More... | |
| virtual void | reset () |
| Reset each object and the stream of random numbers to their initial values. More... | |
| virtual void | reset (long int seed) |
| Reset each object to their initial values, and set the stream of random numbers to the given seed value. More... | |
| virtual bool | next () |
| Advance to the next state (whatever that means for this object). More... | |
| const Retinal_Obj* | view (int eye) const |
| This interface should be avoided if at all possible, since it exposes that a WorldView is a Retinal_Object. More... | |
This interface probably needs changing; maybe some can be eliminated | |
| void | define ( unsigned n_eyes=num_eyes ) |
| Ensure that the specified number of eyes and their contents exist. More... | |
| bool | create_object (StringArgs arglist, const string& name, WorldViews& reference_contents, bool link_eyes=true) |
| Create a Retinal_Object and add it to the given set of contents. More... | |
| void | remove_object (const string& parent="", const string& name="") |
| Remove the given object from the given parent. More... | |
| void | print_object ( const string& parent="", const string& name="") const |
| Print all objects matching the given parent and name. More... | |
| bool | is_empty () const |
| Returns true if no object has been defined yet. More... | |
External interface to a select few quantities needed by other files. | |
| virtual bool | is_active (int objnumber, int eye) const |
| Whether the given object is currently enabled in the given eye. More... | |
| virtual double | angle_of_object (int objnumber, int eye) const |
| The angle, in radians, of the given object in the given eye. More... | |
| virtual double | angle_of_object_at_location (int i, int j, int eye) const |
| Returns the nominal angle of the most active object at the given location in the given eye. More... | |
Static Public Methods | |
| void | set_current_eye (int eye) |
| Routines that parse string input for each eye call this function to make input_current_eye available for expressions. More... | |
| void | register_params_and_commands ( void ) |
| This function must be called before any other member function call. More... | |
| cmdstat | set_distribution (int dist, bool& changed) |
| Obsolete; should only be used by distribution_setfn. More... | |
Definition at line 64 of file worldviews.h.
|
|
Iterator over the container of world views.
Definition at line 109 of file worldviews.h. |
|
|
Iterator over the container of world views.
Definition at line 107 of file worldviews.h. |
|
|
Type to hold view of world.
Definition at line 103 of file worldviews.h. |
|
|
Type of container of world views.
Definition at line 105 of file worldviews.h. |
|
|
Definition at line 66 of file worldviews.h. |
|
|
The angle, in radians, of the given object in the given eye.
Definition at line 136 of file worldviews.h. Referenced by Eyes::angle_of_object(). |
|
|
Returns the nominal angle of the most active object at the given location in the given eye.
Definition at line 146 of file worldviews.h. Referenced by Eyes::angle_of_object_at_location(). |
|
|
Underlying container's begin().
Definition at line 115 of file worldviews.h. |
|
|
Underlying container's begin().
Definition at line 111 of file worldviews.h. Referenced by Eyes::activate(). |
|
|
Create a Retinal_Object and add it to the given set of contents.
Definition at line 561 of file worldviews.c. |
|
|
Ensure that the specified number of eyes and their contents exist.
Definition at line 529 of file worldviews.c. Referenced by init(), and Eyes::init(). |
|
|
Underlying container's end().
Definition at line 117 of file worldviews.h. |
|
|
Underlying container's end().
Definition at line 113 of file worldviews.h. Referenced by Eyes::activate(). |
|
|
Initialize input objects and parameters at start of session (after all architecture parameters have been defined); must be called before calling create_object.
Definition at line 489 of file worldviews.c. Referenced by Eyes::init(). |
|
|
Whether the given object is currently enabled in the given eye.
Definition at line 130 of file worldviews.h. Referenced by Eyes::is_active(). |
|
|
Returns true if no object has been defined yet.
Definition at line 96 of file worldviews.h. |
|
|
Advance to the next state (whatever that means for this object).
Reimplemented from ValueGen. Definition at line 507 of file worldviews.c. Referenced by Eyes::next(). |
|
|
Print all objects matching the given parent and name.
Definition at line 653 of file worldviews.c. |
|
|
This function must be called before any other member function call.
Definition at line 52 of file worldviews.c. |
|
|
Remove the given object from the given parent.
Definition at line 640 of file worldviews.c. |
|
|
Reset each object to their initial values, and set the stream of random numbers to the given seed value.
Definition at line 81 of file worldviews.h. |
|
|
Reset each object and the stream of random numbers to their initial values.
Reimplemented from ValueGen. Definition at line 77 of file worldviews.h. Referenced by Eyes::reset(). |
|
|
Routines that parse string input for each eye call this function to make input_current_eye available for expressions.
Definition at line 153 of file worldviews.h. Referenced by create_object(), print_object(), and remove_object(). |
|
|
Obsolete; should only be used by distribution_setfn.
Definition at line 669 of file worldviews.c. |
|
|
Reset to initial, undefined state.
Definition at line 69 of file worldviews.h. Referenced by Eyes::uninit(). |
|
|
This interface should be avoided if at all possible, since it exposes that a WorldView is a Retinal_Object.
Definition at line 122 of file worldviews.h. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000