代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/493646/1164534
py singleton.py
# -- coding: utf-8
""" singleton.py - Singleton design-pattern implemented using
meta-classes.
This module is part of the HarvestMan program.
For licensing information see the file LICEN
www.eeworm.com/read/489223/1225611
c singleton.c
/* GObject - GLib Type, Object, Parameter and Signal Library
* Copyright (C) 2006 Imendio AB
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GN
www.eeworm.com/read/485605/1261665
sln singleton.sln
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Singleton", "Singleton.csproj", "{29C43633-3754-4A06-BDA6-C9EB8A837026}"
EndProject
G
www.eeworm.com/read/485605/1261668
cs singleton.cs
namespace Singleton
{
class Singleton
{
static Singleton m_instance;
public static Singleton GetInstance()
{
if (m_instance == null)
{
m_instance = new Singleton();
}
www.eeworm.com/read/485605/1261687
sln singleton.sln
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Singleton", "Singleton.vbproj", "{719E2620-14D9-4AF3-8824-6DE3D56B7F2F}"
EndProject
G
www.eeworm.com/read/485605/1261689
vb singleton.vb
Class Singleton
Shared m_instance As Singleton
Public Shared Function GetInstance() As Singleton
If (m_instance Is Nothing) Then
m_instance = New Singleton()
E
www.eeworm.com/read/482889/1282006
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/482889/1284855
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)