本文整理汇总了C++中Binding::setValue方法的典型用法代码示例。如果您正苦于以下问题:C++ Binding::setValue方法的具体用法?C++ Binding::setValue怎么用?C++ Binding::setValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Binding
的用法示例。
在下文中一共展示了Binding::setValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: bind
/** @brief Bind a Symbol to a specified value.
*
* @param symbol Non-null pointer to the Symbol to be bound or
* rebound.
*
* @param value Pointer, possibly null, to the RObject to
* which \a symbol is now to be bound. Any previous
* binding of \a symbol is overwritten.
*
* @param origin Origin of the newly bound value.
*
* @return Pointer to the resulting Binding.
*/
Binding* bind(const Symbol* symbol, RObject* value,
Frame::Binding::Origin origin = Frame::Binding::EXPLICIT)
{
Binding* bdg = obtainBinding(symbol);
bdg->setValue(value, origin);
return bdg;
}