Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::GeoBitArray

A simple bit array wrapper, stored in an array of u32s.

Functions

NameDescription
~GeoBitArray()

Basic destructor.

ClearAllItems()

Clear all bits.

ClearItem(s32)

Clear a bit.

ClearUp()

Delete any memory to reset to initial empty state.

ComputeBitArrayLength(s32)

Compute the length of the s32 array that numItems will require.

CountNumBitsSet()

Count and return the number of bits set.

GeoBitArray()

Default constructor.

GeoBitArray(const GeoBitArray &)

Copy constructor.

GetBitArray()

Read-write access to the bit array itself.

GetBitArray()

Read-only access to the bit array itself.

GetNumItems()

Read-only access to num items.

Initialise(s32)

(Re-)Construct a zeroed bit array for numItems.

operator=(const GeoBitArray &)

Assignment from another GeoBitArray.

SetItem(s32)

Set a bit.

TestItem(s32)

Test whether a bit has been set.


Anchor
a26b284bbef904df01f01b9e9d3706e4b
a26b284bbef904df01f01b9e9d3706e4b

Geo::GeoBitArray::~GeoBitArray

...

public: ~GeoBitArray()

...

Basic destructor.


Anchor
ad0529d54474c7be168e2a95e88e9da2e
ad0529d54474c7be168e2a95e88e9da2e

void Geo::GeoBitArray::ClearAllItems

...

public: void ClearAllItems()

...

Clear all bits.


Anchor
aae5358f6a962976e8250d78aff4fb1e3
aae5358f6a962976e8250d78aff4fb1e3

void Geo::GeoBitArray::ClearItem

...

public: void ClearItem
(
    s32 itemIdx
)

...

Clear a bit.


Anchor
a2e8e93be1ffe7a6692f11a8dabd5f399
a2e8e93be1ffe7a6692f11a8dabd5f399

void Geo::GeoBitArray::ClearUp

...

public: void ClearUp()

...

Delete any memory to reset to initial empty state.


Anchor
a26dbbafe252d94028f4af9d2acea125a
a26dbbafe252d94028f4af9d2acea125a

static s32 Geo::GeoBitArray::ComputeBitArrayLength

...

public: s32 ComputeBitArrayLength
(
    s32 numItems
)

...

Compute the length of the s32 array that numItems will require.


Anchor
ae10dfc9ec362c97091575d5f79a7ffa6
ae10dfc9ec362c97091575d5f79a7ffa6

s32 Geo::GeoBitArray::CountNumBitsSet

...

public: s32 CountNumBitsSet() const

...

Count and return the number of bits set.


Anchor
a065466312741eb5a709b459329969f3c
a065466312741eb5a709b459329969f3c

Geo::GeoBitArray::GeoBitArray

...

public: GeoBitArray()

...

Default constructor.


Anchor
a86a851ba0089c97a9743b7e3541b5830
a86a851ba0089c97a9743b7e3541b5830

Geo::GeoBitArray::GeoBitArray

...

public: GeoBitArray
(
    const GeoBitArray & bitArray
)

...

Copy constructor.


Anchor
a5a63e7eb95adf7e70630e04894166878
a5a63e7eb95adf7e70630e04894166878

u32* Geo::GeoBitArray::GetBitArray

...

public: u32 * GetBitArray()

...

Read-write access to the bit array itself.


Anchor
a5b2052a9ba84e2a0853f206a525928e6
a5b2052a9ba84e2a0853f206a525928e6

const u32* Geo::GeoBitArray::GetBitArray

...

public: const u32 * GetBitArray() const

...

Read-only access to the bit array itself.


Anchor
ac85a065d49485bc7ad939e79fd4ed3d6
ac85a065d49485bc7ad939e79fd4ed3d6

s32 Geo::GeoBitArray::GetNumItems

...

public: s32 GetNumItems() const

...

Read-only access to num items.


Anchor
a560f1b4428cd6649e098d02836393708
a560f1b4428cd6649e098d02836393708

bool Geo::GeoBitArray::Initialise

...

public: bool Initialise
(
    s32 numItems
)

...

(Re-)Construct a zeroed bit array for numItems.

'numItems' can be zero but not negative.

Returns

False only if the mem alloc fails.


Anchor
a19a599804611691fafc6530d543aee06
a19a599804611691fafc6530d543aee06

GeoBitArray& Geo::GeoBitArray::operator=

...

public: GeoBitArray & operator=
(
    const GeoBitArray & bitArray
)

...

Assignment from another GeoBitArray.


Anchor
adca1dfbf390facdcad09f46e7e521c59
adca1dfbf390facdcad09f46e7e521c59

void Geo::GeoBitArray::SetItem

...

public: void SetItem
(
    s32 itemIdx
)

...

Set a bit.


Anchor
aa0bde0b3c6ef166655659912a256cac8
aa0bde0b3c6ef166655659912a256cac8

bool Geo::GeoBitArray::TestItem

...

public: bool TestItem
(
    s32 itemIdx
) const

...

Test whether a bit has been set.