本文整理汇总了C++中udm::Object::__impl方法的典型用法代码示例。如果您正苦于以下问题:C++ Object::__impl方法的具体用法?C++ Object::__impl怎么用?C++ Object::__impl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类udm::Object
的用法示例。
在下文中一共展示了Object::__impl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
//
// Visit_PackageFile_i
//
void Stub_Generator::
Visit_PackageFile_i (const Udm::Object & obj)
{
// Gather all the necessary elements.
std::set <CHAOS::Event> events = Udm::ChildrenAttr <CHAOS::Event> (obj.__impl (), Udm::NULLCHILDROLE);
for (auto event : events)
event.Accept (*this);
// Write the output stream generators.
std::set <CHAOS::Aggregate> aggrs = Udm::ChildrenAttr <CHAOS::Aggregate> (obj.__impl (), Udm::NULLCHILDROLE);
for (auto aggr : aggrs)
aggr.Accept (*this);
std::set <CHAOS::Collection> colls = Udm::ChildrenAttr <CHAOS::Collection> (obj.__impl (), Udm::NULLCHILDROLE);
for (auto coll : colls)
coll.Accept (*this);
std::set <CHAOS::Package> packages =
Udm::ChildrenAttr <CHAOS::Package> (obj.__impl (), Udm::NULLCHILDROLE);
for (auto package : packages)
package.Accept (*this);
}
示例2: Visit_PackageFile_i
void Visit_PackageFile_i (const Udm::Object & obj)
{
// Visit all the packages.
std::vector <CHAOS::Package> packages =
Udm::ChildrenAttr <CHAOS::Package> (obj.__impl (), Udm::NULLCHILDROLE);
for (auto package : packages)
package.Accept (*this);
// Does this level contain any events.
std::vector <CHAOS::Event> events =
Udm::ChildrenAttr <CHAOS::Event> (obj.__impl (), Udm::NULLCHILDROLE);
if (!events.empty () && !this->has_events_)
this->has_events_ = true;
// Visit all the components.
std::vector <CHAOS::Component> components =
Udm::ChildrenAttr <CHAOS::Component> (obj.__impl (), Udm::NULLCHILDROLE);
for (auto component : components)
component.Accept (*this);
}
示例3: osg
//
// Visit_PackageFile_i
//
void CUTS_BE_TCPIP_Stub_Source_Generator::
Visit_PackageFile_i (const Udm::Object & obj)
{
CUTS_BE_TCPIP::Output_Stream_Source_Generator osg (this->outfile_);
CUTS_BE_TCPIP::Input_Stream_Source_Generator isg (this->outfile_);
// Gather all the necessary elements.
std::set <CHAOS::Event> events = Udm::ChildrenAttr <CHAOS::Event> (obj.__impl (), Udm::NULLCHILDROLE);
std::set <CHAOS::Aggregate> aggrs = Udm::ChildrenAttr <CHAOS::Aggregate> (obj.__impl (), Udm::NULLCHILDROLE);
std::set <CHAOS::Collection> colls = Udm::ChildrenAttr <CHAOS::Collection> (obj.__impl (), Udm::NULLCHILDROLE);
// Write the output stream generators.
for (auto aggr : aggrs)
aggr.Accept (osg);
for (auto event : events)
event.Accept (osg);
for (auto coll : colls)
coll.Accept (osg);
// Write the input stream generators.
for (auto aggr : aggrs)
aggr.Accept (isg);
for (auto event : events)
event.Accept (isg);
for (auto coll : colls)
coll.Accept (isg);
std::set <CHAOS::Package> packages =
Udm::ChildrenAttr <CHAOS::Package> (obj.__impl (), Udm::NULLCHILDROLE);
for (auto package : packages)
package.Accept (*this);
}