本文整理汇总了C++中CObjRef类的典型用法代码示例。如果您正苦于以下问题:C++ CObjRef类的具体用法?C++ CObjRef怎么用?C++ CObjRef使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CObjRef类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unmarshal
void FiberReferenceMap::unmarshal(Object &dest, CObjRef src, char strategy) {
if (strategy != FiberAsyncFunc::GlobalStateIgnore) {
dest = src.fiberUnmarshal(*this);
}
}
示例2: f_hphp_get_property
Variant f_hphp_get_property(CObjRef obj, CStrRef cls, CStrRef prop) {
return obj->o_get(prop);
}
示例3:
RecursiveIteratorIterator::RecursiveIteratorIterator(CObjRef iterator,
int mode, int flags) : m_iterator(iterator), m_mode(mode), m_flags(flags) {
m_iterators.push_back(std::make_pair(iterator.get(), 0));
iterator->incRefCount();
}
示例4: more
bool Array::more(CObjRef v2) const {
if (m_px == NULL || v2.get() == NULL) {
return HPHP::more(toBoolean(), v2.toBoolean());
}
return true;
}
示例5: match
bool CatchBlock::match(CObjRef exn) const {
return exn.instanceof(m_ename.c_str());
}
示例6: less
bool String::less(CObjRef v2) const {
if (m_px == NULL || v2.get() == NULL) {
return HPHP::less(toBoolean(), v2.toBoolean());
}
return true;
}
示例7: setCurrentObject
void VariableEnvironment::setCurrentObject(CObjRef co) {
ASSERT(!m_currentClass);
m_currentObject = co;
m_currentClass = co->o_getClassName();
get("this") = co;
}
示例8: rvalAt
String String::rvalAt(CObjRef key) const {
return rvalAtImpl(key.toInt32());
}
示例9: lvalAt
StringOffset String::lvalAt(CObjRef key) {
return lvalAtImpl(key.toInt32());
}
示例10: equal
bool Array::equal(CObjRef v2) const {
if (m_px == nullptr || v2.get() == nullptr) {
return HPHP::equal(toBoolean(), v2.toBoolean());
}
return false;
}
示例11: f_get_resource_type
String f_get_resource_type(CObjRef handle) {
if (handle.isResource()) {
return handle->o_getClassName();
}
return "";
}
示例12: marshal
void FiberReferenceMap::marshal(Object &dest, CObjRef src) {
dest = src.fiberMarshal(*this);
}
示例13: more
bool Object::more(CObjRef v2) const {
return m_px != v2.m_px && toArray().more(v2.toArray());
}
示例14: more
bool String::more(CObjRef v2) const {
if (m_px == NULL || v2.get() == NULL) {
return HPHP::more(toBoolean(), v2.toBoolean());
}
return false;
}
示例15: setCurrentObject
void VariableEnvironment::setCurrentObject(CObjRef co) {
ASSERT(!m_currentClass);
m_currentObject = co;
m_currentClass = co->o_getClassName();
getVar(s_this, SgNormal) = co;
}