bin.h
来自「ECAN OOP implementation for TMS320 280x 」· C头文件 代码 · 共 42 行
H
42 行
/*! \file bin.h
*/
#ifndef __BIN_HEADER__
#define __BIN_HEADER__
#include <c280xpcl\include\sys.h>
//
// class binarizer
//
class binarizer
{
public:
typedef unsigned short value_type;
typedef unsigned short size_type;
typedef binarizer self_type;
binarizer(value_type* origin, size_type offset = 0);
value_type operator *() const;
self_type& operator=(value_type value);
self_type& operator++();
self_type operator++(int);
self_type& operator--();
self_type operator--(int);
self_type operator +(size_type n) const;
self_type& operator+=(size_type n);
self_type operator -(size_type n) const;
self_type& operator-=(size_type n);
protected:
value_type* origin;
size_type offset;
};
#endif /* __BIN_HEADER__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?