代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/124619/6044024
java testsimplesingleton.java
import junit.framework.*;
import java.lang.reflect.Constructor;
public class TestSimpleSingleton extends TestCase
{
public TestSimpleSingleton(String name)
{
super(name);
}
public v
www.eeworm.com/read/164604/5488999
java hottersingleton.java
package headfirst.singleton.subclass;
public class HotterSingleton extends Singleton {
// useful instance variables here
private HotterSingleton() {
super();
}
// useful methods here
}
www.eeworm.com/read/164604/5489002
java coolersingleton.java
package headfirst.singleton.subclass;
public class CoolerSingleton extends Singleton {
// useful instance variables here
protected static Singleton uniqueInstance;
private CoolerSingleton() {
www.eeworm.com/read/164604/5489004
java singletonclient.java
package headfirst.singleton.dcl;
public class SingletonClient {
public static void main(String[] args) {
Singleton singleton = Singleton.getInstance();
}
}
www.eeworm.com/read/164604/5489006
java singletonclient.java
package headfirst.singleton.stat;
public class SingletonClient {
public static void main(String[] args) {
Singleton singleton = Singleton.getInstance();
}
}
www.eeworm.com/read/136989/5830807
h wucs4_utf16_export.h
// -*- C++ -*-
// WUCS4_UTF16_export.h,v 1.1 2003/12/03 16:13:09 mesnier_p Exp
// Definition for Win32 Export directives.
// This file is generated automatically by generate_export_file.pl
// --
www.eeworm.com/read/169714/5411748
h pana_exports.h
/* BEGIN_COPYRIGHT */
/* */
/* Open Diameter: Open-source software for the
www.eeworm.com/read/451971/7452832
h algorithmfactory.h
#include "BasicAlgorithm.h"
#include "Hanoi.h"
#include "Singleton.h"
www.eeworm.com/read/435925/7780915
h destroyer.h
#ifndef __Destroyer_H
#define __Destroyer_H
template
class Destroyer
{
public:
// Constructor
Destroyer (SINGLETON* = null);
// Destructor
~Destroyer ();
www.eeworm.com/read/321602/13402730
cpp single_main.cpp
#include
#include "singleton.h"
void main()
{
Singleton *le=Singleton::Instance();//就像P199说的Instance()函数就是一个全局性的访问点
}