Topics
Menu
Home
News
Webcasts
White Papers
Newsletters
About Us
Advertise
Advanced Search
Agile Architect
AI
ALM/Testing
Cloud
Data
DevOps
Enterprise
IoT
Java
Low Code
Mobile
Open Source
Security
Web Dev
Waters Works
March 2000 Code
04/28/2000
From the March 2000 Issue
(Vol. 12, No. 3)
Destruction-Managed Singleton
Evgeniy Gabrilovich
Listing 1.
Floating point comparison.
Listing 2.
Destruction manager
(dmanager .cxx)
.
Listing 3.
Sample resource definition (
logger.h
).
Listing 4.
Sample main program (
main.cxx
).
Supplemental Code
Supplemental Listing 1.
Singleton implementation singleton.cxx
Supplemental Listing 2.
Singleton implementation singleton.cxx
Supplemental Listing 3.
Logger class (sample resource definition) logger.cxx
Supplemental Listing 4.
Destruction Manager dmanager.cxx
Supplemental Listing 5.
Another sample resource definition resource.cxx
Supplemental Listing 6.
Another sample resource definition resource.cxx
Supplemental Listing 7.
Makefile for SGI IRIX
Supplemental Listing 8.
Main.h
Supplemental Listing 9.
Logger.h
Supplemental Listing 10.
Definition of the destruction phase
Supplemental Listing 11.
Destruction Manager dmanager.cxx
Supplemental Listing 12.
Definition of class Destructor and class template TDestructor
Working with Classes and Interfaces
Dirk Riehle
Listing 1.
Snapshot of initial
Name
class
Listing 2.
A set of primitive member functions.
Listing 3.
Working with primitive member functions
Listing 4.
The
Name interface
class and the class and the
StringName
and
VectorName
implementation classes.
Listing 5.
Identical implementations of the
insert
member function in
StringName
and
VectorName
.
Listing 6.
Definition of the
Name, AbstractName, StringName
, and
VectorName
classes.
Listing 7.
Some member functions of the
AbstractName
abstract base class.
Listing 8.
The inheritance interface of
AbstractName
.
Listing 9.
The narrow inheritance interface of
AbstractName
.
Printable Format
E-Mail this page
Featured
Gitpod Announces Features, Forum, Funding
Supreme Court Sides with Google in Landmark Software Copyright Case Over Java APIs
Platform9 Takes on Large-scale 5G Kubernetes Deployments
CircleCI Gives its CI/CD Platform a Shot in the ARM
Most Popular
Most Popular Articles
Most Emailed Articles
Eclipse Jetty 11 Lays the Foundation for Cloud Native Java
Java 16 Goes GA on March 16 Includes 17 Enhancements
Supreme Court Sides with Google in Landmark Software Copyright Case Over Java APIs
Fourth Annual Call for Code Challenges Developers to Tackle 'Existential Threat of Climate Change'
Sonatype Unveils NextGen Nexus Platform
AppTrends
Sign up for our newsletter.
Email Address*
Country*
United States of America
Afghanistan
Åland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
Armenia
Aruba
Australia
Azerbaijan
Austria
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia, Plurinational State of
Bonaire, Sint Eustatius and Saba
Bosnia and Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Canada
Cape Verde (Cabo Verde)
Cayman Islands
Curaçao
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Congo
Congo, the Democratic Republic of the
Cook Islands
Costa Rica
Côte d'Ivoire
Croatia
Cuba
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guyana
Haiti
Heard Island and McDonald Islands
Holy See (Vatican City State)
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Iran, Islamic Republic of
Iraq
Ireland
Isle of Man
Israel
Italy
Jamaica
Japan
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Korea, Democratic People's Republic of
Korea, Republic of
Kuwait
Kyrgyzstan
Lao People's Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macao
Macedonia, the former Yugoslav Republic of
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia, Federated States of
Moldova, Republic of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Norway
Pakistan
Oman
Palau
Palestinian Territory, Occupied
Panama
Paraguay
Papua New Guinea
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Réunion
Romania
Russian Federation
Rwanda
Saint Barthélemy
Saint Helena, Ascension and Tristan da Cunha
Saint Kitts and Nevis
Saint Lucia
Saint Martin (French part)
Saint Pierre and Miquelon
Saint Vincent and the Grenadines
Samoa
San Marino
Sao Tome and Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Sint Maarten (Dutch part)
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Georgia and the South Sandwich Islands
South Sudan
Spain
Sri Lanka
Sudan
Suriname
Svalbard and Jan Mayen
Eswatini (Swaziland)
Sweden
Switzerland
Syrian Arab Republic
Taiwan, Province of China
Tajikistan
Tanzania, United Republic of
Thailand
Timor-Leste
Togo
Tokelau
Tonga
Trinidad and Tobago
Tunisia
Turkey
Turkmenistan
Turks and Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
United States Minor Outlying Islands
Uruguay
Uzbekistan
Vanuatu
Viet Nam
Venezuela, Bolivarian Republic of
Virgin Islands, British
Virgin Islands, U.S.
Wallis and Futuna
Western Sahara
Yemen
Zambia
Zimbabwe
Please type the letters/numbers you see above.
Most Popular Articles
Most Emailed Articles
Eclipse Jetty 11 Lays the Foundation for Cloud Native Java
Java 16 Goes GA on March 16 Includes 17 Enhancements
Supreme Court Sides with Google in Landmark Software Copyright Case Over Java APIs
Fourth Annual Call for Code Challenges Developers to Tackle 'Existential Threat of Climate Change'
Sonatype Unveils NextGen Nexus Platform
Free White Papers
Solution Spotlight: Sonatype’s Advanced Development Pack for Nexus Lifecycle: Dependency Management at Scale
More Tech Library
Upcoming Events
VSLive! 2-Day Seminar: Build A .NET 5 MVC App
May 4-5, 2021 [Virtual]
VSLive! 2-Day Seminar: Develop Secure ASP.NET Apps
May 20-21, 2021 [Virtual]
VSLive! 1-Day Workshop: Dependency Injection (DI) for the Developer
June 2, 2021 [Virtual]
VSLive! 2-Day Seminar: Learn Cloud-Native .NET Code
June 22-23, 2021 [Virtual]
VSLive! 4-Day Seminar: Hands-on Agile Software Dev
September 20-23, 2021
Austin, TX + Virtual
VSLive! 2-Day Seminar: Learn Web APIs with ASP.NET
September 28-29, 2021 [Virtual]
VSLive! 2-Day Seminar: DevSecOps - Security In App Delivery
October 19-20, 2021 [Virtual]
Live! 360 Orlando 6-Day Conference
November 14-19, 2021
Orlando, FL
VSLive! 2-Day Seminar: ASP.NET Core 6 Service and Website
December 13-14, 2021 [Virtual]
Sponsored Webcasts
Why use Cassandra-as-a-Service?
Top Tips for Improving Your Mobile App “Sticky-ness”
Using Test Automation to Boost Engineering Productivity
Developer’s Guide to Service Level Objectives
Best Practices for Improving Your Data Performance, Visibility and Cost Optimization
More Webcasts
Sponsored Links