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

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

?? logdata.cpp

?? 機器人足球AI設計比賽
?? CPP
字號:
/***************************************************************************************** *                                      SEU-3D *                     ------------------------------------------------- * Copyright (c) 2005, Yuan XU<xychn15@yahoo.com.cn>,Chang'e SHI<evelinesce@yahoo.com.cn> * Copyright (c) 2006, Yuan XU<xuyuan.cn@gmail.com>,Chunlu JIANG<JamAceWatermelon@gmail.com> * Southeast University ,China * All rights reserved. * * $Id: LogData.cpp,v 1.1.1.1 2006/09/15 02:03:06 Administrator Exp $ * * Additionally,this program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ****************************************************************************************//** * \flie           LogData.cpp * * \brief the data struct of agent state from agent's log * */#include "LogData.h"#include "Parser.h"LogPrint::LogPrint(const string& str):_str(str),_colored(false){}LogPrint::LogPrint(const string& str, const Vector3f& rgb):_str(str),_colored(true),_rgb(rgb){}LogPrint::LogPrint(const sexp_t* sexp){	if( !sexp || SEXP_LIST != sexp->ty )return;	const sexp_t* tmp = sexp->list;	while( tmp && SEXP_VALUE == tmp->ty )	{		string tmpStr;		if( !Parser::parseValue(tmp,tmpStr) )return;		_str+=tmpStr;		_str+=' ';		tmp=tmp->next;	}	sexp=sexp->next;	if ( !sexp || !sexp->next || !sexp->next->next )	{		_colored= false;	}	else	{		_colored = Parser::parseValue(sexp,_rgb);	}}void LogPrint::print(std::ostream& ost)const{	ost<<"(P ("<<_str<<')';	if ( _colored ) ost<<' '<<_rgb;	ost<<')';}LogText::LogText(const Vector3f& pos,const string& str):_pos(pos),_str(str),_colored(false){}LogText::LogText(const Vector3f& pos,const string& str, const Vector3f& rgb):_pos(pos),_str(str),_colored(true),_rgb(rgb){}LogText::LogText(const sexp_t* sexp){	if( !Parser::parseValue(sexp,_pos) )return;		sexp=sexp->next->next->next;	if( !sexp || SEXP_LIST != sexp->ty )return;	const sexp_t* tmp = sexp->list;	while( tmp && SEXP_VALUE == tmp->ty )	{		string tmpStr;		if( !Parser::parseValue(tmp,tmpStr) )return;		_str+=tmpStr;		_str+=' ';		tmp=tmp->next;	}	sexp=sexp->next;	if ( !sexp || !sexp->next || !sexp->next->next )	{		_colored= false;	}	else	{		_colored = Parser::parseValue(sexp,_rgb);	}}void LogText::print(std::ostream& ost)const{	ost<<"(T "<<_pos<<"("<<_str<<')';	if ( _colored ) ost<<' '<<_rgb;	ost<<')';}LogShpere::LogShpere(const Vector3f& pos,float r):_pos(pos),_r(r),_colored(false){}LogShpere::LogShpere(const Vector3f& pos,float r,const Vector3f& rgb):_pos(pos),_r(r),_colored(true),_rgb(rgb){}LogShpere::LogShpere(const sexp_t* sexp){	if( !Parser::parseValue(sexp,_pos) )return;	sexp=sexp->next->next->next;	if( !Parser::parseValue(sexp,_r) )return;	sexp=sexp->next;	if ( !sexp || !sexp->next || !sexp->next->next )	{		_colored= false;	}	else	{		_colored = Parser::parseValue(sexp,_rgb);	}}void LogShpere::print(std::ostream& ost)const{	ost<<"(S "<<_pos<<' '<<_r;	if ( _colored ) ost<<' '<<_rgb;	ost<<')';}LogRectangle::LogRectangle(const Vector3f& pos,float szX, float szY):_pos(pos),_szX(szX), _szY(szY),_flag(0){	_rotation.Zero();}LogRectangle::LogRectangle(const Vector3f& pos,float szX, float szY, const Vector3f& rotation):_pos(pos),_szX(szX), _szY(szY),_flag(1),_rotation(rotation){}LogRectangle::LogRectangle(const Vector3f& pos,float szX, float szY, const Vector3f& rotation, const Vector3f& rgb):_pos(pos),_szX(szX), _szY(szY),_flag(2),_rotation(rotation),_rgb(rgb){}LogRectangle::LogRectangle(const sexp_t* sexp){	if( !Parser::parseValue(sexp,_pos) )return;	sexp=sexp->next->next->next;	if( !Parser::parseValue(sexp,_szX) )return;	sexp=sexp->next;	if( !Parser::parseValue(sexp,_szY) )return;	sexp=sexp->next;	if ( !sexp || !sexp->next || !sexp->next->next )	{		_flag= 0;	}	else	{		Parser::parseValue(sexp,_rotation);		sexp = sexp->next->next->next;		if ( !sexp || !sexp->next || !sexp->next->next )		{			_flag = 1;		}		else		{			_flag = 2;			Parser::parseValue(sexp,_rgb);		}	}}void LogRectangle::print(std::ostream& ost)const{	ost<<"(R "<<_pos<<' '<<_szX<<' '<<_szY;	if ( _flag > 0 ) ost<<' '<<_rotation;	if ( _flag > 1 ) ost<<' '<<_rgb;	ost<<')';}LogCircle::LogCircle(const Vector3f& pos,float r):_pos(pos),_r(r),_flag(0){}LogCircle::LogCircle(const Vector3f& pos,float r, const Vector3f& rotation):_pos(pos),_r(r),_flag(1),_rotation(rotation){}LogCircle::LogCircle(const Vector3f& pos,float r, const Vector3f& rotation, const Vector3f& rgb):_pos(pos),_r(r),_flag(2),_rotation(rotation),_rgb(rgb){}LogCircle::LogCircle(const sexp_t* sexp){	if( !Parser::parseValue(sexp,_pos) )return;	sexp=sexp->next->next->next;	if( !Parser::parseValue(sexp,_r) )return;	sexp=sexp->next;	if ( !sexp || !sexp->next || !sexp->next->next )	{		_flag= 0;	}	else	{		Parser::parseValue(sexp,_rotation);		sexp = sexp->next->next->next;		if ( !sexp || !sexp->next || !sexp->next->next )		{			_flag = 1;		}		else		{			_flag = 2;			Parser::parseValue(sexp,_rgb);		}	}}void LogCircle::print(std::ostream& ost)const{	ost<<"(C "<<_pos<<' '<<_r;	if ( _flag > 0 ) ost<<' '<<_rotation;	if ( _flag > 1 ) ost<<' '<<_rgb;	ost<<')';}LogLine::LogLine(const Vector3f& x0,const Vector3f& x1):_x0(x0),_x1(x1),_flag(0){}LogLine::LogLine(const Vector3f& x0,const Vector3f& x1, const Vector3f& rgb):_x0(x0),_x1(x1),_flag(1),_rgb(rgb){}LogLine::LogLine(const sexp_t* sexp){	if( !Parser::parseValue(sexp,_x0) )return;	sexp=sexp->next->next->next;	if( !Parser::parseValue(sexp,_x1) )return;	sexp=sexp->next->next->next;	if ( !sexp || !sexp->next || !sexp->next->next )	{		_flag= 0;	}	else	{		Parser::parseValue(sexp,_rgb);		_flag = 1;	}}void LogLine::print(std::ostream& ost)const{	ost<<"(L "<<_x0<<' '<<_x1;	if ( _flag > 0 ) ost<<' '<<_rgb;	ost<<')';}void LogInfo::clear(){	vector<LogData*>::const_iterator iter(_data.begin()),end(_data.end());	for(; iter!=end; ++iter)	{		delete (*iter);	}	_data.clear();}void LogLevel::clear(){	map<int, LogInfo>::iterator iter(_data.begin()),end(_data.end());	for(; iter!=end; ++iter)	{		iter->second.clear();	}	_data.clear();}const static LogInfo ghostLogInfo;LogInfo& LogLevel::operator[](int i){	map<int, LogInfo>::iterator iter = _data.find(i);	if ( iter == _data.end() )	{		insert(i,ghostLogInfo);		iter = _data.find(i);	}	return iter->second;}const LogInfo& LogLevel::operator[](int i)const{	map<int, LogInfo>::const_iterator iter = _data.find(i);	if ( iter == _data.end() ) return ghostLogInfo;	return iter->second;}std::ostream& operator<<(std::ostream& ost, const LogInfo& v){	vector< LogData* >::const_iterator iter(v._data.begin()),end(v._data.end());	for( ; iter!=end; ++iter )	{		(*iter)->print(ost);	}	return ost;}std::ostream& operator<<(std::ostream& ost, const LogLevel& v){	map<int, LogInfo>::const_iterator iter(v._data.begin()),end(v._data.end());	for(; iter!=end; ++iter )	{		ost<<'('<<iter->first<<' '<<iter->second<<')';	}	return ost;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日日夜夜一区二区| 麻豆极品一区二区三区| 日韩欧美国产一二三区| 91福利国产精品| 91丨九色丨蝌蚪丨老版| jizzjizzjizz欧美| 色系网站成人免费| www.亚洲精品| 欧美猛男超大videosgay| 欧美一区二区三区四区五区 | 一区二区三区国产| 亚洲三级视频在线观看| 丝袜亚洲另类欧美综合| 捆绑调教一区二区三区| 91影院在线观看| 91精品综合久久久久久| 欧美精品一区二区久久婷婷| 成人欧美一区二区三区黑人麻豆| 午夜精品久久久久久久久久| 极品少妇一区二区三区精品视频 | 欧美高清精品3d| 欧美不卡一二三| 亚洲成在人线在线播放| 激情图区综合网| 欧美三区在线观看| 欧美国产视频在线| 日韩中文字幕av电影| 欧美一区二区三区在线观看视频| 日韩电影免费在线观看网站| 欧美日韩国产天堂| 日本免费新一区视频| 日韩视频一区二区| 激情成人午夜视频| 中文字幕第一区二区| 91美女在线看| 六月丁香综合在线视频| 久久久综合激的五月天| 成熟亚洲日本毛茸茸凸凹| 国产免费久久精品| 97久久精品人人做人人爽50路| 久久久噜噜噜久噜久久综合| 成人在线综合网站| 亚洲男人的天堂在线aⅴ视频| 免费人成精品欧美精品 | 国产伦精品一区二区三区视频青涩 | 亚洲国产精品av| 成人免费av在线| 一区二区三区小说| 日韩免费看网站| 成av人片一区二区| 亚洲大片免费看| 中文字幕亚洲欧美在线不卡| 欧美一区二区精品| 在线欧美一区二区| 一本色道久久综合亚洲91| 久久精品国产一区二区三| 日韩欧美亚洲国产另类| 91蝌蚪porny成人天涯| 国产精品456露脸| 久久成人免费网| 首页欧美精品中文字幕| 亚洲免费资源在线播放| 日本一区二区成人| 中文字幕av一区二区三区| 日韩精品一区二区在线| 欧美日韩国产精选| 日韩一级欧美一级| 日韩午夜精品电影| 久久中文娱乐网| 欧美国产日韩a欧美在线观看| 91麻豆精品国产无毒不卡在线观看| 91麻豆免费观看| 在线视频一区二区三| 欧美中文字幕不卡| 精品欧美乱码久久久久久| 欧美日韩国产欧美日美国产精品| 91成人看片片| 日韩欧美国产麻豆| 国产亲近乱来精品视频 | 懂色一区二区三区免费观看| 久久精品国产99国产| 国产精品123| 欧美视频在线播放| 日韩一区二区精品在线观看| 欧美激情中文字幕一区二区| 一区二区三区高清| 久久 天天综合| 欧美性感一类影片在线播放| 欧美精品一区二区久久久| 一区二区三区四区高清精品免费观看 | 国产精品美女一区二区| 麻豆成人在线观看| 日韩主播视频在线| 成人美女在线视频| 欧美精品日韩精品| 国产精品天天看| 日本不卡免费在线视频| 91在线视频官网| 91精品黄色片免费大全| 国产精品乱人伦| 狠狠狠色丁香婷婷综合激情| 99国产精品久| 国产三级三级三级精品8ⅰ区| 一区二区激情小说| 成人丝袜视频网| 久久精品亚洲乱码伦伦中文| 亚洲国产日产av| 91免费视频大全| 国产蜜臀av在线一区二区三区| 免费观看在线综合色| 91精品国产综合久久久蜜臀图片| 日本一区二区成人在线| 国产一区二区三区不卡在线观看| 91精品国产91久久综合桃花| 日韩精品免费视频人成| 欧美日韩日日夜夜| 石原莉奈一区二区三区在线观看| 欧美视频完全免费看| 日日摸夜夜添夜夜添国产精品| 色老头久久综合| 日韩av电影天堂| 精品久久久影院| 国产精品一二三在| 亚洲欧美日韩在线不卡| 欧美在线影院一区二区| 丝袜美腿亚洲色图| 精品国产三级电影在线观看| 久久精品国产99国产精品| 中文字幕第一区| 色成年激情久久综合| 国内精品第一页| 亚洲色图制服诱惑| 2017欧美狠狠色| 欧美日韩成人一区二区| 国产一区二区在线影院| 亚洲嫩草精品久久| 国产精品理论在线观看| 日韩一级黄色大片| 在线视频欧美区| 成人自拍视频在线| 国内精品伊人久久久久av影院 | 337p粉嫩大胆噜噜噜噜噜91av| 国产农村妇女精品| 色婷婷一区二区| 国产a区久久久| 国产在线乱码一区二区三区| 午夜影院在线观看欧美| 中文字幕av一区二区三区高| 3d成人动漫网站| 欧美日韩日日摸| 26uuu国产日韩综合| 久久99日本精品| 五月天欧美精品| 国产成人午夜99999| 国产河南妇女毛片精品久久久 | 亚洲综合无码一区二区| 国产亚洲欧美日韩俺去了| 欧美日韩国产色站一区二区三区| 高清不卡一二三区| 欧美日韩免费一区二区三区 | 在线视频你懂得一区| 欧美日韩国产成人在线91| 欧美一区二区成人| 国产午夜精品一区二区 | 欧美三片在线视频观看| 日韩欧美一区二区免费| 国产精品视频yy9299一区| 亚洲国产日韩综合久久精品| 不卡电影一区二区三区| 国产一区二区电影| 日本电影亚洲天堂一区| 久久欧美一区二区| 婷婷国产v国产偷v亚洲高清| 制服丝袜成人动漫| 美国av一区二区| 亚洲成人av一区二区三区| 亚洲激情av在线| 美腿丝袜亚洲一区| 9191成人精品久久| 亚洲精品少妇30p| 在线视频欧美精品| 亚洲免费观看高清完整版在线观看熊| 久久成人羞羞网站| av激情综合网| 精品在线免费观看| 免费不卡在线视频| 中文字幕一区二区在线观看 | 欧美国产一区视频在线观看| 国产精品一品二品| 日韩不卡在线观看日韩不卡视频| 久久婷婷国产综合精品青草| 7777精品伊人久久久大香线蕉的 | 99久久精品国产导航| 久久九九影视网| 国产精品一区二区三区乱码| 欧美v日韩v国产v| 国产精品一区二区久激情瑜伽| 国产天堂亚洲国产碰碰| 国产一区二区三区四区五区美女| 久久久久久99久久久精品网站|