TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 149

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 149', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | The Ptr-Patter of Little Blocks Now that we ve seen how MakeBlockResident works let s see how it is used in one of the BlockPtr classes. Because all of these classes work in much the same way we will examine only one of them in any detail. I ve chosen LittlePointerBlockPtr because it made for a better section title but any of them would have done just as well. First Figure shows the interface for this class. The interface for the LittlePointerBlockPtr class from quantum Figure blocki. 00 codelist As you can see this interface isn t very large. In fact with only one member variable and three functions it s the smallest one we ll However that doesn t mean that it is completely without interest as we ll discover. Let s start with the normal constructor shown in Figure . The normal constructor for the LittlePointerBlockPtr class from quantum Figure codelist This constructor is simple but unrevealing to see the effects of the variables it is initializing we will have to wait until we examine the LittlePointerBlock class. For now let me just say that the block number is the number of the block where the little pointer block is stored and the block manager is a pointer to the QuantumFile object that controls the quantum file where the little pointer block is stored. The block variable is a pointer to the buffer where the block is stored in memory it is assigned a value in the next function we will examine operator Figure . The LittlePointerBlockPtr operator- Function The LittlePointerBlockPtr operator- function from quantum Figure codelist block. 11 As we ve seen in the prior discussion of operator- the return value of this function will be used to point to the object for which the final function will be executed. In this case that object will be the little pointer block object embedded in this LittlePointerBlockPtr object. The main purpose of this operator- function is to

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.