本文整理汇总了C++中OID::a方法的典型用法代码示例。如果您正苦于以下问题:C++ OID::a方法的具体用法?C++ OID::a怎么用?C++ OID::a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OID
的用法示例。
在下文中一共展示了OID::a方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VStore
void cadence::doste::initialise(const OID &base, int n) {
names = NEW Names;
cadence::doste::OID rbase(base.a(),base.b(),0,0);
cadence::doste::OID::local(rbase);
Event::initialise();
Processor::init(n);
new cadence::doste::Processor();
new VStore();
new Number();
root = OID::create(); //Make the root object.
Event *evt = NEW Event(Event::ADD_REF, root);
evt->send(Event::FLAG_FREE);
//Now register the file objects
//Object::registerType<File>();
//Object::registerType<LocalFile>();
#ifdef LINUX
//pthread_attr_init(&pattr);
//pthread_attr_setscope(&pattr, PTHREAD_SCOPE_SYSTEM);
//pthread_attr_setdetachstate(&pattr, PTHREAD_CREATE_DETACHED);
//One for each secondary processor that the system has.
//for (int i=1; i<n; i++) {
// std::cout << "Making a processor\n";
// pthread_create(&thread[i-1], &pattr, thread_func, 0);
// usleep(10);
//}
//usleep(1000);
//pthread_create(&thread2, &pattr, thread_func, 0);
#endif
//Now make the math functions
root["math"] = OID::create();
root["math"]["tan"] = OID(0,50,0,1);
root["math"]["atan"] = OID(0,50,0,2);
root["math"]["atan2"] = OID(0,50,0,3);
root["math"]["sqrt"] = OID(0,50,0,4);
root["math"]["sin"] = OID(0,50,0,5);
root["math"]["cos"] = OID(0,50,0,6);
root["math"]["_random"] = OID(0,50,0,7);
//((OID)(root["math"])).function("random", OID(0,50,0,7)(Void));
//Now create the builtin notations
//doste::Object::registerType<DASMAgent>();
//OID notations = OID::create();
//root["notations"] = notations;
//OID dasm = OID::create();
//notations["dasm"] = dasm;
//DASMAgent *dagent = NEW DASMAgent(dasm);
}