资源简介
这是一份开源代码,关于车联网应用的,ns3仿真平台
代码片段和文件信息
/*
www.sourceforge.net/projects/tinyxml
This software is provided ‘as-is‘ without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose including commercial applications and to alter it and
redistribute it freely subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must
not claim that you wrote the original software. If you use this
software in a product an acknowledgment in the product documentation
would be appreciated but is not required.
2. Altered source versions must be plainly marked as such and
must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
*/
#ifndef TIxml_USE_STL
#include “tinystr.h“
// Error value for find primitive
const TixmlString::size_type TixmlString::npos = static_cast< TixmlString::size_type >(-1);
// Null rep.
TixmlString::Rep TixmlString::nullrep_ = { 0 0 { ‘\0‘ } };
void TixmlString::reserve (size_type cap)
{
if (cap > capacity())
{
TixmlString tmp;
tmp.init(length() cap);
memcpy(tmp.start() data() length());
swap(tmp);
}
}
TixmlString& TixmlString::assign(const char* str size_type len)
{
size_type cap = capacity();
if (len > cap || cap > 3*(len + 8))
{
TixmlString tmp;
tmp.init(len);
memcpy(tmp.start() str len);
swap(tmp);
}
else
{
memmove(start() str len);
set_size(len);
}
return *this;
}
TixmlString& TixmlString::append(const char* str size_type len)
{
size_type newsize = length() + len;
if (newsize > capacity())
{
reserve (newsize + capacity());
}
memmove(finish() str len);
set_size(newsize);
return *this;
}
TixmlString operator + (const TixmlString & a const TixmlString & b)
{
TixmlString tmp;
tmp.reserve(a.length() + b.length());
tmp += a;
tmp += b;
return tmp;
}
TixmlString operator + (const TixmlString & a const char* b)
{
TixmlString tmp;
TixmlString::size_type b_len = static_castlString::size_type>( strlen(b) );
tmp.reserve(a.length() + b_len);
tmp += a;
tmp.append(b b_len);
return tmp;
}
TixmlString operator + (const char* a const TixmlString & b)
{
TixmlString tmp;
TixmlString::size_type a_len = static_castlString::size_type>( strlen(a) );
tmp.reserve(a_len + b.length());
tmp.append(a a_len);
tmp += b;
return tmp;
}
#endif // TIxml_USE_STL
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-09-20 16:45 vanet-highway\
目录 0 2012-09-20 16:46 vanet-highway\doc\
文件 1182666 2011-11-09 18:52 vanet-highway\doc\Bradley Dupont Project Paper - Improving VANET Simulator in NS3.pdf
目录 0 2012-09-20 17:59 __MACOSX\
目录 0 2012-09-20 17:59 __MACOSX\vanet-highway\
目录 0 2012-09-20 17:59 __MACOSX\vanet-highway\doc\
文件 212 2011-11-09 18:52 __MACOSX\vanet-highway\doc\._Bradley Dupont Project Paper - Improving VANET Simulator in NS3.pdf
文件 374008 2011-11-09 17:47 vanet-highway\doc\Improving VANET Simulator In NS-3.pptx
文件 212 2011-11-09 17:47 __MACOSX\vanet-highway\doc\._Improving VANET Simulator In NS-3.pptx
文件 564190 2011-11-09 18:53 vanet-highway\doc\SimpleHighwayExample.pdf
文件 212 2011-11-09 18:53 __MACOSX\vanet-highway\doc\._SimpleHighwayExample.pdf
文件 2202 2012-09-20 16:45 vanet-highway\doc\vanet-highway.rst
目录 0 2012-09-20 17:42 vanet-highway\examples\
文件 12655 2011-09-28 19:26 vanet-highway\examples\FourWayIntersection.xm
目录 0 2012-09-20 17:59 __MACOSX\vanet-highway\examples\
文件 212 2011-09-28 19:26 __MACOSX\vanet-highway\examples\._FourWayIntersection.xm
文件 5675 2011-10-24 19:00 vanet-highway\examples\HighwayProject.xsd
文件 212 2011-10-24 19:00 __MACOSX\vanet-highway\examples\._HighwayProject.xsd
文件 779 2011-11-06 11:56 vanet-highway\examples\SimpleStraightHighway.xm
文件 212 2011-11-06 11:56 __MACOSX\vanet-highway\examples\._SimpleStraightHighway.xm
文件 3254 2011-09-25 20:34 vanet-highway\examples\testhighway.xm
文件 212 2011-09-25 20:34 __MACOSX\vanet-highway\examples\._testhighway.xm
文件 6434 2012-09-20 17:42 vanet-highway\examples\vanet-highway-test.cc
文件 212 2012-09-20 17:42 __MACOSX\vanet-highway\examples\._vanet-highway-test.cc
文件 222 2012-09-20 16:45 vanet-highway\examples\wsc
目录 0 2012-09-20 16:53 vanet-highway\helper\
目录 0 2012-09-20 16:53 vanet-highway\model\
文件 5670 2011-09-28 19:28 vanet-highway\model\Geometry.cc
目录 0 2012-09-20 17:59 __MACOSX\vanet-highway\model\
文件 212 2011-09-28 19:28 __MACOSX\vanet-highway\model\._Geometry.cc
文件 532 2011-07-30 16:42 vanet-highway\model\Geometry.h
............此处省略69个文件信息
- 上一篇:51单片机介绍
- 下一篇:CoupleFila-cr -破解版
相关资源
- 一个简单的库存管理系统
-
xm
l实验报告78072 -
opencv的xm
l文件 -
Nativexm
l xe10 -
电影数据库xm
l格式 - 城市交通仿真平台SUMO(V1.3)
-
opencv车牌识别xm
l文件 -
Oxygen xm
l Editor破解(10和12的破解包 - NS3中的VANET仿真
-
xm
l+xsl+css+dtd书写的个人网页 -
使用timyxm
l解析xm l文件,并显示在 - MPEG-7详细介绍.pdf
-
QQxm
l扫描器.exe 免费版 - 好用的标图工具
-
xm
l工具展示xm l - 网上购物在线商城
- HCM2010-Highway capacity manuals
-
xm
l+XSL/FO生成PDF文件Demo - 驾考系统.7z
-
xm
l存储系统,源码,详细注释 -
oxygen xm
l editor 17.0 keygen -
httpclient 客户端发送xm
l报文到服务器 -
xm
lSpy2013 绿色版 -
圣思园xm
l培训视频课堂笔记完整版 - VANET交通仿真软件SUMO安装包
-
xm
l+Xslt测试工具 -
疯狂xm
l讲义 第2版 pdf -
\\xm
l同学录系统\\xm l同学录系统 -
xm
l个人完美简历制作 -
RAPIDxm
l中文手册,根据官方文档翻译
评论
共有 条评论