0
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
virtual   BOOL IsDead( VOID ){ return FALSE };2011   2   26
2011   2   26
2011   2   26
2011   2   26
hidekiUtil_RenderParticle       df3CharHitAtkAttrCalc       bosActorCreate2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
C++ Coding Standards       1012011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
Array()                virtual ‾Array()                void    alloc(unsigned int size);                void    release();...
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
typedef eastl::list<int, fixed_allocator> IntList;typedef IntList::node_type                IntListNode;IntListNode buffer...
2011   2   26
2011   2   26
template <typename T,   size_t nodeCount,   bool bEnableOverflow = true,   typename Allocator = EASTLAllocatorType> class ...
Example usage:   fixed_vector<Widget, 128, true> fixedVector;   fixedVector.push_back(Widget());   fixedVector.resize(200)...
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
// tuple!!  #include <boost/tuple/tuple.hpp>  class HandleBase;  boost::tuple<unsigned long, unsigned long>  RegisterHandl...
template <class T>  class Handle : public HandleBase  {  public:      Handle(unsigned long id, unsigned long index)      :...
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
2011   2   26
Upcoming SlideShare
Loading in...5
×

Boost study#4

13,175

Published on

Boost.勉強会 #4 での「ゲーム開発のC++」

Published in: Technology
1 Comment
8 Likes
Statistics
Notes
No Downloads
Views
Total Views
13,175
On Slideshare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
59
Comments
1
Likes
8
Embeds 0
No embeds

No notes for slide

Transcript of "Boost study#4"

  1. 1. 2011 2 26
  2. 2. 2011 2 26
  3. 3. 2011 2 26
  4. 4. 2011 2 26
  5. 5. 2011 2 26
  6. 6. 2011 2 26
  7. 7. 2011 2 26
  8. 8. 2011 2 26
  9. 9. 2011 2 26
  10. 10. 2011 2 26
  11. 11. 2011 2 26
  12. 12. 2011 2 26
  13. 13. 2011 2 26
  14. 14. 2011 2 26
  15. 15. 2011 2 26
  16. 16. 2011 2 26
  17. 17. 2011 2 26
  18. 18. 2011 2 26
  19. 19. 2011 2 26
  20. 20. 2011 2 26
  21. 21. 2011 2 26
  22. 22. 2011 2 26
  23. 23. 2011 2 26
  24. 24. 2011 2 26
  25. 25. 2011 2 26
  26. 26. 2011 2 26
  27. 27. 2011 2 26
  28. 28. 2011 2 26
  29. 29. 2011 2 26
  30. 30. 2011 2 26
  31. 31. 2011 2 26
  32. 32. 2011 2 26
  33. 33. 2011 2 26
  34. 34. 2011 2 26
  35. 35. 2011 2 26
  36. 36. 2011 2 26
  37. 37. 2011 2 26
  38. 38. 2011 2 26
  39. 39. 2011 2 26
  40. 40. 2011 2 26
  41. 41. 2011 2 26
  42. 42. 2011 2 26
  43. 43. 2011 2 26
  44. 44. 2011 2 26
  45. 45. 2011 2 26
  46. 46. 2011 2 26
  47. 47. 2011 2 26
  48. 48. 2011 2 26
  49. 49. 2011 2 26
  50. 50. 2011 2 26
  51. 51. 2011 2 26
  52. 52. 2011 2 26
  53. 53. 2011 2 26
  54. 54. 2011 2 26
  55. 55. virtual BOOL IsDead( VOID ){ return FALSE };2011 2 26
  56. 56. 2011 2 26
  57. 57. 2011 2 26
  58. 58. 2011 2 26
  59. 59. hidekiUtil_RenderParticle df3CharHitAtkAttrCalc bosActorCreate2011 2 26
  60. 60. 2011 2 26
  61. 61. 2011 2 26
  62. 62. 2011 2 26
  63. 63. 2011 2 26
  64. 64. 2011 2 26
  65. 65. 2011 2 26
  66. 66. 2011 2 26
  67. 67. 2011 2 26
  68. 68. 2011 2 26
  69. 69. 2011 2 26
  70. 70. 2011 2 26
  71. 71. 2011 2 26
  72. 72. 2011 2 26
  73. 73. 2011 2 26
  74. 74. 2011 2 26
  75. 75. C++ Coding Standards 1012011 2 26
  76. 76. 2011 2 26
  77. 77. 2011 2 26
  78. 78. 2011 2 26
  79. 79. 2011 2 26
  80. 80. 2011 2 26
  81. 81. 2011 2 26
  82. 82. 2011 2 26
  83. 83. 2011 2 26
  84. 84. 2011 2 26
  85. 85. 2011 2 26
  86. 86. 2011 2 26
  87. 87. 2011 2 26
  88. 88. Array() virtual ‾Array() void alloc(unsigned int size); void release(); void setFuncValid(FuncValid i); FuncValid funcValid(); void setFuncEqual(FuncEqual i); FuncEqual funcEqual(); void setFuncSort(FuncSort i); FuncSort funcSort(); bool valid(); unsigned int size(); T &operator[](unsigned int index); T &operator[](int index); Array<T> &operator=(const Array<T> &i); T *ptr(); void push(T&v); void pop(T &v); T *find(T &v); T *findInvalid(); void sort(); bool validAssert(); unsigned int count(FuncValid func); void clear(); void fill(T i);2011 2 26
  89. 89. 2011 2 26
  90. 90. 2011 2 26
  91. 91. 2011 2 26
  92. 92. 2011 2 26
  93. 93. 2011 2 26
  94. 94. 2011 2 26
  95. 95. 2011 2 26
  96. 96. 2011 2 26
  97. 97. 2011 2 26
  98. 98. 2011 2 26
  99. 99. 2011 2 26
  100. 100. 2011 2 26
  101. 101. 2011 2 26
  102. 102. 2011 2 26
  103. 103. 2011 2 26
  104. 104. 2011 2 26
  105. 105. 2011 2 26
  106. 106. 2011 2 26
  107. 107. 2011 2 26
  108. 108. 2011 2 26
  109. 109. 2011 2 26
  110. 110. typedef eastl::list<int, fixed_allocator> IntList;typedef IntList::node_type IntListNode;IntListNode buffer[200];IntList intList;intList.get_allocator().init( buffer, sizeof(buffer), sizeof(IntListNode), __alignof(IntListNode));2011 2 26
  111. 111. 2011 2 26
  112. 112. 2011 2 26
  113. 113. template <typename T, size_t nodeCount, bool bEnableOverflow = true, typename Allocator = EASTLAllocatorType> class fixed_vector T = nodeCount = bEnableOverflow = Allocator = bEnableOverflow ture2011 2 26
  114. 114. Example usage: fixed_vector<Widget, 128, true> fixedVector; fixedVector.push_back(Widget()); fixedVector.resize(200); fixedVector.clear();2011 2 26
  115. 115. 2011 2 26
  116. 116. 2011 2 26
  117. 117. 2011 2 26
  118. 118. 2011 2 26
  119. 119. 2011 2 26
  120. 120. 2011 2 26
  121. 121. 2011 2 26
  122. 122. 2011 2 26
  123. 123. 2011 2 26
  124. 124. 2011 2 26
  125. 125. 2011 2 26
  126. 126. 2011 2 26
  127. 127. 2011 2 26
  128. 128. 2011 2 26
  129. 129. 2011 2 26
  130. 130. 2011 2 26
  131. 131. 2011 2 26
  132. 132. 2011 2 26
  133. 133. 2011 2 26
  134. 134. 2011 2 26
  135. 135. 2011 2 26
  136. 136. 2011 2 26
  137. 137. 2011 2 26
  138. 138. 2011 2 26
  139. 139. 2011 2 26
  140. 140. 2011 2 26
  141. 141. 2011 2 26
  142. 142. // tuple!! #include <boost/tuple/tuple.hpp> class HandleBase; boost::tuple<unsigned long, unsigned long> RegisterHandle(void* object); void UnregisterHandle(HandleBase handle); class HandleBase { public: // valid inline bool isValid() const2011 2 26
  143. 143. template <class T> class Handle : public HandleBase { public: Handle(unsigned long id, unsigned long index) : HandleBase(id, index) { } ... // T* operator->() const2011 2 26
  144. 144. 2011 2 26
  145. 145. 2011 2 26
  146. 146. 2011 2 26
  147. 147. 2011 2 26
  148. 148. 2011 2 26
  149. 149. 2011 2 26
  150. 150. 2011 2 26
  151. 151. 2011 2 26
  152. 152. 2011 2 26
  153. 153. 2011 2 26
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×