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

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

?? tools.h

?? tools.03b.zip
?? H
字號:
// Tools Library//// Copyright (C) 2004  Navel Ltd.//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU// Lesser General Public License for more details.//// You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA//// Contact information://  Mailing address://    Marios Hadjieleftheriou//    University of California, Riverside//    Department of Computer Science//    Surge Building, Room 310//    Riverside, CA 92521////  Email://    marioh@cs.ucr.edu#ifndef __tools_h#define __tools_h#include <assert.h>#include <iostream>#include <sstream>#include <fstream>#include <queue>#include <vector>#include <map>#include <stack>#include <list>#include <sys/time.h>#include <sys/time.h>#include <sys/resource.h>#include <unistd.h>#ifdef PTHREADS#include <pthread.h>#endif#include "SmartPointer.h"#include "PointerPool.h"#include "PoolPointer.h"#define EMAIL "marioh@cs.ucr.edu"typedef unsigned char byte;#define interface classnamespace Tools{	const std::string VERSION;	const std::string DATE;	enum IntervalType	{		IT_RIGHTOPEN = 0x0,		IT_LEFTOPEN,		IT_OPEN,		IT_CLOSED	};	enum VariantType	{		VT_LONG = 0x0,		VT_BYTE,		VT_SHORT,		VT_FLOAT,		VT_DOUBLE,		VT_CHAR,		VT_USHORT,		VT_ULONG,		VT_INT,		VT_UINT,		VT_BOOL,		VT_PCHAR,		VT_PVOID,		VT_EMPTY	};	//	// Exceptions	//	class Exception	{	public:		virtual std::string what() = 0;		virtual ~Exception() {}	};	class IndexOutOfBoundsException : public Exception	{	public:		IndexOutOfBoundsException(int i);		virtual ~IndexOutOfBoundsException() {};		virtual std::string what();	private:		std::string m_error;	}; // IndexOutOfBoundsException	class IllegalArgumentException : public Exception	{	public:		IllegalArgumentException(std::string s);		virtual ~IllegalArgumentException() {};		virtual std::string what();	private:		std::string m_error;	}; // IllegalArgumentException	class IllegalStateException : public Exception	{	public:		IllegalStateException(std::string s);		virtual ~IllegalStateException() {};		virtual std::string what();	private:		std::string m_error;	}; // IllegalStateException	class EndOfStreamException : public Exception	{	public:		EndOfStreamException(std::string s);		virtual ~EndOfStreamException() {};		virtual std::string what();	private:		std::string m_error;	}; // EndOfStreamException	class ResourceLockedException : public Exception	{	public:		ResourceLockedException(std::string s);		virtual ~ResourceLockedException() {};		virtual std::string what();	private:		std::string m_error;	}; // ResourceLockedException	class InvalidPageException : public Exception	{	public:		InvalidPageException(long id);		virtual ~InvalidPageException() {};		virtual std::string what();	private:		std::string m_error;	}; // InvalidPageException	class NotSupportedException : public Exception	{	public:		NotSupportedException(std::string s);		virtual ~NotSupportedException() {};		virtual std::string what();	private:		std::string m_error;	}; // NotSupportedException	class ParseErrorException : public Exception	{	public:		ParseErrorException(std::string s);		virtual ~ParseErrorException() {};		virtual std::string what();	private:		std::string m_error;	}; // ParseErrorException	//	// Interfaces	//	interface IInterval	{	public:		virtual IInterval& operator=(const IInterval&) = 0;		virtual double getLowerBound() const = 0;		virtual double getUpperBound() const = 0;		virtual void setBounds(double, double) = 0;		virtual bool intersectsInterval(const IInterval&) const = 0;		virtual bool intersectsInterval(IntervalType type, double start, double end) const = 0;		virtual bool containsInterval(const IInterval&) const = 0;		virtual IntervalType getIntervalType() const = 0;		virtual ~IInterval() {}	}; // IInterval	interface IObject	{	public:		virtual IObject* clone() throw (NotSupportedException) = 0;			// return a new object that is an exact copy of this one.			// IMPORTANT: do not return the this pointer!		virtual ~IObject() {}	}; // IObject	interface ISerializable //: public virtual IObject	{	public:		virtual unsigned long getByteArraySize() = 0;			// returns the size of the required byte array.		virtual unsigned long loadFromByteArray(byte* const data) = 0;			// load this object using the byte array.		virtual void storeToByteArray(unsigned long& len, byte** data) = 0;			// store this object in the byte array.		virtual ~ISerializable() {}	};	interface IComparable //: public virtual IObject	{	public:		virtual bool operator<(const IComparable& o) const = 0;		virtual bool operator>(const IComparable& o) const = 0;		virtual bool operator==(const IComparable& o) const = 0;		virtual ~IComparable() {}	}; //IComparable	interface IObjectComparator	{	public:		virtual int compare(IObject* o1, IObject* o2) = 0;		virtual ~IObjectComparator() {}	}; // IObjectComparator	interface IObjectStream	{	public:		virtual IObject* getNext() = 0;			// returns the next entry in the stream.		virtual bool hasNext() = 0;			// returns true if there are more entries in the stream.		virtual unsigned long size() throw (NotSupportedException) = 0;			// returns the total number of entries available in the stream.		virtual bool rewind() throw (NotSupportedException) = 0;			// sets the stream pointer to the first entry, if possible.		virtual ~IObjectStream() {}	}; // IObjectStream	namespace Geometry	{		class Region;		class Point;		// since all base classes are interfaces (there is no state involved) all		// inheritance can be virtual for efficiency.		interface IShape : public virtual ISerializable		{		public:			virtual bool intersectsShape(const IShape& in) const = 0;			virtual bool containsShape(const IShape& in) const = 0;			virtual bool touchesShape(const IShape& in) const = 0;			virtual void getCenter(Point& out) const = 0;			virtual unsigned long getDimension() const = 0;			virtual void getMBR(Region& out) const = 0;			virtual double getArea() const = 0;			virtual double getMinimumDistance(const IShape& in) const = 0;			virtual ~IShape() {}		}; // IShape		// since all base classes are interfaces (there is no state involved) all		// inheritance can be virtual for efficiency.		interface ITimeShape : public virtual IShape, public virtual IInterval		{		public:			virtual bool intersectsShapeInTime(const ITimeShape& in) const = 0;			virtual bool intersectsShapeInTime(const IInterval& ivI, const ITimeShape& in) const = 0;			virtual bool containsShapeInTime(const ITimeShape& in) const = 0;			virtual bool containsShapeInTime(const IInterval& ivI, const ITimeShape& in) const = 0;			virtual bool touchesShapeInTime(const ITimeShape& in) const = 0;			virtual bool touchesShapeInTime(const IInterval& ivI, const ITimeShape& in) const = 0;			virtual double getAreaInTime() const = 0;			virtual double getAreaInTime(const IInterval& ivI) const = 0;			virtual double getIntersectingAreaInTime(const ITimeShape& r) const = 0;			virtual double getIntersectingAreaInTime(const IInterval& ivI, const ITimeShape& r) const = 0;			virtual ~ITimeShape() {}		}; // ITimeShape		// since all base classes are interfaces (there is no state involved) all		// inheritance can be virtual for efficiency.		interface IEvolvingShape : public virtual IShape		{		public:			virtual void getVMBR(Region& out) const = 0;			virtual void getMBRAtTime(double t, Region& out) const = 0;			virtual ~IEvolvingShape() {}		}; // IEvolvingShape	}	IObjectStream* externalSort(IObjectStream& source, unsigned long bufferSize);	IObjectStream* externalSort(IObjectStream& source, IObjectComparator& pComp, unsigned long bufferSize);	class Variant	{	public:		Variant();		VariantType m_varType;		union		{			long lVal;            // VT_LONG			byte bVal;            // VT_BYTE			short iVal;           // VT_SHORT			float fltVal;         // VT_FLOAT			double dblVal;        // VT_DOUBLE			char cVal;            // VT_CHAR			unsigned short uiVal; // VT_USHORT			unsigned long  ulVal; // VT_ULONG			int intVal;           // VT_INT			unsigned int uintVal; // VT_UINT			bool blVal;           // VT_BOOL			char* pcVal;          // VT_PCHAR			void* pvVal;          // VT_PVOID		} m_val;	}; // Variant	class PropertySet : public ISerializable	{	public:		virtual ~PropertySet() {}		virtual unsigned long getByteArraySize();		virtual unsigned long loadFromByteArray(byte* const data);		virtual void storeToByteArray(unsigned long& len, byte** data);		Variant getProperty(std::string property);		void setProperty(std::string property, Variant& v);		void removeProperty(std::string property);	private:		std::map<std::string, Variant> m_propertySet;		friend std::ostream& Tools::operator<<(std::ostream& os, const Tools::PropertySet& p);	}; // PropertySet	std::ostream& Tools::operator<<(std::ostream& os, const Tools::PropertySet& p);	// does not support degenerate intervals.	class Interval : public IInterval	{	public:		Interval();		Interval(IntervalType, double, double);		Interval(double, double);		Interval(const Interval&);		virtual IInterval& operator=(const IInterval&);		virtual Interval& operator=(const Interval&);		virtual double getLowerBound() const;		virtual double getUpperBound() const;		virtual void setBounds(double, double);		virtual bool intersectsInterval(const IInterval&) const;		virtual bool intersectsInterval(IntervalType type, double start, double end) const;		virtual bool containsInterval(const IInterval&) const;		virtual IntervalType getIntervalType() const;		virtual ~Interval() {};		IntervalType m_type;		double m_low;		double m_high;	}; // Interval	std::ostream& Tools::operator<<(std::ostream& os, const Tools::Interval& iv);	class Random	{	public:		static long nextUniformLong(long, long);		static int nextUniformInt(int, int);		static double nextUniformDouble();		static double nextUniformDouble(double, double);		static double nextGaussianDouble();		static double nextGaussianDouble(double, double);		static double nextZipfDouble(double, double, double);		static bool flipCoin();	private:		static void initialize();	}; // Random	class ResourceUsage	{	public:		ResourceUsage();		void start();		void stop();		void reset();		double getTotalTime();		double getUserTime();		double getSystemTime();		long getPageFaults();		long getReadIO();		long getWriteIO();		long getPeakMemoryUsage();	private:		double combineTime(const struct timeval&);		void addTimeval(struct timeval&, const struct timeval&);		void subtractTimeval(struct timeval&, const struct timeval&, const struct timeval&);  		struct rusage m_tmpRU;  		struct timeval m_tmpTV;  		struct timeval m_totalTime;  		struct timeval m_userTime;  		struct timeval m_systemTime;  		long m_pageFaults;  		long m_readIO;  		long m_writeIO;  		long m_peakMemory;  	};	class SharedLock	{	public:#ifdef PTHREADS		SharedLock(pthread_rwlock_t* pLock);		~SharedLock();	private:		pthread_rwlock_t* m_pLock;#endif	}; // SharedLock	class ExclusiveLock	{	public:#ifdef PTHREADS		ExclusiveLock(pthread_rwlock_t* pLock);		~ExclusiveLock();	private:		pthread_rwlock_t* m_pLock;#endif	}; // ExclusiveLock	class StringTokenizer	{	public:		StringTokenizer(const std::string& s, const std::string& delimiters = " \t");		bool hasMoreTokens();		std::string getNextToken();		void reset();	private:		unsigned long m_index;		std::vector<std::string> m_token;	}; // StringTokenizer	std::string trimLeft(const std::string& source, const std::string& t = " \t");
	std::string trimRight(const std::string& source, const std::string& t = " \t");
	std::string trim(const std::string& source, const std::string& t = " \t");
	char toLower(char c);
	char toUpper(char c);
	std::string toUpperCase(const std::string& s);
	std::string toLowerCase(const std::string& s);}#include "Point.h"#include "Region.h"#include "TemporaryFile.h"#endif /* __tools_h */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品乱码亚洲一区二区不卡| 久久精品国产色蜜蜜麻豆| 亚洲亚洲人成综合网络| 日本美女一区二区三区| 韩国女主播成人在线| 成人av电影在线观看| 欧美中文字幕一区二区三区| 日韩免费高清视频| 自拍偷拍国产亚洲| 免费高清在线一区| av电影天堂一区二区在线| 欧美在线免费观看亚洲| 精品国产一区a| 亚洲视频免费在线观看| 久久99久久精品| 色香蕉成人二区免费| 日韩欧美色综合| 亚洲日本va在线观看| 日本亚洲视频在线| 99久久精品免费精品国产| 欧美高清一级片在线| 中文字幕不卡三区| 日韩综合在线视频| av毛片久久久久**hd| 欧美成人伊人久久综合网| 亚洲男人的天堂在线观看| 久久精品999| 在线视频欧美精品| 久久九九99视频| 午夜av一区二区三区| 成人sese在线| 精品欧美黑人一区二区三区| 亚洲欧美日韩国产手机在线| 精品在线亚洲视频| 欧美日韩一区 二区 三区 久久精品| 久久精品免视看| 日韩国产精品大片| 欧洲亚洲精品在线| 欧美激情自拍偷拍| 精品一区二区三区在线观看国产| 色婷婷精品久久二区二区蜜臀av | 亚洲一区免费观看| 国产成人亚洲综合a∨婷婷图片| 欧美日韩一区高清| 成人欧美一区二区三区白人| 国产自产2019最新不卡| 91精品国产色综合久久不卡电影 | 在线观看一区不卡| 国产精品伦一区二区三级视频| 蜜臀精品一区二区三区在线观看 | 日韩黄色在线观看| 色婷婷综合激情| 国产精品久久久久久久久快鸭| 久久精品国产精品亚洲精品| 欧美久久久久久久久中文字幕| 亚洲激情图片小说视频| 成人福利电影精品一区二区在线观看| 欧美成人vps| 日韩精品欧美精品| 欧美日韩午夜在线视频| 亚洲日本va午夜在线影院| 国产成人精品影视| 久久综合五月天婷婷伊人| 精品一区二区三区视频| 日韩精品最新网址| 久久激五月天综合精品| 欧美一级片免费看| 日韩成人精品在线观看| 欧美久久久一区| 日本sm残虐另类| 日韩一级大片在线观看| 免费在线看成人av| 欧美成人性战久久| 精品一区二区三区免费视频| 欧美精品一区二区三区久久久| 美女网站色91| 欧美成人三级电影在线| 国产一区高清在线| 久久精品亚洲国产奇米99| 丰满少妇在线播放bd日韩电影| 中文字幕欧美三区| 成人app在线| 一区二区三区四区国产精品| 欧美中文字幕一区二区三区亚洲| 亚洲444eee在线观看| 91精品黄色片免费大全| 老司机免费视频一区二区| 欧美白人最猛性xxxxx69交| 精品一区二区影视| 中文字幕不卡在线观看| 色婷婷综合久久久久中文| 亚洲成人免费看| 日韩一区二区精品在线观看| 久久av老司机精品网站导航| 国产欧美精品一区二区色综合朱莉 | 福利一区二区在线| 成人欧美一区二区三区白人| 在线观看91视频| 奇米一区二区三区| 国产午夜精品一区二区三区嫩草 | 亚洲精品一二三四区| 欧美日韩精品欧美日韩精品一| 国产欧美日韩在线| 国产精品小仙女| 国产精品不卡视频| 欧美日韩一区二区不卡| 精品亚洲免费视频| 国产欧美精品国产国产专区| 99久久99久久精品免费看蜜桃| 亚洲大片精品永久免费| 日韩免费看的电影| 国产成人在线看| 亚洲在线视频一区| 日韩欧美一级在线播放| 成人丝袜18视频在线观看| 亚洲欧美日韩国产手机在线 | 免费观看一级特黄欧美大片| 久久网这里都是精品| 91麻豆精东视频| 日本成人在线电影网| 国产精品美女一区二区在线观看| 欧美亚洲一区二区在线观看| 久热成人在线视频| 亚洲男人的天堂在线aⅴ视频| 91精品国产色综合久久不卡电影 | 亚洲乱码中文字幕综合| 日韩欧美电影一区| 色综合天天综合网天天狠天天| 男女视频一区二区| 亚洲美女免费在线| 国产精品美女久久福利网站| 亚洲欧美日韩国产成人精品影院 | 亚洲成人一区在线| 国产日韩欧美一区二区三区乱码| 在线观看91视频| 国产成人在线影院| 日本成人中文字幕| 亚洲精品菠萝久久久久久久| 精品国内二区三区| 欧美综合久久久| 成人综合在线视频| 久久精品国产亚洲aⅴ| 一区二区成人在线| 国产精品美女久久久久aⅴ| 日韩欧美的一区二区| 在线观看精品一区| av网站免费线看精品| 国产一区二区日韩精品| 日韩精品成人一区二区三区| 亚洲色图在线播放| 国产精品婷婷午夜在线观看| 精品噜噜噜噜久久久久久久久试看 | 久久久久久免费网| 欧美日韩成人高清| 色中色一区二区| 成人丝袜高跟foot| 亚洲精品欧美专区| 欧美一级夜夜爽| 欧美裸体一区二区三区| 99国产精品久久久久久久久久| 国产在线麻豆精品观看| 美女视频一区在线观看| 五月天激情小说综合| 亚洲综合小说图片| 亚洲你懂的在线视频| 亚洲欧洲国产日本综合| 国产色产综合色产在线视频 | 国产麻豆精品在线| 久久精品国产免费| 蜜桃精品视频在线| 性做久久久久久| 亚洲国产美女搞黄色| 一区二区三区鲁丝不卡| 国产精品国产a| 国产精品久久久久久久久动漫| 精品国产成人系列| 精品免费国产一区二区三区四区| 日韩午夜av电影| 日韩午夜小视频| 精品国产91九色蝌蚪| 精品免费国产一区二区三区四区| 日韩精品中文字幕一区| 日韩视频免费观看高清完整版 | 美女脱光内衣内裤视频久久影院| 日韩一区欧美二区| 免费看精品久久片| 久久av资源站| 韩国女主播一区| 国产91精品在线观看| 国产99久久久精品| av一本久道久久综合久久鬼色| av一二三不卡影片| 欧美在线一二三四区| 一区二区视频在线| 亚洲资源中文字幕| 亚洲18色成人| 另类小说色综合网站| 国产成人在线视频免费播放| 不卡的av中国片| 欧美影视一区在线|