Scid  4.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Filter Class Reference

#include <hfilter.h>

Public Member Functions

 Filter (gamenumT size)
 
void Init (gamenumT size)
 
bytedata ()
 Return a pointer to the allocated data. More...
 
gamenumT Count () const
 Return the number of nonzero values in filter. More...
 
gamenumT Size () const
 Return the number of elements in filter. More...
 
void Resize (gamenumT size)
 Changes the number of elements stored. More...
 
byte Get (gamenumT index) const
 Gets the value at index. More...
 
void Set (gamenumT index, byte value)
 Sets the value at index. More...
 
void Fill (byte value)
 Sets all values. More...
 

Detailed Description

Definition at line 35 of file hfilter.h.

Constructor & Destructor Documentation

◆ Filter()

Filter::Filter ( gamenumT  size)
inlineexplicit

Definition at line 42 of file hfilter.h.

Member Function Documentation

◆ Count()

gamenumT Filter::Count ( ) const
inline

Return the number of nonzero values in filter.

Definition at line 54 of file hfilter.h.

◆ data()

byte* Filter::data ( )
inline

Return a pointer to the allocated data.

Definition at line 51 of file hfilter.h.

◆ Fill()

void Filter::Fill ( byte  value)
inline

Sets all values.

Definition at line 109 of file hfilter.h.

◆ Get()

byte Filter::Get ( gamenumT  index) const
inline

Gets the value at index.

Definition at line 83 of file hfilter.h.

◆ Init()

void Filter::Init ( gamenumT  size)
inline

Definition at line 45 of file hfilter.h.

◆ Resize()

void Filter::Resize ( gamenumT  size)
inline

Changes the number of elements stored.

Definition at line 60 of file hfilter.h.

◆ Set()

void Filter::Set ( gamenumT  index,
byte  value 
)
inline

Sets the value at index.

Definition at line 89 of file hfilter.h.

◆ Size()

gamenumT Filter::Size ( ) const
inline

Return the number of elements in filter.

Definition at line 57 of file hfilter.h.


The documentation for this class was generated from the following file: