本文整理汇总了C++中MultiPass类的典型用法代码示例。如果您正苦于以下问题:C++ MultiPass类的具体用法?C++ MultiPass怎么用?C++ MultiPass使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MultiPass类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: is_unique
static bool is_unique(MultiPass const& mp)
{
return 0 == mp.shared() || 1 == mp.shared()->count;
}
示例2: clone
static void clone(MultiPass& mp)
{
if (0 != mp.shared())
++mp.shared()->count;
}
示例3: release
static bool release(MultiPass& mp)
{
return 0 != mp.shared() && 0 == --mp.shared()->count;
}
示例4: has_include_guards
static bool has_include_guards(MultiPass& mp, std::string& guard_name)
{
return mp.shared()->ftor->has_include_guards(guard_name);
}
示例5: set_position
static void set_position(MultiPass& mp, position_type const &pos)
{
mp.shared()->ftor->set_position(pos);
}
示例6: destroy
static void destroy(MultiPass& mp)
{
delete mp.shared()->ftor;
}
示例7: clear_queue
static void clear_queue(MultiPass& mp)
{
++mp.shared()->shared_buf_id;
++mp.buf_id;
}
示例8: check
static void check(MultiPass const& mp)
{
if (mp.buf_id != mp.shared()->shared_buf_id)
boost::throw_exception(illegal_backtracking());
}