bitvector.h

来自「主要是介绍人工模拟股票市场的」· C头文件 代码 · 共 44 行

H
44
字号
#import <objectbase/SwarmObject.h>

@interface BitVector: SwarmObject
{
  int condwords; /*"Number of words of memory required to hold bits in this model"*/
  int condbits;  /*"The number of conditions bits we expect to actually use"*/
  unsigned int *conditions; /*points to a dynamically allocated array of "condwords" elements"*/
}


- createEnd;

+ init;

- (void)setCondwords: (int)x;

- (void) setCondbits: (int)x;

- (void)setConditions: (int *)x;

- (int *)getConditions;

- (void)setConditionsWord: (int)i To: (int)value;

- (int)getConditionsWord: (int)i;

- (void)setConditionsbit: (int)bit To: (int)x;

- (int)getConditionsbit: (int)bit;

- (void)setConditionsbitToThree: (int)bit;

- (void)switchConditionsbit: (int)bit;

- (void)setConditionsbit: (int)bit FromZeroTo: (int)x;

- (void)maskConditionsbit: (int)bit;

- (void)drop;

- printcond: (int)word;

@end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?