TSIntegerSet

Engine/source/ts/tsIntegerSet.h

The standard mathmatical set, where there are no duplicates.

More...

Private Attributes

bits [MAX_TS_SET_DWORDS]

The bits!

Public Functions

clear(S32 index)

Sets this bit to false.

clearAll(S32 upto)

Sets all bits to false.

copy one integer set into another

count(S32 upto)

Counts set bits.

xor (a | b) & ( !(a & b) )

end()
erase(S32 index)
insert(S32 index, bool value)

intersection (a & b)

next(S32 & i)

union (a | b)

set(S32 index)

Set this bit to true.

setAll(S32 upto)

Sets all bits to true.

subtraction (a - b)

bool
test(S32 index)

Is this bit true?

bool
testAll(S32 upto)

Tests all bits for true.

Detailed Description

The standard mathmatical set, where there are no duplicates.

However, this set uses bits instead of numbers.

Private Attributes

U32 bits [MAX_TS_SET_DWORDS]

The bits!

Public Functions

TSIntegerSet()

TSIntegerSet(const TSIntegerSet & )

clear(S32 index)

Sets this bit to false.

clearAll(S32 upto)

Sets all bits to false.

copy(const TSIntegerSet & )

copy one integer set into another

count(S32 upto)

Counts set bits.

difference(const TSIntegerSet & )

xor (a | b) & ( !(a & b) )

end()

erase(S32 index)

insert(S32 index, bool value)

intersect(const TSIntegerSet & )

intersection (a & b)

next(S32 & i)

operator=(const TSIntegerSet & otherSet)

overlap(const TSIntegerSet & )

union (a | b)

read(Stream * )

set(S32 index)

Set this bit to true.

setAll(S32 upto)

Sets all bits to true.

start()

takeAway(const TSIntegerSet & )

subtraction (a - b)

test(S32 index)

Is this bit true?

testAll(S32 upto)

Tests all bits for true.

write(Stream * )