本文整理汇总了C++中Binding::isSet方法的典型用法代码示例。如果您正苦于以下问题:C++ Binding::isSet方法的具体用法?C++ Binding::isSet怎么用?C++ Binding::isSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Binding
的用法示例。
在下文中一共展示了Binding::isSet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: binding
/** @brief Access binding of an already-defined Symbol.
*
* This function provides a pointer to the Binding of a
* Symbol. In this variant the pointer is non-const, and
* consequently the calling code can use it to modify the
* Binding (provided the Binding is not locked).
*
* @param location assigned to the Symbol in the FrameDescriptor.
*
* @return A pointer to the required binding, or a null
* pointer if it was not set.
*/
Binding* binding(int location)
{
assert(m_descriptor != nullptr);
assert(location >= 0);
assert(location < m_descriptor->getNumberOfSymbols());
Binding* binding = m_bindings + location;
if (binding->isSet()) {
return binding;
} else {
return nullptr;
}
}