本文整理汇总了C++中Namespace::edge_traverser方法的典型用法代码示例。如果您正苦于以下问题:C++ Namespace::edge_traverser方法的具体用法?C++ Namespace::edge_traverser怎么用?C++ Namespace::edge_traverser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Namespace
的用法示例。
在下文中一共展示了Namespace::edge_traverser方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ns
void
generate_forward (Context& ctx, SemanticGraph::Schema& schema)
{
ctx.os << "// Forward declarations." << endl;
Traversal::Schema traverser;
Traversal::Sources sources;
Traversal::Names schema_names;
Namespace ns (ctx);
traverser.edge_traverser (sources);
traverser.edge_traverser (schema_names);
sources.node_traverser (traverser);
schema_names.node_traverser (ns);
Traversal::Names names;
Complex complex (ctx);
Enumeration enumeration (ctx);
ns.edge_traverser (names);
names.node_traverser (complex);
names.node_traverser (enumeration);
traverser.traverse (schema);
}
示例2: ns
void
generate_inline (Context& ctx, SemanticGraph::Schema& schema, bool i)
{
Traversal::Schema traverser;
Traversal::Sources sources;
Traversal::Names schema_names;
Namespace ns (ctx);
traverser.edge_traverser (sources);
traverser.edge_traverser (schema_names);
sources.node_traverser (traverser);
schema_names.node_traverser (ns);
Traversal::Names names;
AnonymousType anonymous_type (ctx, i);
Complex complex (ctx, anonymous_type, i);
Enumeration enumeration (ctx, i);
ns.edge_traverser (names);
names.node_traverser (complex);
names.node_traverser (enumeration);
names.node_traverser (anonymous_type);
traverser.traverse (schema);
}
示例3: ns
void
generate_writer_header (Context& ctx, SemanticGraph::Schema& schema)
{
ctx.os << "#include \"XMLSchema/Writer.hpp\"" << endl
<< endl;
{
Traversal::Schema traverser;
Traversal::Sources sources;
Traversal::Names schema_names;
WriterNamespace ns (ctx);
traverser.edge_traverser (sources);
traverser.edge_traverser (schema_names);
sources.node_traverser (traverser);
schema_names.node_traverser (ns);
Traversal::Names names;
AnonymousType anonymous_type (ctx);
Complex complex (ctx, anonymous_type);
Enumeration enumeration (ctx);
ns.edge_traverser (names);
names.node_traverser (complex);
names.node_traverser (enumeration);
names.node_traverser (anonymous_type);
traverser.traverse (schema);
}
{
Traversal::Schema traverser;
Traversal::Sources sources;
Traversal::Names schema_names;
Namespace ns (ctx);
traverser.edge_traverser (sources);
traverser.edge_traverser (schema_names);
sources.node_traverser (traverser);
schema_names.node_traverser (ns);
Traversal::Names names;
Element element (ctx);
ns.edge_traverser (names);
names.node_traverser (element);
traverser.traverse (schema);
}
}
示例4: ns
void
generate_writer_source (Context& ctx, SemanticGraph::Schema& schema)
{
{
Traversal::Schema traverser;
Traversal::Sources sources;
Traversal::Names schema_names;
WriterNamespace ns (ctx);
traverser.edge_traverser (sources);
traverser.edge_traverser (schema_names);
sources.node_traverser (traverser);
schema_names.node_traverser (ns);
Traversal::Names names;
AnonymousType anonymous (ctx);
Complex complex (ctx, anonymous);
Enumeration enumeration (ctx);
ns.edge_traverser (names);
names.node_traverser (complex);
names.node_traverser (enumeration);
names.node_traverser (anonymous);
traverser.traverse (schema);
}
{
Traversal::Schema traverser;
Traversal::Sources sources;
Traversal::Names schema_names;
Namespace ns (ctx);
traverser.edge_traverser (sources);
traverser.edge_traverser (schema_names);
sources.node_traverser (traverser);
schema_names.node_traverser (ns);
Traversal::Names names;
Writer writer (ctx);
ns.edge_traverser (names);
names.node_traverser (writer);
traverser.traverse (schema);
}
}