代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/196362/8097718
class singleton.class
www.eeworm.com/read/332478/12754774
h singleton.h
// Singleton.h: definition of the Singleton function.
//
//////////////////////////////////////////////////////////////////////
#ifndef _SINGLETON_
#define _SINGLETON_
#if _MSC_VER > 1000
#p
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/245255/12808252
cc singleton.cc
#include
using namespace std;
class Single{
int data;
Single(){}
Single(const Single& o){}
//static int s;
static Single obj;
public:
static Single& getInstance(){
return obj;
}
www.eeworm.com/read/143089/12899928
cpp singleton.cpp
//: C10:Singleton.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Static member of same type, en
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/324159/13281894
h singleton.h
/*
* Copyright (C) 2001-2003 Jacek Sieka, j_s@telia.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ
www.eeworm.com/read/137548/13313340
cpp singleton.cpp
//: C10:Singleton.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Static member of same type, en
www.eeworm.com/read/137364/13326624
h singleton.h
/* Scalable K-means clustering software
Copyright (C) 2000 Fredrik Farnstrom and James Lewis
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Genera