Ejemplo n.º 1
0
void HocCommand::init(const char* cmd, Object* obj) {
	s_ = new CopyString(cmd);
	obj_ = obj;
	po_ = NULL;
	if (obj_) {
		nrn_notify_when_void_freed((void*)obj_, this);
	}
}
Ejemplo n.º 2
0
RandomPlay::RandomPlay(Rand* r, double* px) {
//printf("RandomPlay\n");
	r_ = r;
	px_ = px;
	random_play_list_->append(this);
	ref();
	nrn_notify_when_double_freed(px_, this);
	nrn_notify_when_void_freed((void*)r->obj_, this);
}