Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
BooleanVectorClass Class Reference

#include <Vector.H>

Public Member Functions

 BooleanVectorClass (unsigned size=0, unsigned char *array=0)
 
 BooleanVectorClass (BooleanVectorClass const &vector)
 
BooleanVectorClassoperator= (BooleanVectorClass const &vector)
 
bool operator== (BooleanVectorClass const &vector) const
 
void Init (unsigned size, unsigned char *array)
 
void Init (unsigned size)
 
int Length (void)
 
void Reset (void)
 
void Set (void)
 
void Clear (void)
 
int Resize (unsigned size)
 
bool const & operator[] (int index) const
 
booloperator[] (int index)
 
bool Is_True (int index) const
 
int First_False (void) const
 
int First_True (void) const
 
const VectorClass< unsigned char > & Get_Bit_Array (void)
 
 BooleanVectorClass (unsigned size=0, unsigned char *array=0)
 
 BooleanVectorClass (BooleanVectorClass const &vector)
 
BooleanVectorClassoperator= (BooleanVectorClass const &vector)
 
bool operator== (BooleanVectorClass const &vector)
 
int Length (void)
 
void Reset (void)
 
void Set (void)
 
void Clear (void)
 
int Resize (unsigned size)
 
bool const & operator[] (int index) const
 
booloperator[] (int index)
 
bool Is_True (int index) const
 
int First_False (void) const
 
int First_True (void) const
 

Protected Member Functions

void Fixup (int index=-1) const
 

Protected Attributes

int BitCount
 
bool Copy
 
int LastIndex
 
VectorClass< unsigned char > BitArray
 

Detailed Description

Definition at line 967 of file Vector.H.

Constructor & Destructor Documentation

◆ BooleanVectorClass() [1/4]

BooleanVectorClass::BooleanVectorClass ( unsigned size = 0,
unsigned char * array = 0 )

Definition at line 85 of file vector.cpp.

◆ BooleanVectorClass() [2/4]

BooleanVectorClass::BooleanVectorClass ( BooleanVectorClass const & vector)

Definition at line 112 of file vector.cpp.

◆ BooleanVectorClass() [3/4]

BooleanVectorClass::BooleanVectorClass ( unsigned size = 0,
unsigned char * array = 0 )

◆ BooleanVectorClass() [4/4]

BooleanVectorClass::BooleanVectorClass ( BooleanVectorClass const & vector)

Member Function Documentation

◆ Clear() [1/2]

void BooleanVectorClass::Clear ( void )

Definition at line 241 of file vector.cpp.

◆ Clear() [2/2]

void BooleanVectorClass::Clear ( void )

◆ First_False() [1/2]

int BooleanVectorClass::First_False ( void ) const
inline

Definition at line 1015 of file Vector.H.

◆ First_False() [2/2]

int BooleanVectorClass::First_False ( void ) const
inline

Definition at line 903 of file Vector.H.

◆ First_True() [1/2]

int BooleanVectorClass::First_True ( void ) const
inline

Definition at line 1029 of file Vector.H.

◆ First_True() [2/2]

int BooleanVectorClass::First_True ( void ) const
inline

Definition at line 917 of file Vector.H.

◆ Fixup()

void BooleanVectorClass::Fixup ( int index = -1) const
protected

Definition at line 316 of file vector.cpp.

◆ Get_Bit_Array()

const VectorClass< unsigned char > & BooleanVectorClass::Get_Bit_Array ( void )
inline

Definition at line 1043 of file Vector.H.

◆ Init() [1/2]

void BooleanVectorClass::Init ( unsigned size)

Definition at line 389 of file vector.cpp.

◆ Init() [2/2]

void BooleanVectorClass::Init ( unsigned size,
unsigned char * array )

Definition at line 368 of file vector.cpp.

◆ Is_True() [1/2]

bool BooleanVectorClass::Is_True ( int index) const
inline

Definition at line 1009 of file Vector.H.

◆ Is_True() [2/2]

bool BooleanVectorClass::Is_True ( int index) const
inline

Definition at line 897 of file Vector.H.

◆ Length() [1/2]

int BooleanVectorClass::Length ( void )
inline

Definition at line 984 of file Vector.H.

◆ Length() [2/2]

int BooleanVectorClass::Length ( void )
inline

Definition at line 872 of file Vector.H.

◆ operator=() [1/2]

BooleanVectorClass & BooleanVectorClass::operator= ( BooleanVectorClass const & vector)

Definition at line 135 of file vector.cpp.

◆ operator=() [2/2]

BooleanVectorClass & BooleanVectorClass::operator= ( BooleanVectorClass const & vector)

◆ operator==() [1/2]

bool BooleanVectorClass::operator== ( BooleanVectorClass const & vector)

Definition at line 161 of file Vector.CPP.

◆ operator==() [2/2]

bool BooleanVectorClass::operator== ( BooleanVectorClass const & vector) const

Definition at line 161 of file vector.cpp.

◆ operator[]() [1/4]

bool & BooleanVectorClass::operator[] ( int index)
inline

Definition at line 1003 of file Vector.H.

◆ operator[]() [2/4]

bool & BooleanVectorClass::operator[] ( int index)
inline

Definition at line 891 of file Vector.H.

◆ operator[]() [3/4]

bool const & BooleanVectorClass::operator[] ( int index) const
inline

Definition at line 999 of file Vector.H.

◆ operator[]() [4/4]

bool const & BooleanVectorClass::operator[] ( int index) const
inline

Definition at line 887 of file Vector.H.

◆ Reset() [1/2]

void BooleanVectorClass::Reset ( void )

Definition at line 263 of file vector.cpp.

◆ Reset() [2/2]

void BooleanVectorClass::Reset ( void )

◆ Resize() [1/2]

int BooleanVectorClass::Resize ( unsigned size)

Definition at line 183 of file vector.cpp.

◆ Resize() [2/2]

int BooleanVectorClass::Resize ( unsigned size)

◆ Set() [1/2]

void BooleanVectorClass::Set ( void )

Definition at line 286 of file vector.cpp.

◆ Set() [2/2]

void BooleanVectorClass::Set ( void )

Member Data Documentation

◆ BitArray

VectorClass< unsigned char > BooleanVectorClass::BitArray
protected

Definition at line 1074 of file Vector.H.

◆ BitCount

int BooleanVectorClass::BitCount
protected

Definition at line 1054 of file Vector.H.

◆ Copy

bool BooleanVectorClass::Copy
protected

Definition at line 1062 of file Vector.H.

◆ LastIndex

int BooleanVectorClass::LastIndex
protected

Definition at line 1069 of file Vector.H.


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