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

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 158', 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 normal constructor for the PersistentArrayUlongRef class from quantum codelist This constructor sets m_PAU to a reference to p_PAU and m_Index to the value of p_Index so the object returned from the operator call will be a PersistentArrayUlongRef with those values. Therefore the compilergenerated code looks something like this so far PersistentArrayUlongRef T Save 1000000L T 1234567L where T is an arbitrary name for a temporary object. The second of these lines is then translated into a call to PersistentArrayUlongRef operator Figure to do the assignment. The PersistentArrayUlongRef operator function from quantum Figure persist. 07 codelist The generated code now looks something like this PersistentArrayUlongRef T Save 1000000L 1234567L The operator code as you can see from the figure calls the StoreElement operation for the object m_PAU which as we noted above is a reference to the original object Save the arguments to that call are m_Index a copy of the index supplied in the original operator call and p_Element which is the value specified in the operator call. Thus the result is the same as that of the statement Save . StoreElement 1000000L 1234567L while the notation is that of a normal array access. However we ve only handled the case where we re updating an element of the array. We also need to be able to retrieve values once they ve been stored. To see how that works let s follow the translation of the following line TestValue Save 1000000L The process is fairly similar to what we ve already done. The definition of PersistentArrayUlong operator causes the compiler to generate code somewhat like the following PersistentArrayUlongRef T Save 1000000L TestValue T This time however rather than translating the second line into a call to PersistentArrayUlongRef operator the compiler translates it into a call to PersistentArrayUlongRef operator Ulong a conversion function that .

Đã 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.