classes
append printnames subtree wholetree
children remove unique
SYNTAX
sl = new SectionList()
DESCRIPTION
Class for creating and managing a list of sections
SEE ALSO
SectionBrowser , Shape , forsec , list
SectionList
SYNTAX
sl.append()
DESCRIPTION
append the currently accessed section to the list
SectionList
SYNTAX
n = sl.remove()
n = sl.remove(sectionlist)
DESCRIPTION
remove the currently accessed section from the list
If the argument is present then all the sections in sectionlist are
removed from sl.
Returns the number of sections removed.
SectionList
SYNTAX
sl.children()
DESCRIPTION
Appends the sections connected to the currently accessed section.
Note that this includes childred connected at position 0 of
parent.
SectionList
SYNTAX
sl.subtree()
DESCRIPTION
Appends the subtree of the currently accessed section (including that one).
SectionList
SYNTAX
sl.wholetree()
DESCRIPTION
Appends all sections which have a path to the currently accessed section
(including the currently accessed section).
SectionList
SYNTAX
n = sl.unique()
DESCRIPTION
Removes all duplicates of sections in the SectionList. I.e. ensures that
no section appears more than once. Returns the number of sections references
that were removed.
SectionList
SYNTAX
.printnames()
DESCRIPTION
print the names of the sections in the list.
The normal usage of a section list involves efficiently iterating
over all the sections in the list with
forsec sectionlist {statement}
neuron/neuron/classes/seclist.hel : 1397 Jul 19