Ada 程式設計/庫/System.Storage_Pools.Subpools
外觀
< Ada 程式設計
此語言特性在 Ada 2012 中引入。
System.Storage_Pools.Subpools 是自 Ada 2012 以來 預定義語言環境 的一個單元。
-- Standard Ada library specification -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual -- -------------------------------------------------------------------------packageSystem.Storage_Pools.SubpoolsispragmaPreelaborate (Subpools);typeRoot_Storage_Pool_With_SubpoolsisabstractnewRoot_Storage_Poolwithprivate;typeRoot_Subpoolisabstracttaggedlimitedprivate;typeSubpool_HandleisaccessallRoot_Subpool'Class;forSubpool_Handle'Storage_Sizeuse0;functionCreate_Subpool (Pool :inoutRoot_Storage_Pool_With_Subpools)returnnotnullSubpool_Handleisabstract; -- The following operations are intended for pool implementers:functionPool_of_Subpool (Subpool :notnullSubpool_Handle)returnaccessRoot_Storage_Pool_With_Subpools'Class;procedureSet_Pool_of_Subpool ( Subpool :innotnullSubpool_Handle; To :inoutRoot_Storage_Pool_With_Subpools'Class);procedureAllocate_From_Subpool ( Pool :inoutRoot_Storage_Pool_With_Subpools; Storage_Address :outAddress; Size_In_Storage_Elements :inStorage_Elements.Storage_Count; Alignment :inStorage_Elements.Storage_Count; Subpool :innotnullSubpool_Handle)isabstractwithPre => 'Class => Pool_of_Subpool(Subpool) = Pool'Access;procedureDeallocate_Subpool ( Pool :inoutRoot_Storage_Pool_With_Subpools; Subpool :inoutSubpool_Handle)isabstractwithPre => 'Class => Pool_of_Subpool(Subpool) = Pool'Access;functionDefault_Subpool_for_Pool ( Pool :inoutRoot_Storage_Pool_With_Subpools)returnnotnullSubpool_Handle;overridingprocedureAllocate ( Pool :inoutRoot_Storage_Pool_With_Subpools; Storage_Address :outAddress; Size_In_Storage_Elements :inStorage_Elements.Storage_Count; Alignment :inStorage_Elements.Storage_Count);overridingprocedureDeallocate ( Pool :inoutRoot_Storage_Pool_With_Subpools; Storage_Address :inAddress; Size_In_Storage_Elements :inStorage_Elements.Storage_Count; Alignment :inStorage_Elements.Storage_Count)isnull;overridingfunctionStorage_Size (Pool : Root_Storage_Pool_With_Subpools)returnStorage_Elements.Storage_Countis(Storage_Elements.Storage_Count'Last);private-- not specified by the languageendSystem.Storage_Pools.Subpools;
外部示例
[編輯原始碼]- 在以下位置搜尋
System.Storage_Pools.Subpools的 示例:Rosetta Code、GitHub (gists)、任何 Alire 包 或 此華夏公益教科書。 - 在以下位置搜尋與
System.Storage_Pools.Subpools相關的 帖子:Stack Overflow、comp.lang.ada 或 任何與 Ada 相關的頁面。
FSF GNAT
- 規範:s-stposu.ads
- 主體:s-stposu.adb
drake
- 規範:s-stposu.ads
- 主體:s-stposu.adb
