代码搜索:instance
找到约 10,000 项符合「instance」的源代码
代码结果 10,000
www.eeworm.com/read/352063/10584364
cpp singleton.cpp
//Singleton.cpp
#include "Singleton.h"
#include
using namespace std;
Singleton* Singleton::_instance = 0;
Singleton::Singleton()
{
cout
www.eeworm.com/read/350133/10763988
cs class1.cs
// Singleton pattern -- Structural example
using System;
namespace DoFactory.GangOfFour.Singleton.Structural
{
// MainApp test application
class MainApp
{
stat
www.eeworm.com/read/349343/10834400
cpp singleton.cpp
//Singleton.cpp
#include "Singleton.h"
#include
using namespace std;
Singleton* Singleton::_instance = 0;
Singleton::Singleton()
{
cout
www.eeworm.com/read/270994/11013478
cpp mpnetwork.cpp
/***************************************************************************
mpnetwork.cpp - description
-------------------
begin
www.eeworm.com/read/270994/11013490
cpp node.cpp
/***************************************************************************
node.cpp - description
-------------------
begin
www.eeworm.com/read/451971/7452842
h singleton.h
#pragma once
/************************************************************************/
/* 普通的Singleton, 退出时不释放资源 */
/****************************************
www.eeworm.com/read/397486/8042810
cpp sinstance.cpp
/*
Module : SINSTANCE.CPP
Purpose: Defines the implementation for an MFC wrapper classe
to do instance checking
Created: PJN / 29-07-1998
History: PJN / 25-03-2000 Neville Franks made th
www.eeworm.com/read/245905/12772814
c singleton.c
/*
*/
#ifdef Implementation1
/*
*/
class Singleton {
public:
static Singleton* Instance();
protected:
Singleton();
private:
static Singleton* _instance;
};
/*
*/
Singleton* Singleton::_ins
www.eeworm.com/read/241496/13139157
c singleton.c
/*
*/
#ifdef Implementation1
/*
*/
class Singleton {
public:
static Singleton* Instance();
protected:
Singleton();
private:
static Singleton* _instance;
};
/*
*/
Singleton* Singleton::_ins
www.eeworm.com/read/238749/13327094
cpp singleton.cpp
//Singleton.cpp
#include "Singleton.h"
#include
using namespace std;
Singleton* Singleton::_instance = 0;
Singleton::Singleton()
{
cout