代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/178761/5312717
cpp singleton.cpp
////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2001 by Andrei Alexandrescu
// This code accompanies the book:
// Alexandrescu
www.eeworm.com/read/178761/5312733
h singleton.h
////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2001 by Andrei Alexandrescu
// This code accompanies the book:
// Alexandrescu
www.eeworm.com/read/178761/5312738
cpp singleton.cpp
///////////////////////////////////
// Generated header: Singleton.cpp
// Forwards to the appropriate code
// that works on the detected compiler
// Generated on Mon Sep 30 23:14:48 2002
////////
www.eeworm.com/read/178761/5312755
h singleton.h
/////////////////////////////////
// Generated header: Singleton.h
// Forwards to the appropriate code
// that works on the detected compiler
// Generated on Mon Sep 30 23:14:48 2002
////////////
www.eeworm.com/read/174334/5361968
hpp singleton.hpp
//
// This file is part of the "More for C++" library
//
// Copyright (c) 1999-2003 by Thorsten Goertz (thorsten@morefor.org)
//
// The "More for C++" library is free software; you can redistribute
www.eeworm.com/read/174334/5362033
cpp singleton.cpp
//
// This file is part of the "More for C++" library
//
// Copyright (c) 1999-2003 by Thorsten Goertz (thorsten@morefor.org)
//
// The "More for C++" library is free software; you can redistribute
www.eeworm.com/read/168845/5430251
hpp singleton.hpp
// Copyright (C) 2001-2003
// Mac Murrett
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0
www.eeworm.com/read/168845/5431989
hpp singleton.hpp
// Copyright (C) 2000 Stephen Cleary
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
www.eeworm.com/read/164604/5489000
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/164604/5489003
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