代码搜索:singleton

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

代码结果 4,696
www.eeworm.com/read/459802/7264554

java e_singleton.java

/* <mark>SINGLETON</mark>—俺有6个漂亮的老婆,她们的老公都是我,我就是我们家里的老公Sigleton,她们只要说道“老公”,都是指的同一个人,那就是我(刚才做了个梦啦,哪有这么好的事)   单例模式:单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例单例模式。单例模式只应在有真正的“单一实例”的需求时才可使用。 */ public class E_S ...
www.eeworm.com/read/459802/7264624

class e_singleton.class

www.eeworm.com/read/299957/7818390

vcproj 03-singleton.vcproj

www.eeworm.com/read/244714/12848195

gif scea-singleton.gif

www.eeworm.com/read/142905/12909601

gif singleton-top.gif

www.eeworm.com/read/141268/5774241

cpp singleton_test.cpp

#include "Singleton_Test.h" void Singleton_Test::test() { CPPUNIT_ASSERT_EQUAL(PPC_Singleton::instance()->i, 33); }
www.eeworm.com/read/141268/5774243

h singleton_test.h

#include #include "Utils/Singleton.h" using namespace PPC; class Holdee { public: static const int i = 33; }; class Singleton_Test : public CppUni