Tag:base class

  • Secondary packaging of flutter Dio

    Time:2020-11-7

    catalog: Diomanager: DIO helper classNwmethod: request method, get, post, etcNwapi: Everybody knowsEntityfactory: JSON transforms auxiliary factory to tBaseentity < T >: data base class, the returned parameters are {“code”: 0, “message”: “,” data “: {}}Baselistentity < T >: data base class 2, the returned parameters are {“code”: 0, “message”: “,” data “: []}Errortentity: request error […]

  • Sagit.Framework Introduction to for IOS development framework 10: basic usage of stmodelbase and sthttpmodel entity base classes

    Time:2020-11-5

    preface: This article introduces the common usage of model base class stmodelbase and stmodel in SAGIT framework. Stmodelbase: the base class of all entities, from which self-defined entities inherit. Stmodel: internally pre implemented entity class used for the results returned by the sthttp network request. 1. Introduction to model related entities in the framework: Stmodel […]

  • Sagit.Framework Introduction to for IOS development framework 11: controller base class stcontroller

    Time:2020-11-2

    preface: In SAGIT framework, all new controllers and UI views need to inherit from the base class of the framework. This paper introduces the base class of controller: stcontroller Stcontroller: basic definition #import #import “STEnum.h” @class STView; @class STHttp; @class STMsgBox; @interface STController : UIViewController //! stview root view of current controller @property (nonatomic,retain) STView* […]

  • Sagit.Framework Introduction to for IOS development framework 12: uiview interface base class stview

    Time:2020-11-1

    preface: In SAGIT framework, all new controllers and UI views need to inherit from the base class of the framework. This paper introduces the base class of controller: stview. Stview: basic definition @interface STView : UIView //! corresponding controller (weak reference, otherwise double reference memory is not guaranteed) @property (nonatomic,weak) STController *Controller; //! do you […]

  • Sagit.Framework Introduction to for IOS development framework 13: tab interface controller base class sttabcontroller

    Time:2020-10-31

    preface: In SAGIT framework, all new controllers and UI views need to inherit from the base class of the framework. This paper introduces the base class of controller: sttabcontroller. Sttabcontroller: basic definition @interface STTabController : UITabBarController //! event is executed before UI initialization -(void)onInit; //! UI initialization -(void)initUI; //! event is executed after UI initialization […]

  • Detailed explanation of C + + virtual function

    Time:2020-10-23

    virtual function The function of virtual function in C + + is to realize the mechanism of polymorphism. In short, polymorphism refers to the instance of its subclass with the pointer of the parent type, and then calls the member function of the actual subclass through the pointer of the parent class. This technique allows […]

  • C + + constructors and destructors

    Time:2020-10-22

    Constructor Parameterless constructor If you create a class and you don’t write any constructors, the system will automatically generate a default parameterless constructor. The function is empty and does nothing As long as you write a certain other constructor (non parametric constructor), the system will not automatically generate such a default constructor. If you want […]

  • Implementation of think template engine in easyswoole

    Time:2020-10-14

    Five steps, using think template template template engine in easyswoole install Basic function realization Mainservercreate function registration initialization Use in controller Template rendering file Theoretical knowledge turns to official documents with linkshttps://www.easyswoole.com/Cn… install composer require easyswoole/template composer require topthink/think-template Basic class implementation App/Providers/ThinkTpl.php <?php namespace App\Providers; use EasySwoole\Template\RenderInterface; class ThinkTpl implements RenderInterface { protected $template; […]

  • C ා learning notes — class inheritance and interface

    Time:2020-10-6

    inherit Often, you need to extend existing types to add methods or data. For example, we first have a student class to store students’ names, ages and other information. Now we need to create a class named boystudent to store the interests and hobbies of male students. Because each male student is a student, all […]

  • On the elegance of commodity promotion code

    Time:2020-9-25

    Background As far as I know, almost all Internet companies have projects related to e-commerce, and in most companies, they are still important plays, such as Jingdong and Taobao. Since there are e-commerce projects, they will inevitably involve commodities. Once there are products, there will be various promotional activities, such as 20% off 100% and […]

  • What are the numbers in Python?

    Time:2020-9-16

    Huaxiamaoyu: in Python, different types of numbers can be directly used for arithmetic operations, and there is no need for explicit type conversion. However, its “implicit type conversion” may be different from other languages, because the number in Python is a special object derived from the same abstract base class. In the last article, we […]

  • Notes on pruning of Python model

    Time:2020-8-6

    Python code repository Python incorporated this part of the pruning code in November, 19. Python provides some directly available APIs. The user only needs to pass in the module instance to be pruned and the parameter name to be pruned. The system automatically helps complete the pruning operation. It seems that the interface is very […]