#include <oclist.h>
Public Member Functions | |
OcList (long=5) | |
OcList (const char *template_name) | |
virtual | ~OcList () |
void | append (Object *) |
void | prepend (Object *) |
void | insert (long, Object *) |
long | count () |
void | remove (long) |
long | index (Object *) |
Object * | object (long) |
void | remove_all () |
boolean | refs_items () |
void | create_browser (const char *name, const char *items=nil, Object *pystract=nil) |
void | create_browser (const char *name, char **pstr, const char *action) |
OcListBrowser * | browser () |
virtual void | update (Observable *) |
Private Member Functions | |
void | oref (Object *) |
void | ounref (Object *) |
Private Attributes | |
OcListImpl * | oli_ |
OcListBrowser * | b_ |
cTemplate * | ct_ |
OcList::OcList | ( | const char * | template_name | ) |
References append(), ClassObservable::Attach(), b_, ct_, hoc_execerror(), hoc_lookup(), hoc_table_lookup(), hoc_top_level_symlist, ITERATE, nil, OBJ, oli_, Symbol::type, and Symbol::u.
OcList::~OcList | ( | ) | [virtual] |
References b_, ct_, ClassObservable::Detach(), nil, oli_, and remove_all().
void OcList::append | ( | Object * | ob | ) |
OcListBrowser * OcList::browser | ( | ) |
References b_.
long OcList::count | ( | ) |
References oli_.
Referenced by append(), ivoc_list_count(), and ivoc_list_look().
void OcList::create_browser | ( | const char * | name, | |
char ** | pstr, | |||
const char * | action | |||
) |
References b_, PrintableWindow::map(), and DismissableWindow::name().
void OcList::create_browser | ( | const char * | name, | |
const char * | items = nil , |
|||
Object * | pystract = nil | |||
) |
References b_, PrintableWindow::map(), and DismissableWindow::name().
void OcList::insert | ( | long | i, | |
Object * | ob | |||
) |
Object * OcList::object | ( | long | i | ) |
References oli_.
Referenced by ivoc_list_item(), and ivoc_list_look().
void OcList::oref | ( | Object * | ob | ) | [private] |
void OcList::ounref | ( | Object * | ob | ) | [private] |
References ct_, and hoc_dec_refcount().
Referenced by remove(), and remove_all().
void OcList::prepend | ( | Object * | ob | ) |
void OcList::remove | ( | long | i | ) |
void OcList::remove_all | ( | ) |
void OcList::update | ( | Observable * | o | ) | [virtual] |
References append(), b_, ClassObservable::Create, ClassObservable::Delete, i, index(), ClassObservable::message(), and ClassObservable::object().
OcListBrowser* OcList::b_ [private] |
Referenced by append(), browser(), create_browser(), insert(), OcList(), prepend(), remove(), remove_all(), update(), and ~OcList().
cTemplate* OcList::ct_ [private] |
Referenced by OcList(), oref(), ounref(), refs_items(), and ~OcList().
OcListImpl* OcList::oli_ [private] |