Public Member Functions | Static Public Attributes

OrbazTrueBlockIterator Class Reference

Search for all occurrences

#include <IParticleChannelTrueFalseIterator.h>

Inheritance diagram for OrbazTrueBlockIterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  OrbazTrueBlockIterator (const OrbazTrueBlock &block)
int  GetNextTrue (void)

Static Public Attributes

static const int  kBitsPerDWORD = 32

Constructor & Destructor Documentation

OrbazTrueBlockIterator ( const OrbazTrueBlock block ) [inline]
        :   OrbazTrueBlock(block)
        ,   m_iter(0)
        ,   m_mask(1)
    {
    }

Member Function Documentation

int GetNextTrue ( void  ) [inline]
    {
        for(; m_iter < kBitsPerDWORD; ++m_iter, m_mask<<=1)
        {
            if (m_mask & m_blockIndices)
            {
                m_mask <<= 1;
                return (m_majorIndex + (m_iter++));
            }
        }
        return -1;
    }

Member Data Documentation

const int kBitsPerDWORD = 32 [static]

OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator
OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator OrbazTrueBlockIterator