You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #167 on August 26, 2024 13:31.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我们有多个类负责从磁盘上读取网格信息,在分析程序中提供只读的功能。这类数据可以设计成单例模式。这样我们可以像全局变量一样使用他们,即不用将他们在多个函数的argument中传递。这将大大简化程序的设计和实现。
关于单例模式:https://en.wikipedia.org/wiki/Singleton_pattern
Beta Was this translation helpful? Give feedback.
All reactions