代码搜索:singleton

找到约 4,696 项符合「singleton」的源代码

代码结果 4,696
www.eeworm.com/read/219872/4844848

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/219872/4844851

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/219872/4844853

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/219872/4844855

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/219872/4844856

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/216939/4877806

hpp singleton.hpp

#include "ThreadingSingle.hpp" #include "singleton/SingletonHolder.hpp"
www.eeworm.com/read/216676/4888767

cpp singleton.cpp

#include "gosFXHeaders.hpp" //==========================================================================// // File: gosFX_Singleton.cpp // // Contents: Base gosFX::Singleton Compone
www.eeworm.com/read/216676/4888784

hpp singleton.hpp

//==========================================================================// // File: gosFX_Singleton.hpp // // Contents: Base Singleton Particle // //------------------
www.eeworm.com/read/202764/5046325

h singleton.h

/* Copyright (C) Steve Rabin, 2001. * All rights reserved worldwide. * * This software is provided "as is" without express or implied * warranties. You may freely copy and compile this source
www.eeworm.com/read/190666/5173384

c singleton.c

// This tests two things: // 1. there is an annoying warning. // singleton.C:26: warning: `class singleton' only defines private constructors and has no friends // egcs fails to see that there is a pu