• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

テスト用のあれこれ共用フォルダ


Commit MetaInfo

修订版a72d2b1f2ab76e58a0a0eb93680d4d9561682c8f (tree)
时间2018-03-01 06:09:48
作者takemasa <suikan@user...>
Commitertakemasa

Log Message

Change the name of the class

更改概述

  • delete: stm32_development/murasaki/murasaki/{basefifo.cpp => abstractfifo.cpp}
  • delete: stm32_development/murasaki/murasaki/{basefifo.hpp => abstractfifo.hpp}

差异

--- a/stm32_development/murasaki/murasaki/basefifo.cpp
+++ b/stm32_development/murasaki/murasaki/abstractfifo.cpp
@@ -5,14 +5,14 @@
55 * Author: takemasa
66 */
77
8-#include <basefifo.hpp>
8+#include <abstractfifo.hpp>
99 #include <murasaki_assert.hpp>
1010 #include <algorithm>
1111 #include <string.h>
1212
1313 namespace murasaki {
1414
15-BaseFifo::BaseFifo(unsigned int buffer_size):
15+AbstractFifo::AbstractFifo(unsigned int buffer_size):
1616 size_of_buffer_(buffer_size),
1717 buffer_(new uint8_t[size_of_buffer_])
1818 {
@@ -29,13 +29,13 @@ BaseFifo::BaseFifo(unsigned int buffer_size):
2929 }
3030
3131
32-BaseFifo::~BaseFifo()
32+AbstractFifo::~AbstractFifo()
3333 {
3434 if (buffer_ != nullptr)
3535 delete[] buffer_;
3636 }
3737
38-unsigned int BaseFifo::Put(uint8_t const data[], unsigned int size)
38+unsigned int AbstractFifo::Put(uint8_t const data[], unsigned int size)
3939 {
4040 unsigned int avairable;
4141
@@ -72,7 +72,7 @@ unsigned int BaseFifo::Put(uint8_t const data[], unsigned int size)
7272
7373 }
7474
75-unsigned int BaseFifo::Get(uint8_t data[], unsigned int size)
75+unsigned int AbstractFifo::Get(uint8_t data[], unsigned int size)
7676 {
7777 unsigned int copy_size = 0;
7878
@@ -103,7 +103,7 @@ unsigned int BaseFifo::Get(uint8_t data[], unsigned int size)
103103 return copy_size;
104104 }
105105
106-void BaseFifo::ReWind()
106+void AbstractFifo::ReWind()
107107 {
108108 // by setting tail as head+1, the entire buffer is marked as "not sent"
109109 tail_ = head_ + 1;
--- a/stm32_development/murasaki/murasaki/basefifo.hpp
+++ b/stm32_development/murasaki/murasaki/abstractfifo.hpp
@@ -5,8 +5,8 @@
55 * @author takemasa
66 */
77
8-#ifndef BASEFIFO_HPP_
9-#define BASEFIFO_HPP_
8+#ifndef ABSTRACTFIFO_HPP_
9+#define ABSTRACTFIFO_HPP_
1010
1111 #include <ctype.h>
1212 #include <cinttypes>
@@ -25,21 +25,21 @@ namespace murasaki {
2525 * If the internal buffer is empty, it returns without copy data.
2626 *
2727 */
28-class BaseFifo
28+class AbstractFifo
2929 {
3030 public:
31- BaseFifo() = delete;
31+ AbstractFifo() = delete;
3232 /**
3333 * @brief Create an internal buffer
3434 * @param buffer_size Size of the internal buffer to be allocated [byte]
3535 * @details
3636 * Allocate the internal buffer with given buffer_size.
3737 */
38- BaseFifo(unsigned int buffer_size);
38+ AbstractFifo(unsigned int buffer_size);
3939 /**
4040 * @breif Delete an internal buffer
4141 */
42- virtual ~BaseFifo();
42+ virtual ~AbstractFifo();
4343 /**
4444 * @brief Put the data into the internal buffer.
4545 * @param data Data to be copied to the internal buffer
@@ -82,4 +82,4 @@ class BaseFifo
8282
8383 } /* namespace murasaki */
8484
85-#endif /* BASEFIFO_HPP_ */
85+#endif /* ABSTRACTFIFO_HPP_ */