添加bitmap
This commit is contained in:
8
TinySTL/Bitmap.h
Normal file
8
TinySTL/Bitmap.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#ifndef _BITMAP_H_
|
||||||
|
#define _BITMAP_H_
|
||||||
|
|
||||||
|
namespace TinySTL{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -41,9 +41,12 @@
|
|||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<IncludePath>C:\Users\zxh\Desktop\boost_1_56_0;$(IncludePath)</IncludePath>
|
||||||
|
<LibraryPath>C:\Users\zxh\Desktop\boost_1_56_0\libs;$(LibraryPath)</LibraryPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<IncludePath>C:\Users\zxh\Desktop\boost_1_56_0;$(IncludePath)</IncludePath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
@@ -83,6 +86,7 @@
|
|||||||
<ClInclude Include="Algorithm.h" />
|
<ClInclude Include="Algorithm.h" />
|
||||||
<ClInclude Include="Alloc.h" />
|
<ClInclude Include="Alloc.h" />
|
||||||
<ClInclude Include="Allocator.h" />
|
<ClInclude Include="Allocator.h" />
|
||||||
|
<ClInclude Include="Bitmap.h" />
|
||||||
<ClInclude Include="CircularBuffer.h" />
|
<ClInclude Include="CircularBuffer.h" />
|
||||||
<ClInclude Include="Construct.h" />
|
<ClInclude Include="Construct.h" />
|
||||||
<ClInclude Include="Iterator.h" />
|
<ClInclude Include="Iterator.h" />
|
||||||
|
|||||||
@@ -62,5 +62,8 @@
|
|||||||
<ClInclude Include="CircularBuffer.h">
|
<ClInclude Include="CircularBuffer.h">
|
||||||
<Filter>头文件</Filter>
|
<Filter>头文件</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="Bitmap.h">
|
||||||
|
<Filter>头文件</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include <cassert>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@@ -6,22 +7,23 @@
|
|||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "Vector.h"
|
#include <boost\circular_buffer.hpp>
|
||||||
|
|
||||||
|
#include "CircularBuffer.h"
|
||||||
#include "Profiler\Profiler.h"
|
#include "Profiler\Profiler.h"
|
||||||
#include "ReverseIterator.h"
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace TinySTL;
|
using namespace TinySTL::Profiler;
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
int i = 11; int *ptr = &i;
|
TinySTL::circular_buffer<int, 10000> cb(10000, 0);
|
||||||
int array[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
//boost::circular_buffer<int> cb(10000, 0);
|
||||||
TinySTL::vector<int> v(array, array + 9);
|
ProfilerInstance::start();
|
||||||
|
for (int i = 0; i != 100; ++i){
|
||||||
|
cb.push_back(i);
|
||||||
for (auto rit = v.rbegin(); rit != v.rend();rit = rit + 1){ cout << *rit << endl; }
|
}
|
||||||
//TinySTL::reverse_iterator<std::list<int>::iterator> rit(List.begin());
|
ProfilerInstance::finish();
|
||||||
|
ProfilerInstance::dumpDuringTime();
|
||||||
system("pause");
|
system("pause");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user