#include <retinalobjs.h>
Inheritance diagram for Retinal_Composite


Public Types | |
| enum | AccumulationType { Max, Min, Add, OneHot } |
| Possible values for an accum_type. | |
Public Methods | |
Constructors and destructors | |
| Retinal_Composite ( const string& name_val, AccumulationType accum_type_i=Max, const VarMap& init_vars=VarMap()) | |
| RetinalObjectStringArgs::ParamList | paramlist () |
| Retinal_Composite ( const string& name_val, RetinalObjectStringArgs& sa) | |
| Retinal_Composite (const Retinal_Composite& b) | |
| virtual | ~Retinal_Composite () |
Primary Interface | |
| virtual bool | next () |
| Advance to the next state (whatever that means for this object). More... | |
| virtual void | reset () |
| Reset to the starting state. More... | |
| virtual bool | update () const |
| Must be called just before calling activation() one or more times. More... | |
Composite-only interface | |
| virtual void | add (Retinal_Object* obj) |
| Incorporate the given retinal object (must be allocated from the heap). More... | |
| virtual bool | is_empty () const |
| Whether there are currently any children. More... | |
| virtual Retinal_Object* | find (const string& othername) |
| Returns the first object with a matching name from a preorder search on self and children. More... | |
| virtual void | remove (const string& name="") |
| Remove all children with the specified name. More... | |
| virtual void | remove_all () |
| Remove all children; separate routine for use with for_each. More... | |
| virtual const Retinal_Object& | mostactive (Coordinate x, Coordinate y) const |
| Rarely needed: Returns child which has the highest activation at that location, or self if childless. More... | |
| Retinal_Object* | operator[] (unsigned int idx) const |
| Deprecated: Returns child specified by number. More... | |
| size_t | size () const |
| Incorporate the given retinal object (must be allocated from the heap). More... | |
Other functions which may be useful | |
| virtual string | stringrep () const |
| (Partial) representation of this object's state as a string. More... | |
| virtual Retinal_Object* | clone () const |
| Return an identical copy of this object allocated from the heap. More... | |
Protected Types | |
| typedef std::vector<Retinal_Object*> | ChildrenContainer |
| Container with pointers to the child objects managed by this instance. More... | |
| typedef ChildrenContainer::iterator | iterator |
| Iterator over this instance's children. More... | |
| typedef ChildrenContainer::const_iterator | const_iterator |
| Iterator over this instance's children. More... | |
Protected Methods | |
| Activity | accum_base () const |
| Starting value for an accumulation. More... | |
Protected Attributes | |
| ChildrenContainer | children |
| The child objects managed by this instance. More... | |
| AccumulationType | accum_type |
| How to combine the responses from multiple children. More... | |
| Variable | cosmt |
| Cached values for activ(). More... | |
| Variable | sinmt |
| Variable | cx |
| Variable | cy |
| Variable | div_size |
| Retinal_Object* | dominant_child |
| If accum_type is OneHot, the currently-dominant child. More... | |
Additional operations are supported for composite objects; other derived Retinal_Objects should rarely need to define their own operations other than those overriding or completing the ones in Retinal_Object.
Definition at line 309 of file retinalobjs.h.
|
|
Container with pointers to the child objects managed by this instance.
Definition at line 406 of file retinalobjs.h. |
|
|
Iterator over this instance's children.
Definition at line 410 of file retinalobjs.h. |
|
|
Iterator over this instance's children.
Definition at line 408 of file retinalobjs.h. |
|
|
Possible values for an accum_type.
Definition at line 312 of file retinalobjs.h. |
|
|
Definition at line 316 of file retinalobjs.h. |
|
|
Definition at line 325 of file retinalobjs.h. |
|
|
Definition at line 333 of file retinalobjs.h. |
|
|
Definition at line 338 of file retinalobjs.h. |
|
|
Starting value for an accumulation.
Definition at line 247 of file retinalobjs.c. |
|
|
Incorporate the given retinal object (must be allocated from the heap).
Definition at line 354 of file retinalobjs.h. Referenced by WorldViews::create_object(). |
|
|
Return an identical copy of this object allocated from the heap.
Reimplemented from Retinal_Object. Reimplemented in Retinal_ManagedComposite, and Retinal_AnchoredManagedComposite. Definition at line 400 of file retinalobjs.h. |
|
|
Returns the first object with a matching name from a preorder search on self and children. The empty string matches the first object found, whatever it is. Reimplemented from Retinal_Object. Definition at line 364 of file retinalobjs.h. |
|
|
Whether there are currently any children.
Definition at line 357 of file retinalobjs.h. |
|
|
Rarely needed: Returns child which has the highest activation at that location, or self if childless. There might be a way to encode this using max_element, mem_fun, bind1st, bind2nd, etc. Definition at line 283 of file retinalobjs.c. |
|
|
Advance to the next state (whatever that means for this object).
Reimplemented from Retinal_Object. Reimplemented in Retinal_ManagedComposite. Definition at line 122 of file retinalobjs.c. |
|
|
Deprecated: Returns child specified by number.
Definition at line 392 of file retinalobjs.h. |
|
|
Definition at line 140 of file retinalobjs.c. |
|
|
Remove all children with the specified name.
Definition at line 374 of file retinalobjs.h. Referenced by WorldViews::remove_object(). |
|
|
Remove all children; separate routine for use with for_each.
Definition at line 384 of file retinalobjs.h. |
|
|
Reset to the starting state.
Reimplemented from Retinal_Object. Definition at line 131 of file retinalobjs.c. |
|
|
Incorporate the given retinal object (must be allocated from the heap).
Definition at line 393 of file retinalobjs.h. |
|
|
(Partial) representation of this object's state as a string.
Reimplemented from Retinal_Object. Reimplemented in Retinal_AnchoredManagedComposite. Definition at line 311 of file retinalobjs.c. |
|
|
Must be called just before calling activation() one or more times.
Reimplemented from Retinal_Object. Definition at line 156 of file retinalobjs.c. |
|
|
How to combine the responses from multiple children.
Definition at line 415 of file retinalobjs.h. |
|
|
The child objects managed by this instance.
Definition at line 412 of file retinalobjs.h. |
|
|
Cached values for activ().
Definition at line 419 of file retinalobjs.h. |
|
|
Reimplemented from Retinal_Object. Definition at line 419 of file retinalobjs.h. |
|
|
Reimplemented from Retinal_Object. Definition at line 419 of file retinalobjs.h. |
|
|
Definition at line 419 of file retinalobjs.h. |
|
|
If accum_type is OneHot, the currently-dominant child.
Definition at line 421 of file retinalobjs.h. |
|
|
Definition at line 419 of file retinalobjs.h. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000