mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-04 12:57:45 +08:00
36 lines
616 B
C++
36 lines
616 B
C++
/*
|
||
* NOT.h
|
||
*
|
||
* Created on: 2019-4-2
|
||
* Author: fasiondog
|
||
*/
|
||
|
||
#pragma once
|
||
#ifndef INDICATOR_CRT_NOT_H_
|
||
#define INDICATOR_CRT_NOT_H_
|
||
|
||
#include "../Indicator.h"
|
||
|
||
namespace hku {
|
||
|
||
/**
|
||
* 求逻辑非。NOT(X)返回非X,即当X=0时返回1,否则返回0。
|
||
* @ingroup Indicator
|
||
*/
|
||
Indicator HKU_API NOT();
|
||
|
||
/**
|
||
* 求逻辑非。NOT(X)返回非X,即当X=0时返回1,否则返回0。
|
||
* @param ind 待计算的数据
|
||
* @ingroup Indicator
|
||
*/
|
||
Indicator NOT(const Indicator& ind);
|
||
|
||
inline Indicator NOT(const Indicator& ind) {
|
||
return NOT()(ind);
|
||
}
|
||
|
||
} /* namespace */
|
||
|
||
#endif /* INDICATOR_CRT_NOT_H_ */
|