چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

Boost C++ 1.53.0 Application Development Cookbook_eBook

Antony Polukhin

قیمت نهایی

۴۴٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۰٪ تخفیف
  • تخفیف زمان‌دار−۵٬۰۰۰ تومان

۵٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

نویسنده
Antony Polukhin
سال انتشار
۲۰۱۳
فرمت
PDF
زبان
انگلیسی
تعداد صفحات
۵ صفحه
حجم فایل
۳٫۸ مگابایت
شابک
9781628704419، 9781849514880، 9781849514897، 1628704411، 1849514887، 1849514895

دربارهٔ کتاب

Over 80 practical, task-based recipes to create applications using Boost libraries Overview Explores how to write a program once and then use it on Linux, Windows, MacOS, and Android operating systems Includes everyday use recipes for multithreading, networking, metaprogramming, and generic programming from a Boost library developer Take advantage of the real power of Boost and C++, to get a good grounding in using it in any project Cover 1 Copyright 3 Credits 4 About the Author 5 About the Reviewers 6 www.PacktPub.com 7 Table of Contents 8 Preface 12 Chapter 1: Starting to Write Your Application 18 Introduction 18 Getting configuration options 19 Storing any value in a container/variable 24 Storing multiple chosen types in a variable/container 27 Using a safer way to work with a container that stores multiple chosen types 29 Returning a value or flag where there is no value 33 Returning an array from a function 36 Combining multiple values into one 39 Reordering the parameters of function 41 Binding a value as a function parameter 45 Using the C++11 move emulation 48 Making a noncopyable class 51 Making a noncopyable but movable class 53 Chapter 2: Converting Data 58 Introduction 58 Converting strings to numbers 59 Converting numbers to strings 62 Converting numbers to numbers 64 Converting user-defined types to/from strings 67 Casting polymorphic objects 70 Parsing simple input 72 Parsing input 77 Chapter 3: Managing Resources 82 Introduction 82 Managing pointers to classes that do not leave scope 83 Reference counting of pointers to classes used across methods 85 Managing pointers to arrays that do not leave scope 88 Reference counting pointers to arrays used across methods 90 Storing any functional objects in a variable 93 Passing a function pointer in a variable 96 Passing C++11 lambda functions in a variable 97 Containers of pointers 99 Doing something at scope exit 102 Initializing the base class by a member of the derived class 104 Chapter 4: Compile-time Tricks 108 Introduction 108 Checking sizes at compile time 109 Enabling the usage of templated functions for integral types 113 Disabling templated functions' usage for real types 117 Creating a type from number 119 Implementing a type trait 122 Selecting an optimal operator for a template parameter 124 Getting a type of expression in C++03 127 Chapter 5: Multithreading 132 Introduction 132 Creating an execution thread 133 Syncing access to a common resource 137 Fast access to common resource using atomics 142 Creating a work_queue class 145 Multiple-readers-single-writer lock 149 Creating variables that are unique per thread 152 Interrupting a thread 155 Manipulating a group of threads 157 Chapter 6: Manipulating Tasks 160 Introduction 160 Registering a task for processing an arbitrary datatype 161 Making timers and processing timer events as tasks 165 Network communication as a task 168 Accepting incoming connections 175 Executing different tasks in parallel 180 Conveyor tasks processing 182 Making a nonblocking barrier 187 Storing an exception and making a task from it 192 Getting and processing system signals as tasks 196 Chapter 7: Manipulating Strings 200 Introduction 200 Changing cases and case-insensitive comparison 200 Matching strings using regular expressions 203 Searching and replacing strings using regular expressions 207 Formatting strings using safe printf-like functions 210 Replacing and erasing strings 212 Representing a string with two iterators 214 Using a reference to string type 217 Chapter 8: Metaprogramming 222 Introduction 222 Using type "vector of types" 223 Manipulating a vector of types 228 Getting a function's result type at compile time 233 Making a higher-order metafunction 236 Evaluating metafunctions lazily 238 Converting all the tuple elements to strings 241 Splitting tuples 245 Chapter 9: Containers 250 Introduction 250 Comparing strings in an ultra-fast manner 251 Using an unordered set and map 255 Making a map, where value is also a key 259 Using multi-index containers 263 Getting the benefits of single-linked list and memory pool 269 Using flat associative containers 274 Chapter 10: Gathering Platform and Compiler Information 278 Introduction 278 Detecting int128 support 279 Detecting RTTI support 281 Speeding up compilation using C++11 extern templates 283 Writing metafunctions using simpler methods 285 Reducing code size and increasing 287 performance of user-defined types (UDTs) in C++11 287 The portable way to export and import functions and classes 290 Detecting the Boost version and getting latest features 293 Chapter 11: Working with the System 296 Introduction 296 Listing files in a directory 297 Erasing and creating files and directories 299 Passing data quickly from one process to another 302 Syncing interprocess communications 305 Using pointers in shared memory 308 The fastest way to read files 311 Coroutines – saving the state and postponing the execution 313 Chapter 12: Scratching the Tip of the Iceberg 318 Introduction 318 Working with graphs 319 Visualizing graphs 323 Using a true random number generator 326 Using portable math functions 328 Writing test cases 330 Combining multiple test cases in one test module 332 Manipulating images 334 Index 340

In Detail

Boost libraries are developed by professionals, tested on multiple platforms and processor architectures, and contain reliable solutions for a wide range of tasks. This Cookbook takes you on a journey of simplifying the process of application development and guides you through writing perfect applications fast.

"Boost C++ Application Development Cookbook" provides you with a number of clear step-by-step recipes that will help you take advantage of the real power of Boost and C++, while giving you a good grounding in using it in any project.

"Boost C++ Application Development Cookbook" looks at the Boost libraries, and breaks down the mystery and confusion about which library to use in which situation. It will take you through a number of clear, practical recipes that will help you to take advantage of the readily available solutions.

Boost C++ Application Development Cookbook starts with teaching the basics of Boost libraries that are now mostly part of C++11 and leave no chance for memory leaks. Managing resources will become a piece of cake. Well see what kind of work can be done at compile time and what Boost containers can do. Do you think multithreading is a burden? Not with Boost. Think writing portable and fast servers is impossible? Youll be surprised! Compilers and operating systems differ too much? Not with Boost. From manipulating images to graphs, directories, timers, files, strings everyone will find an interesting topic.

You will learn everything for the development of high quality fast and portable applications. Write a program once and then you can use it on Linux, Windows, MacOS, Android operating systems.

Approach

This book follows a cookbook approach, with detailed and practical recipes that use Boost libraries.

Who this book is for

This book is great for developers new to Boost, and who are looking to improve their knowledge of Boost and see some undocumented details or tricks. Its assumed that you will have some experience in C++ already, as well being familiar with the basics of STL. A few chapters will require some previous knowledge of multithreading and networking. You are expected to have at least one good C++ compiler and compiled version of Boost (1.53.0 or later is recommended), which will be used during the exercises within this book.

Annotation Boost libraries are developed by professionals, tested on multiple platforms and processor architectures, and contain reliable solutions for a wide range of tasks. This Cookbook takes you on a journey of simplifying the process of application development and guides you through writing perfect applications fast."Boost C++ Application Development Cookbook" provides you with a number of clear step-by-step recipes that will help you take advantage of the real power of Boost and C++, while giving you a good grounding in using it in any project."Boost C++ Application Development Cookbook" looks at the Boost libraries, and breaks down the mystery and confusion about which library to use in which situation. It will take you through a number of clear, practical recipes that will help you to take advantage of the readily available solutions. Boost C++ Application Development Cookbook starts with teaching the basics of Boost libraries that are now mostly part of C++11 and leave no chance for memory leaks. Managing resources will become a piece of cake. Well see what kind of work can be done at compile time and what Boost containers can do. Do you think multithreading is a burden? Not with Boost. Think writing portable and fast servers is impossible? Youll be surprised! Compilers and operating systems differ too much? Not with Boost. From manipulating images to graphs, directories, timers, files, strings everyone will find an interesting topic. You will learn everything for the development of high quality fast and portable applications. Write a program once and then you can use it on Linux, Windows, MacOS, Android operating systems

قیمت نهایی

۴۴٬۰۰۰ تومان