代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/355365/3054448
h singleton.h
#ifndef CODELITE_SINGLETON_H
#define CODELITE_SINGLETON_H
/**
* A template class that implements the Singleton pattern.
*
* \date 08-23-2006
* \author eran
*/
template
class Singlet
www.eeworm.com/read/255418/4376037
java singleton.java
package headfirst.singleton.subclass;
public class Singleton {
protected static Singleton uniqueInstance;
// other useful instance variables here
protected Singleton() {}
public static sync
www.eeworm.com/read/255418/4376040
java singleton.java
package headfirst.singleton.dcl;
//
// Danger! This implementation of Singleton not
// guaranteed to work prior to Java 5
//
public class Singleton {
private volatile static Singleton uniqueInstan
www.eeworm.com/read/255418/4376042
java singleton.java
package headfirst.singleton.stat;
public class Singleton {
private static Singleton uniqueInstance = new Singleton();
private Singleton() {}
public static Singleton getInstance() {
return un
www.eeworm.com/read/255418/4376044
java singleton.java
package headfirst.singleton.threadsafe;
public class Singleton {
private static Singleton uniqueInstance;
// other useful instance variables here
private Singleton() {}
public static synchr
www.eeworm.com/read/255418/4376045
java singleton.java
package headfirst.singleton.classic;
// NOTE: This is not thread safe!
public class Singleton {
private static Singleton uniqueInstance;
// other useful instance variables here
private Single
www.eeworm.com/read/294538/8219536
h singleton.h
/*
* Copyright (C) 2001-2006 Jacek Sieka, arnetheduck on gmail point com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public
www.eeworm.com/read/294402/8227223
h singleton.h
/*****************************************************************************************
* SEU-3D
* ---------------------------------------