|
||||||
| SUMMARY: CHILDREN | PARAMETER | INSTPROC | INSTFILTER | INSTFORWARD | DETAIL: | INSTPROC | |||||
::xotcl::Object
| Variables | |||
| Name | Default Value | Class | Comment |
| Methods | |
| Name | Comment |
add {obj prop value {pos 0}}
| |
delete {obj prop value}
| |
get {obj prop}
| |
set {obj prop value}
| Same as the Tcl set method, but in the object scope |
unknown {m args}
| |
| Methods from ::xotcl::Object |
#, ., ?, ?code, ?methods, ?object, abstract, copy, coverageFilter, defaultmethod, extractConfigureArg, filterappend, get#, getClean#, hasclass, init, methodTag, mixinappend, move, profileFilter, self, setParameterDefaults, shell, tclcmd, traceFilter,
|
| Instproc Detail |
obj prop value pos - optional, default value: 0 ::xotcl::Relations instproc add {obj prop value {pos 0}} {
$obj $prop [linsert [$obj info $prop -guards] $pos $value]
}
obj prop value ::xotcl::Relations instproc delete {obj prop value} {
set old [$obj info $prop]
set p [lsearch -glob $old $value]
if {$p>-1} {$obj $prop [lreplace $old $p $p]} else {
error "$value is not a $prop of $obj (valid are: $old)"}
}
obj prop ::xotcl::Relations instproc get {obj prop} {
$obj info $prop
}
Same as the Tcl set method, but in the object scope.
obj prop value ::xotcl::Relations instproc set {obj prop value} {
::xotcl::setrelation $obj $prop $value
}
m args ::xotcl::Relations instproc unknown {m args} {
puts "method '$m' unknown for [self]"
puts " valid commands are: {[lsort [my info procs]]}"
}