Compile-Time Compression and Resource Generation with C++20
that take a user-suppiled lambda to generate the data needed to render our desired compile-time resource! These are e�ectively templated functions, but we will use the cleaner auto parameter syntax for0 码力 | 59 页 | 1.86 MB | 5 月前3Back to Basics: Exceptions
Write Exception-Safe Code 53 class Widget { private: int i{ 0 }; std::string s{}; Resource* pr{}; // May be nullptr public: // … // … }; 1 2 3 4 5 6 7 8 9 10 11 12 s{}; Resource* pr{}; // May be nullptr public: // … // Copy constructor Widget( Widget const& w ) : i { w.i } , s { w.s } { if( w.pr ) pr = new Resource( *w.pr s{}; Resource* pr{}; // May be nullptr public: // … // Copy constructor Widget( Widget const& w ) : i { w.i } , s { w.s } { if( w.pr ) pr = new Resource( *w.pr0 码力 | 111 页 | 4.87 MB | 5 月前3Back to Basics: Smart Pointers
automatically manage the lifetime of its resource. ▪ Smart Pointers ▪ Allocate und deallocate their resource in the constructor and destructor according to the RAII idiom (Resource Acquisition Is Initialization) ▪ Release the resource if the smart pointer goes out of scope ▪ Are available in four versions raii.cppOverview Name C++ Standard Description std::auto_ptr C++98 ▪ Owns the resource exclusively ▪ „Moves“ its resource during a copy operation std::unique_ptr C++11 ▪ Owns the resource exclusively ▪ Can not be copied ▪ Deals with non-copy objects std::shared_ptr C++11 ▪ Shares a resource ▪ Supports0 码力 | 30 页 | 625.43 KB | 5 月前3Data Structures That Make Video Games Go Round
Environment Variables. ● Error Handler. ● Job system. ● Resource Registry. ● Reads boot data. ● Listens to kernel message pump.Resource Registry Games are constructed with a wide variety of resources meshes, materials, sounds, animations and many more. The resource registry acts as a place to store, manage and manipulate those resources. Resource Registry Renderer Physics System AI Audio compressed_textures behavior_trees audioResource Registry Resource Registry Level is streamed in Resource bundle / pack is unloaded resource_registry.get(“baz/bar/foo.wav”) resource_registry.get (“D271A15B- D4B 0 码力 | 196 页 | 3.03 MB | 5 月前3Delivering safe C++
+ community There is no C/C++ language. Write contemporary C++ An opportunityComplete type-and-resource safety • Is an ideal (aim) of C++ • From very early on (1979) • But “being careful” doesn’t scale achieving that can be found in A brief introduction to C++'s model for type- and resource-safety (2015) and Type-and-resource safety in modern C++ (2021). • No limitations of what can be expressed • Compared October 2023 7Type-and-resource safety • Every object is accessed according to the type with which it was defined (type safety) • Every object is properly constructed and destroyed (resource safety) • Every0 码力 | 74 页 | 2.72 MB | 5 月前3TiDB v8.5 Documentation
· · · · · · · · · · · · 1400 8.6 Use Resource Control to Achieve Resource Isolation · · · · · · · · · · · · · · · · · · · · · · 1402 8.6.1 Scenarios for resource control· · · · · · · · · · · · · · · · · · · · · · · 1404 8.6.4 Parameters for resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1405 13 8.6.5 How to use resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1406 8.6.6 Disable resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1417 8.6.7 View RU consumption· · · · ·0 码力 | 6730 页 | 111.36 MB | 9 月前3TiDB v8.4 Documentation
· · · · · · · · · · 1101 9 8.6 Use Resource Control to Achieve Resource Isolation · · · · · · · · · · · · · · · · · · · · · · 1103 8.6.1 Scenarios for resource control· · · · · · · · · · · · · · · · · · · · · · · · 1105 8.6.4 Parameters for resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1106 8.6.5 How to use resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1107 8.6.6 Disable resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1118 8.6.7 View RU consumption· · · · · ·0 码力 | 6705 页 | 110.86 MB | 9 月前3Back to Basics: Designing Classes (part 1 of 2)
Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management Back to Basics: Class Design (Part 2) Implementation Guidelines Data Member Initialization Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management Back to Basics: Class Design (Part 2) Implementation Guidelines Data Member Initialization Readability Design for Change and Extension Design for Testability Implementation Guidelines Resource Management Back to Basics: Class Design (Part 2) Implementation Guidelines Data Member Initialization0 码力 | 87 页 | 5.64 MB | 5 月前3TiDB v8.2 Documentation
· · · · · · · · · · · · 1016 8.6 Use Resource Control to Achieve Resource Isolation · · · · · · · · · · · · · · · · · · · · · · 1018 8.6.1 Scenarios for resource control· · · · · · · · · · · · · · · · · · · · · · · · 1020 8.6.4 Parameters for resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1021 8.6.5 How to use resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1022 8.6.6 Disable resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1032 8.6.7 View RU consumption· · · · · ·0 码力 | 6549 页 | 108.77 MB | 9 月前3TiDB v8.3 Documentation
· · · · · · · · · · · · 1021 8.6 Use Resource Control to Achieve Resource Isolation · · · · · · · · · · · · · · · · · · · · · · 1023 8.6.1 Scenarios for resource control· · · · · · · · · · · · · · · · · · · · · · · · 1025 8.6.4 Parameters for resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1026 8.6.5 How to use resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1027 8.6.6 Disable resource control · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 1037 8.6.7 View RU consumption· · · · · ·0 码力 | 6606 页 | 109.48 MB | 9 月前3
共 202 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21