亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cleaner.inl

?? 圖像分割算法
?? INL
字號:
//Copyright (c) 2004-2005, Baris Sumengen
//All rights reserved.
//
// CIMPL Matrix Performance Library
//
//Redistribution and use in source and binary
//forms, with or without modification, are
//permitted provided that the following
//conditions are met:
//
//    * No commercial use is allowed. 
//    This software can only be used
//    for non-commercial purposes. This 
//    distribution is mainly intended for
//    academic research and teaching.
//    * Redistributions of source code must
//    retain the above copyright notice, this
//    list of conditions and the following
//    disclaimer.
//    * Redistributions of binary form must
//    mention the above copyright notice, this
//    list of conditions and the following
//    disclaimer in a clearly visible part 
//    in associated product manual, 
//    readme, and web site of the redistributed 
//    software.
//    * Redistributions in binary form must
//    reproduce the above copyright notice,
//    this list of conditions and the
//    following disclaimer in the
//    documentation and/or other materials
//    provided with the distribution.
//    * The name of Baris Sumengen may not be
//    used to endorse or promote products
//    derived from this software without
//    specific prior written permission.
//
//THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
//HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
//EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
//NOT LIMITED TO, THE IMPLIED WARRANTIES OF
//MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
//CONTRIBUTORS BE LIABLE FOR ANY
//DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
//EXEMPLARY, OR CONSEQUENTIAL DAMAGES
//(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
//OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
//DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
//HOWEVER CAUSED AND ON ANY THEORY OF
//LIABILITY, WHETHER IN CONTRACT, STRICT
//LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
//OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
//OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//POSSIBILITY OF SUCH DAMAGE.




template< class T > mli Cleaner<T>::refCountData;
//template< class T > mli Cleaner<T>::refCountDataPtrs;
template< class T > mli Cleaner<T>::refCountColumns;


/// Creates a cleaner object for Array class (uses only the data pointer)
template< class T >
Cleaner<T>::Cleaner(T *_data)
{
	data = _data;
	columns = 0;
	
	// increase data ref count
	mli::const_iterator tempItData = refCountData.find((long long int)data);	// check existance
	if( tempItData == refCountData.end() )
	{
		refCountData[(long long int)data] = 1;
	}
	else
	{
		if(refCountData[(long long int)data] < 0)
		{
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! data ref count is negative in memory hash. Something might be wrong.");
		}
		refCountData[(long long int)data]++;
	}
	
}


/// Creates a cleaner object for SubMatrix class (uses only the columns pointer)
template< class T >
Cleaner<T>::Cleaner(Vector<T>* _columns)
{

	data = 0;
	columns = _columns;

	// increase columns ref count
	mli::const_iterator tempItRows = refCountColumns.find((long long int)columns);	// check existance
	if( tempItRows == refCountColumns.end() )
	{
		refCountColumns[(long long int)columns] = 1;
	}
	else
	{
		if(refCountColumns[(long long int)columns] < 0)
		{
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! columns ref count is negative in memory hash. Something might be wrong.");
		}
		refCountColumns[(long long int)columns]++;
	}
	

}


template< class T >
Cleaner<T>::Cleaner(T *_data, Vector<T>* _columns)
{
	data = _data;
	columns = _columns;
	
	// increase data ref count
	mli::const_iterator tempItData = refCountData.find((long long int)data); 	// check existance
	if( tempItData == refCountData.end() )
	{
		refCountData[(long long int)data] = 1;
	}
	else
	{
		if(refCountData[(long long int)data] < 0)
		{
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! data ref count is negative in memory hash. Something might be wrong.");
		}
		refCountData[(long long int)data]++;
	}
	
	
	// increase columns ref count
	mli::const_iterator tempItRows = refCountColumns.find((long long int)columns);	// check existance
	if( tempItRows == refCountColumns.end() )
	{
		refCountColumns[(long long int)columns] = 1;
	}
	else
	{
		if(refCountColumns[(long long int)columns] < 0)
		{
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! columns ref count is negative in memory hash. Something might be wrong.");
		}
		refCountColumns[(long long int)columns]++;
	}
	


}



/// Clear or reduce count of the memory ref
template< class T >
Cleaner<T>::~Cleaner()
{

	if(data != 0){
		// Take care of (delete) data ref count
		mli::const_iterator tempItData = refCountData.find((long long int)data);	// check existance
		if( tempItData == refCountData.end() )
		{
			// do nothing. Probably issue a warning.
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! data does not exist in memory hash. Something might be wrong.");
		}
		else if(refCountData[(long long int)data] == 1)
		{
			refCountData.erase((long long int)data);
			delete [] data;
		}
		else if(refCountData[(long long int)data] <= 0)
		{
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! data ref count is negative in memory hash. Something might be wrong.");
		}
		else
		{
			refCountData[(long long int)data]--;

		}
	}
	
	if(columns != 0){
		// Take care of (delete) columns ref count
		mli::const_iterator tempItRows = refCountColumns.find((long long int)columns);	// check existance
		if( tempItRows == refCountColumns.end() )
		{
			// do nothing. Probably issue a warning.
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! columns does not exist in memory hash. Something might be wrong.");
		}
		else if(refCountColumns[(long long int)columns] == 1)
		{
			refCountColumns.erase((long long int)columns);
			delete [] columns;
		}
		else if(refCountColumns[(long long int)columns] <= 0)
		{
			cout << "Line: " << __LINE__ << " File: " << __FILE__ << endl;
			Utility::Warning("Weird! columns ref count is negative in memory hash. Something might be wrong.");
		}
		else
		{
			refCountColumns[(long long int)columns]--;
		}

	}


}





/// Display memory references
template< class T >
void Cleaner<T>::Display(void)
{
	cout << endl;
	cout << "======MEMORY DISPLAY======" << endl;
	cout << "Memory references for (data):" << endl;
	for( mli::const_iterator it1 = refCountData.begin(); 
			it1 != refCountData.end(); it1++ )
	{
		cout << it1->first << '\t' << it1->second << endl;
	
	}

	cout << endl;
	cout << "Memory references for (columns):" << endl;
	for( mli::const_iterator it2 = refCountColumns.begin(); 
			it2 != refCountColumns.end(); it2++ )
	{
		cout << it2->first << '\t' << it2->second << endl;
	}
	cout << "===========END============" << endl;
	cout << endl;
}


template< class T >
void Cleaner<T>::Display(char * s)
{
	cout << endl;
	cout << "======MEMORY DISPLAY (" << s << ") ======" << endl;
	cout << "Memory references for (data):" << endl;
	for( mli::const_iterator it1 = refCountData.begin(); 
			it1 != refCountData.end(); it1++ )
	{
		cout << it1->first << '\t' << it1->second << endl;
	
	}

	cout << endl;
	cout << "Memory references for (columns):" << endl;
	for( mli::const_iterator it2 = refCountColumns.begin(); 
			it2 != refCountColumns.end(); it2++ )
	{
		cout << it2->first << '\t' << it2->second << endl;
	}
	cout << "===========END============" << endl;
	cout << endl;
}

























?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
偷窥少妇高潮呻吟av久久免费| 久久综合久久综合久久综合| 亚洲精品免费在线观看| 一本久久a久久精品亚洲| 亚洲欧美日韩系列| 欧美午夜精品一区二区蜜桃| 日韩av在线播放中文字幕| 日韩免费高清av| 成人毛片在线观看| 一区二区三区电影在线播| 欧美精品日韩精品| 国内精品第一页| 国产精品成人免费精品自在线观看| 91免费看片在线观看| 香蕉成人伊视频在线观看| 日韩亚洲欧美成人一区| 国产成人一区在线| 亚洲精品成人悠悠色影视| 欧美一区二区在线免费播放| 久久99国内精品| 亚洲欧美在线高清| 欧美日韩精品一区二区三区四区 | 久久亚洲精精品中文字幕早川悠里| 国产精品99久久久久久久vr| 最新高清无码专区| 欧美日韩国产在线播放网站| 国产一区二区久久| 一区二区三区在线高清| 欧美一级xxx| av在线播放不卡| 免费看日韩a级影片| 亚洲欧洲av在线| 日韩一卡二卡三卡| 9久草视频在线视频精品| 日韩黄色小视频| 国产精品国产三级国产普通话蜜臀| 欧美男人的天堂一二区| 国产黑丝在线一区二区三区| 午夜久久久影院| 国产精品久久精品日日| 日韩午夜小视频| 在线免费观看一区| 粉嫩一区二区三区在线看| 日本伊人色综合网| ●精品国产综合乱码久久久久| 欧美电影免费提供在线观看| 在线观看欧美精品| 成人网在线免费视频| 麻豆成人av在线| 亚洲成人精品一区| 亚洲欧洲日产国码二区| 久久久亚洲精品石原莉奈| 欧美一区二区三区爱爱| 在线观看视频一区| 97久久精品人人做人人爽| 国产一区福利在线| 久久精品99国产精品日本| 亚洲午夜精品一区二区三区他趣| 中文字幕不卡在线| 久久理论电影网| 精品久久人人做人人爱| 91精品在线一区二区| 欧美区视频在线观看| 在线观看一区二区精品视频| 99免费精品视频| www.综合网.com| 国产91综合一区在线观看| 国产一区二区91| 国产一区欧美一区| 国产米奇在线777精品观看| 久久99精品久久久久| 蜜桃精品视频在线观看| 奇米888四色在线精品| 午夜精品久久久久久久久| 亚洲v中文字幕| 天使萌一区二区三区免费观看| 亚洲一二三四在线| 亚洲午夜电影在线观看| 午夜视频在线观看一区二区| 亚洲高清免费视频| 午夜伦理一区二区| 免费亚洲电影在线| 国内不卡的二区三区中文字幕 | 在线观看成人免费视频| 欧美中文字幕一区二区三区 | 开心九九激情九九欧美日韩精美视频电影| 一区二区三区毛片| 亚洲福利一区二区| 日韩精品电影在线| 麻豆成人久久精品二区三区红| 久久se这里有精品| 国产精品99精品久久免费| 成人一级片在线观看| 99精品视频在线播放观看| 日本精品一区二区三区高清| 欧美丝袜第三区| 日韩小视频在线观看专区| 久久综合色鬼综合色| 中文字幕一区视频| 亚洲一区二区四区蜜桃| 免费看日韩a级影片| 国产精品一区二区久久不卡| 91网站最新地址| 欧美美女网站色| 2023国产精品| 亚洲精品亚洲人成人网在线播放| 三级欧美韩日大片在线看| 国内精品第一页| 91九色02白丝porn| 欧美成人bangbros| 亚洲日本乱码在线观看| 日韩电影网1区2区| 大白屁股一区二区视频| 欧美视频自拍偷拍| 久久久青草青青国产亚洲免观| 亚洲精品国产无天堂网2021| 久久精品99久久久| 91美女视频网站| 精品国产三级a在线观看| 亚洲日本在线a| 国内精品写真在线观看| 91久久国产综合久久| 欧美精品一区二| 亚洲一区二区偷拍精品| 国产福利精品导航| 欧美精品久久天天躁| 国产精品国产a| 久久不见久久见免费视频1| 色偷偷一区二区三区| 精品少妇一区二区三区免费观看| 亚洲色大成网站www久久九九| 麻豆国产精品视频| 欧美综合一区二区三区| 日本一区二区三区国色天香| 亚洲成人中文在线| 成人一区二区视频| 欧美成人免费网站| 无码av免费一区二区三区试看| www..com久久爱| 久久先锋影音av鲁色资源网| 午夜精品视频一区| 一本大道av一区二区在线播放| 久久久久久电影| 蜜桃一区二区三区四区| 欧美性生活一区| 亚洲视频一二区| 成人美女视频在线看| 久久久久国产一区二区三区四区 | 久久久久久久久岛国免费| 视频一区免费在线观看| 91在线视频观看| 中文字幕在线一区二区三区| 国产在线视视频有精品| 91精品国产欧美一区二区成人 | 欧美精品日韩精品| 亚洲国产日韩综合久久精品| 色综合久久中文字幕综合网| 中文字幕免费观看一区| 国产一区二区看久久| 精品福利一区二区三区免费视频| 蜜桃视频一区二区三区在线观看 | 精品久久久久av影院| 日韩激情视频在线观看| 欧美男男青年gay1069videost| 亚洲成人综合视频| 欧美日韩视频在线一区二区| 亚洲国产视频一区| 欧美日韩不卡在线| 偷拍亚洲欧洲综合| 日韩视频中午一区| 玖玖九九国产精品| 久久久久88色偷偷免费| 国产剧情在线观看一区二区| 久久精品一级爱片| 懂色av一区二区三区蜜臀| 国产精品天美传媒| 99久久久久久99| 亚洲精品综合在线| 欧美日韩亚洲综合在线| 日本不卡高清视频| 精品美女被调教视频大全网站| 国产一区二区伦理| 国产精品灌醉下药二区| 日本高清视频一区二区| 同产精品九九九| 精品美女一区二区三区| 国产成人av资源| 亚洲欧美日韩在线播放| 欧美日韩一级片在线观看| 麻豆成人免费电影| 日本一区二区三区在线观看| 久久亚洲精品小早川怜子| 国产成人一区在线| 亚洲男人电影天堂| 91精品国产黑色紧身裤美女| 久久99久久精品欧美| 一色桃子久久精品亚洲| 欧美精品日韩一区| 国产精品亚洲专一区二区三区 | 国产在线一区观看|