您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ uPtr函数代码示例

51自学网 2021-06-03 09:03:12
  C++
这篇教程C++ uPtr函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中uPtr函数的典型用法代码示例。如果您正苦于以下问题:C++ uPtr函数的具体用法?C++ uPtr怎么用?C++ uPtr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了uPtr函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: uPtr

// public bool Apply(object obj) [instance] :101bool UxTemplate::Apply(uObject* obj){    if (!uUnbox<bool>(::TYPES[0/*bool*/], uPtr(_matches)->Invoke(1, obj)))        return true;    return uUnbox<bool>(::TYPES[0/*bool*/], uPtr(_apply)->Invoke(1, obj));}
开发者ID:marcosaguileraely,项目名称:Thermal-2,代码行数:8,


示例2: U_THROW

// public byte[] ReadBytes(int byteCount) [instance] :57uArray* BinaryReader::ReadBytes(int byteCount){    if (byteCount < 0)        U_THROW(::g::Uno::ArgumentOutOfRangeException::New6(::STRINGS[0/*"byteCount"*/]));    uArray* buffer = uArray::New(::TYPES[0/*byte[]*/], byteCount);    int offset = 0;    do    {        int read = uPtr(_stream)->Read(buffer, offset, byteCount - offset);        offset = offset + read;        if (read == 0)            break;    }    while (offset < byteCount);    if (offset == byteCount)        return buffer;    uArray* result = uArray::New(::TYPES[0/*byte[]*/], offset);    for (int i = 0; i < offset; i++)        uPtr(result)->Item<uint8_t>(i) = uPtr(buffer)->Item<uint8_t>(i);    return result;}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:29,


示例3: uPtr

// public static operator ==(Android.Base.Wrappers.JWrapper a, Android.Base.Wrappers.JWrapper b) [static] :2636bool JWrapper::op_Equality(JWrapper* a, JWrapper* b){    if ((a == NULL) || (b == NULL))        return b == a;    else        return ::g::Android::Base::JNI::IsSameObject(uPtr(a)->_GetJavaObject(), uPtr(b)->_GetJavaObject());}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:8,


示例4: uPtr

// private void fireResultCode() [instance] :418void AndroidCameraImpl__TakePictureTask::fireResultCode(){    ::g::Fuse::Camera::AndroidCameraImpl::_pendingTask() = NULL;    if (_success)        ::g::Uno::Threading::Promise__Resolve_fn(uPtr(_futurePath), ::g::Fuse::Camera::PictureResult::New1(_payload, 0));    else        uPtr(_futurePath)->Reject(::g::Uno::Exception::New2(_payload));}
开发者ID:Florestamx,项目名称:floresta,代码行数:10,


示例5: uPtr

// public void Flush() [instance] :1967void StreamWriter::Flush(){    if (_index != 0)    {        uPtr(_stream)->Write(_buffer, 0, _index);        _index = 0;    }    uPtr(_stream)->Flush();}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:11,


示例6: uPtr

// public static int get_TimestampNow() [static] :11int DateUtil::TimestampNow(){    ::g::Uno::Time::ZonedDateTime* d = ::g::Uno::DateTime::Now();    int mon = ((uPtr(d)->Year() - 2000) * 12) + uPtr(d)->Month();    int day = (mon * 31) + d->Day();    int hour = (day * 24) + d->Hour();    int min = (hour * 60) + d->Minute();    int sec = (min * 60) + d->Second();    return sec;}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:11,


示例7: FileCache_typeof

// public static void Update(string path, byte[] bytes) [static] :157void FileCache::Update(uString* path, uArray* bytes){    FileCache_typeof()->Init();    bool ret3;    ::g::Outracks::Simulator::ByteFileSource* fs = NULL;    if ((::g::Uno::Collections::Dictionary__TryGetValue_fn(uPtr(FileCache::_cache()), path, (void**)(&fs), &ret3), ret3))        uPtr(fs)->Update(bytes);    else        ::g::Uno::Collections::Dictionary__set_Item_fn(uPtr(FileCache::_cache()), path, ::g::Outracks::Simulator::ByteFileSource::New1(path, bytes));}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:12,


示例8: __

// public static int get_TimestampNow() [static] :11int DateUtil::TimestampNow(){    uStackFrame __("Experimental.Http.Internal.DateUtil", "get_TimestampNow()");    ::g::Uno::Time::ZonedDateTime* d = ::g::Uno::DateTime::Now();    int mon = ((uPtr(d)->Year() - 2000) * 12) + uPtr(d)->Month();    int day = (mon * 31) + d->Day();    int hour = (day * 24) + d->Hour();    int min = (hour * 60) + d->Minute();    int sec = (min * 60) + d->Second();    return sec;}
开发者ID:Florestamx,项目名称:floresta,代码行数:12,


示例9: U_THROW_IOORE

uType* uType::MakeGeneric(size_t count, uType** args){    if (count != GenericCount)        U_THROW_IOORE();    uPtr(args);    for (size_t i = 0; i < count; i++)        uPtr(args[i]);    return uGetParameterization(uTypeKey(this, args));}
开发者ID:brapastor,项目名称:Fuse_Pract,代码行数:11,


示例10: MemoryStream__Read_fn

// public override sealed int Read(byte[] dst, int byteOffset, int byteCount) :1327void MemoryStream__Read_fn(MemoryStream* __this, uArray* dst, int* byteOffset, int* byteCount, int* __retval){    int byteCount_ = *byteCount;    int byteOffset_ = *byteOffset;    int i = 0;    for (; (i < byteCount_) && ((__this->Position() + (int64_t)i) < __this->Length()); i++)        uPtr(dst)->Item<uint8_t>(i + byteOffset_) = uPtr(__this->_buffer)->Item<uint8_t>((int)__this->Position() + i);    __this->Position(__this->Position() + (int64_t)i);    return *__retval = i, void();}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:13,


示例11: HamburgerIcon__Template__OnApply_fn

// protected override sealed void OnApply(Fuse.Controls.Rectangle self) :13void HamburgerIcon__Template__OnApply_fn(HamburgerIcon__Template* __this, ::g::Fuse::Controls::Rectangle* self){    bool ret2;    bool ret3;    bool ret4;    ::g::Fuse::Drawing::SolidColor* temp = ::g::Fuse::Drawing::SolidColor::New1();    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::Rectangle::CornerRadiusProperty()), self, uCRef(::g::Uno::Float4__New2(3.0f, 3.0f, 3.0f, 3.0f)), &ret2);    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Elements::Element::HeightProperty()), self, uCRef(3.0f), &ret3);    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Elements::Element::MarginProperty()), self, uCRef(::g::Uno::Float4__New2(0.0f, 2.0f, 0.0f, 2.0f)), &ret4);    temp->Color(::g::Uno::Float4__New2(1.0f, 1.0f, 1.0f, 1.0f));    uPtr(self)->AddStyleFill(temp);}
开发者ID:ie-ModelingAndDesign,项目名称:2015-B,代码行数:13,


示例12: MainView__Template__OnApply_fn

// protected override sealed void OnApply(Fuse.Controls.Text self) :41void MainView__Template__OnApply_fn(MainView__Template* __this, ::g::Fuse::Controls::Text* self){    bool ret2;    bool ret3;    bool ret4;    bool ret5;    bool ret6;    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::TextWrappingProperty()), self, uCRef<int>(1), &ret2);    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::FontSizeProperty()), self, uCRef(16.0f), &ret3);    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::TextAlignmentProperty()), self, uCRef<int>(1), &ret4);    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Controls::TextControl::TextColorProperty()), self, uCRef(::g::Uno::Float4__New2(1.0f, 1.0f, 1.0f, 1.0f)), &ret5);    ::g::Fuse::StyleProperty1__SetStyle_fn(uPtr(::g::Fuse::Elements::Element::YProperty()), self, uCRef(100.0f), &ret6);}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:14,


示例13: __

// private void InitializeUX() [instance] :10void Cloud::InitializeUX(){    uStackFrame __("Cloud", "InitializeUX()");    ::g::Fuse::Controls::Image* temp = ::g::Fuse::Controls::Image::New2();    ::g::Fuse::Effects::DropShadow* temp1 = ::g::Fuse::Effects::DropShadow::New1();    temp->Color(::g::Uno::Float4__New2(0.4235294f, 0.4156863f, 0.4705882f, 1.0f));    temp->Alignment(10);    temp->File(::g::Uno::UX::BundleFileSource::New1(::g::outsideTheBox_bundle::cloudf6cd2dfe()));    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp->Effects()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[4/*Fuse.Effects.Effect*/])), temp1);    temp1->Size(5.0f);    temp1->Distance(10.0f);    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[7/*Fuse.Node*/])), temp);}
开发者ID:deliloka,项目名称:bethebox,代码行数:14,


示例14: uPtr

// private void InitializeUX() [instance] :29void CloseIcon::InitializeUX(){    CloseIcon__Template* collection1;    ::g::Fuse::Style* temp = ::g::Fuse::Style::New1();    collection1 = CloseIcon__Template::New1(this);    uPtr(collection1)->Cascade(true);    true;    uPtr(collection1)->AffectSubtypes(true);    true;    CloseIcon__Template* temp1 = collection1;    ::g::Fuse::Controls::Rectangle* temp2 = ::g::Fuse::Controls::Rectangle::New2();    ::g::Fuse::Rotation* temp3 = ::g::Fuse::Rotation::New1();    ::g::Fuse::Controls::Rectangle* temp4 = ::g::Fuse::Controls::Rectangle::New2();    ::g::Fuse::Rotation* temp5 = ::g::Fuse::Rotation::New1();    Width(25.0f);    Height(25.0f);    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp->Templates()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[3/*Uno.UX.ITemplate*/])), (uObject*)temp1);    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp2->Transforms()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[5/*Fuse.Transform*/])), temp3);    temp3->Degrees(45.0f);    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp4->Transforms()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[5/*Fuse.Transform*/])), temp5);    temp5->Degrees(-45.0f);    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[4/*Fuse.Node*/])), temp2);    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[4/*Fuse.Node*/])), temp4);    ::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Styles()), ::g::Uno::Collections::ICollection_typeof()->MakeType(::TYPES[2/*Fuse.Style*/])), temp);}
开发者ID:ie-ModelingAndDesign,项目名称:2015-B,代码行数:26,


示例15: NameRegistry_typeof

// public static void ClearName(object obj) [static] :45void NameRegistry::ClearName(uObject* obj){    NameRegistry_typeof()->Init();    bool ret9;    uString* ret10;    bool ret11;    if ((::g::Uno::Collections::Dictionary__ContainsKey_fn(uPtr(NameRegistry::_names()), obj, &ret9), ret9))    {        uString* name = (::g::Uno::Collections::Dictionary__get_Item_fn(uPtr(NameRegistry::_names()), obj, &ret10), ret10);        ::g::Uno::Collections::Dictionary__Remove_fn(uPtr(NameRegistry::_names()), obj, &ret11);        NameRegistry::NotifyNameChanged(obj, name);    }}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:15,


示例16: __

// public Fuse.Drawing.Polygon get_Output() [instance] :185::g::Fuse::Drawing::Polygon* Stroke::Output(){    uStackFrame __("Fuse.Entities.Processing.Stroke", "get_Output()");    ::g::Fuse::Drawing::Polygon* ret2;    ::g::Fuse::Drawing::Polygon* ret3;    if (_output != NULL)        return _output;    if ((_source == NULL) || ((::g::Fuse::IOutput::get_Output_ex(uInterface(uPtr(_source), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), &ret2), ret2) == NULL))        return NULL;    _output = uPtr((::g::Fuse::IOutput::get_Output_ex(uInterface(uPtr(Source()), ::TYPES[2/*Fuse.IOutput<Fuse.Drawing.Polygon>*/]), &ret3), ret3))->Stroke(::g::Uno::Math::Max1(0.1f, Width()), Offset(), StartCap(), EndCap());    return _output;}
开发者ID:deliloka,项目名称:bethebox,代码行数:16,


示例17: MemoryStream__Write_fn

// public override sealed void Write(byte[] src, int byteOffset, int byteCount) :1313void MemoryStream__Write_fn(MemoryStream* __this, uArray* src, int* byteOffset, int* byteCount){    int byteCount_ = *byteCount;    int byteOffset_ = *byteOffset;    __this->EnsureCapacity(byteCount_);    for (int i = byteOffset_; i < (byteOffset_ + byteCount_); i++)    {        uPtr(__this->_buffer)->Item<uint8_t>((int)__this->Position()) = uPtr(src)->Item<uint8_t>(i);        __this->Position(__this->Position() + 1LL);    }    if (__this->Position() > __this->Length())        __this->_length = __this->Position();}
开发者ID:blyk,项目名称:BlackCode-Fuse,代码行数:16,


示例18: __

// private void OnPointerWheelChanged(object sender, Uno.Platform.PointerEventArgs args) [instance] :166void DesktopRootViewport::OnPointerWheelChanged(uObject* sender, ::g::Uno::Platform::PointerEventArgs* args){    uStackFrame __("Fuse.Desktop.DesktopRootViewport", "OnPointerWheelChanged(object,Uno.Platform.PointerEventArgs)");    try    {        if (Content() != NULL)            uPtr(args)->Handled(uPtr(::g::Fuse::Input::Pointer::RaiseWheelMoved(Content(), TranslatePointerEvent(args)))->IsHandled());    }    catch (const uThrowable& __t)    {        ::g::Uno::Exception* e = __t.Exception;        ::g::Fuse::AppBase::OnUnhandledExceptionInternal(e);    }}
开发者ID:deliloka,项目名称:bethebox,代码行数:16,


示例19: UxProperty__OnSet_fn

// protected override sealed void OnSet(T value, object origin) :52void UxProperty__OnSet_fn(UxProperty* __this, void* value, uObject* origin){    uType* __types[] = {        __this->__type->T(0),    };    uPtr(__this->_setter)->Invoke(2, uBoxPtr(__types[0], value), origin);}
开发者ID:marcosaguileraely,项目名称:Thermal-2,代码行数:8,


示例20: UxProperty__OnRemoveListener_fn

// protected override sealed void OnRemoveListener(Uno.UX.ValueChangedHandler<T> listener) :71void UxProperty__OnRemoveListener_fn(UxProperty* __this, uDelegate* listener){    if (::g::Uno::Delegate::op_Equality(__this->_remover, NULL))        return;    uPtr(__this->_remover)->InvokeVoid(listener);}
开发者ID:marcosaguileraely,项目名称:Thermal-2,代码行数:8,


示例21: UxProperty__OnGet_fn

// protected override sealed T OnGet() :58void UxProperty__OnGet_fn(UxProperty* __this, uTRef __retval){    uType* __types[] = {        __this->__type->T(0),    };    return __retval.Store(__types[0], uUnboxAny(__types[0], uPtr(__this->_getter)->Invoke())), void();}
开发者ID:marcosaguileraely,项目名称:Thermal-2,代码行数:8,


示例22: __

// public static Outracks.Simulator.ByteFileSource GetFileSource(string path) [static] :168::g::Outracks::Simulator::ByteFileSource* FileCache::GetFileSource(uString* path){    uStackFrame __("Outracks.Simulator.FileCache", "GetFileSource(string)");    FileCache_typeof()->Init();    ::g::Outracks::Simulator::ByteFileSource* ret2;    return (::g::Uno::Collections::Dictionary__get_Item_fn(uPtr(FileCache::_cache()), path, &ret2), ret2);}
开发者ID:hhalse,项目名称:PullToPunish,代码行数:8,


示例23: U_ASSERT

uDelegate* uDelegate::New(uType* type, uObject* object, size_t offset, uType* generic){    U_ASSERT(offset && offset < 0xffff); // Max 
C++ u_UCharsToChars函数代码示例
C++ uNew函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。