Qt: reflection of enumeration type

catalogue 1, Macro expansion 2, Q_ What are the benefits of enum? 3, Reference and use in specific projects enum DockOption { AnimatedDocks = 0x01, AllowNestedDocks = 0x02, AllowTabbedDocks = 0x04, ForceTabbedDocks = 0x08, // implies AllowTabbedDocks, !AllowNestedDocks VerticalTabs = 0x10, ...

Posted by cdrees on Fri, 28 Jan 2022 14:01:10 +0100

Systematically learn about C + + standard multithreading - thread management

catalogue catalogue Basic thread management Start thread Wait for the thread to complete Running threads in the background Pass parameters to thread function Pass a parameter Value transmission Pass reference Pass pointer Pass multiple parameters Transfer ownership of threads Select the number of threads at run time result Iden ...

Posted by Negligence on Fri, 28 Jan 2022 13:04:38 +0100

loam source code analysis 8: transformMaintenance

loam source address: https://github.com/cuitaixiang/LOAM_NOTED. Thesis study: Loam: Lidar odometry and mapping in real time. Analysis and summary of loam source code: loam source code analysis 1: scanRegistration (I). loam source code analysis 2: scanRegistration (II). loam source code analysis 3: laserOdometry (I). loam source cod ...

Posted by ubunken on Fri, 28 Jan 2022 09:38:21 +0100

Analysis of audio and video synchronization in ffplay

ffplay also adopts this synchronization strategy by default. Mainstream process The main scheme of synchronizing video to audio in ffplay is to repeat the previous frame to wait for audio if the video is played too fast; If the video playback is too slow, the frame will be lost to catch up with the audio. The logic of this part is implemente ...

Posted by dcjones on Fri, 28 Jan 2022 05:10:11 +0100

Test of libcurl sending data by POST in C + + (can be sent by json)

01. Introduction to libcurl I wrote a blog about the introduction of libcurl. If you don't know, you can turn to it: 2019 configure Http protocol and libcurl third-party library for POST communication 02. libcurl test After completing the above blog, we can write a small project to test the effect. We take Baidu as an example to tes ...

Posted by phpisawesome on Fri, 28 Jan 2022 04:28:26 +0100

The STL part of C + + of Jia Chengyang's rotten diary

Creative background: The author studied a series of courses on program design and algorithm from Professor Guo Wei of Peking University at home in the winter vacation. In order to consolidate the learning results and prepare for the Blue Bridge Cup, the author recorded this series of learning notes on CSDN. Write before: The STL part of ...

Posted by ptraffick on Fri, 28 Jan 2022 02:24:24 +0100

2045. Second short time to destination

Difficulty: difficulty catalogue 1, Problem description 2, Problem solving thought 3, Problem solving 1. Judge extreme situations 2. Code implementation 4, Summary 1, Problem description The problem description above LeetCode is directly used here. Cities are represented by a two-way connected graph, in which there are n nodes, numbe ...

Posted by habs20 on Thu, 27 Jan 2022 23:53:54 +0100

C++11: enumeration type of scope

Enumeration type is a data type that organizes a limited set of integer constants to describe the value range of variables. There are two types of enumerations in C + +: scopeless enumerations and scoped enumerations. The scope limiting enumeration type is a new type introduced by C++11 standard. ● the restricted scope enumeration type appears ...

Posted by dswain on Thu, 27 Jan 2022 20:26:14 +0100

Preliminary C + + - STL - string class, vector class and list class (use method + simulation implementation + test + idea analysis)

From today on, we officially enter the study of STL. Today we will focus on three classes -- string vector and list catalogue Introduction to STL STL version Six components of STL: Defects of STL: (understand) string class introduce Common structure description of string class 1. Common construction classes 2. Capacity operation ...

Posted by networkthis on Thu, 27 Jan 2022 19:20:15 +0100

ROS learning notes

catalogue 1, Implementation of client 1. Create client C + + files 2. Programming 2.1 include header file 2.2 initializing ROS nodes 2.3 create node handle 2.4 creating customer objects 2.5 initiator of creating request and processing response: submit request and process response 3. Disposition 4. Compilation and execution II. Optimi ...

Posted by damienwc on Thu, 27 Jan 2022 12:08:28 +0100