TAILIEUCHUNG - Symbian OS ExplainedEffective C++ Programming for Smartphones phần 4

Sử dụng các ngăn xếp dựa trên đối tượng các loại TFileName và TParse nên được giữ ở mức tối thiểu bởi vì họ dự trữ một số lượng lớn các ngăn xếp không gian (524 byte), thường không cần thiết. • hệ điều hành Symbian cung cấp các lớp học TLex để phân tích từ vựng và khai thác. • mô tả gói các lớp học TPckgBuf, | 90 GOOD DESCRIPTOR STYLE Use of stack-based objects of types TFileName and TParse should be kept to a minimum because they reserve a large amount of stack space 524 bytes often unnecessarily. Symbian OS provides the TLex classes for lexical analysis and extraction. The package descriptor classes TPckgBuf TPckg and TPckgC are useful template classes for type-safe wrapping of the built-in types or T class objects within descriptors. This method of descriptorizing flat data is particularly useful for passing objects between client and server and is described in detail in Chapters 10 11 and 12. 7 Dynamic Arrays and Buffers Make my skin into drumheads for the Bohemian cause The last words of Czech General Jan Zizka 1358-1424 This chapter discusses the use of the dynamic array classes RArray class T and RPointerArray class T . It also describes the CArrayX class T classes and the dynamic buffer classes they use. Dynamic array classes are very useful for manipulating collections of data without needing to know in advance how much memory to allocate for their storage. They expand as elements are added to them and unlike C arrays do not need to be created with a fixed size. Conceptually the logical layout of an array is linear like a vector. However the implementation of the dynamic array can either use a single heap cell as a flat buffer to hold the array elements or allocate the array buffer in a number of segments using a doubly-linked list to manage the segmented heap memory. Contiguous flat buffers are typically used when high-speed pointer lookup is an important consideration and when array resizing is expected to be infrequent. Segmented buffers are preferable for large amounts of data and where the array is expected to resize frequently or where a number of elements may be inserted into or deleted from the array. The capacity of a dynamic array is the number of elements the array can hold within the space currently allocated to its buffer. When the capacity is .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.