On the object-oriented design of reference-counted shadow objects

SECSE '11 Pub Date : 2011-05-28 DOI:10.1145/1985782.1985786
Karla Morris, D. Rouson, Jim Xia
{"title":"On the object-oriented design of reference-counted shadow objects","authors":"Karla Morris, D. Rouson, Jim Xia","doi":"10.1145/1985782.1985786","DOIUrl":null,"url":null,"abstract":"The object-oriented programming (OOP) constructs of Fortran 2003 facilitate an elegant memory management solution of particular value when Fortran drives a second language that does not provide automatic garbage collection. More specifically, when Fortran derived types shadow a companion language's objects, safe and economical execution requires destroying the companion objects when and only when all corresponding shadows have expired. This paper focuses on the object-oriented design (OOD) of reference-counted shadow objects. The presented class structure automatically controls the lifetimes of any shadow objects that extend a universal parent class. The paper also discusses a relevant use case in ForTrilinos, a set of object-oriented Fortran interfaces to C++ packages in the Trilinos parallel numerical solver library1.","PeriodicalId":359782,"journal":{"name":"SECSE '11","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2011-05-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"SECSE '11","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1985782.1985786","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

The object-oriented programming (OOP) constructs of Fortran 2003 facilitate an elegant memory management solution of particular value when Fortran drives a second language that does not provide automatic garbage collection. More specifically, when Fortran derived types shadow a companion language's objects, safe and economical execution requires destroying the companion objects when and only when all corresponding shadows have expired. This paper focuses on the object-oriented design (OOD) of reference-counted shadow objects. The presented class structure automatically controls the lifetimes of any shadow objects that extend a universal parent class. The paper also discusses a relevant use case in ForTrilinos, a set of object-oriented Fortran interfaces to C++ packages in the Trilinos parallel numerical solver library1.
引用计数阴影对象的面向对象设计
当Fortran驱动的第二种语言不提供自动垃圾收集时,Fortran 2003的面向对象编程(OOP)结构提供了一种优雅的内存管理解决方案,具有特殊的价值。更具体地说,当Fortran派生类型为伴生语言的对象提供影子时,安全且经济的执行要求在且仅当所有相应的影子过期时销毁伴生对象。本文研究了参考计数阴影对象的面向对象设计(OOD)。所呈现的类结构自动控制扩展通用父类的任何影子对象的生存期。本文还讨论了ForTrilinos中的一个相关用例,这是一组面向对象的Fortran接口,用于Trilinos并行数值求解库中的c++包1。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信