CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::IndexSet Struct Reference

#include <CeresEngine/Foundation/Container/IndexSet.hpp>

Classes

struct  IndexIterator
 

Public Types

using Data = Vector< UInt32 >
 
using Bits = BitView< Data >
 
using ConstBits = BitView< const Data >
 
using Index = std::size_t
 

Public Member Functions

Bits getBitView ()
 
ConstBits getBitView () const
 
void ensureFits (Index idx)
 
bool hasIndex (Index idx) const
 
void addIndex (Index idx)
 
void removeIndex (Index idx)
 
void add (const IndexSet &other)
 
void remove (const IndexSet &other)
 
void intersect (const IndexSet &other)
 
void clear ()
 
size_t upperBound () const
 
bool isEmpty () const
 
size_t count () const
 
bool operator== (const IndexSet &) const
 
bool operator!= (const IndexSet &) const
 
auto indices () const
 

Private Member Functions

void tighten ()
 

Private Attributes

Data mData
 

Member Typedef Documentation

◆ Bits

◆ ConstBits

◆ Data

◆ Index

Member Function Documentation

◆ add()

void CeresEngine::IndexSet::add ( const IndexSet other)

◆ addIndex()

void CeresEngine::IndexSet::addIndex ( Index  idx)

◆ clear()

void CeresEngine::IndexSet::clear ( )

◆ count()

size_t CeresEngine::IndexSet::count ( ) const

◆ ensureFits()

void CeresEngine::IndexSet::ensureFits ( Index  idx)

◆ getBitView() [1/2]

Bits CeresEngine::IndexSet::getBitView ( )

◆ getBitView() [2/2]

ConstBits CeresEngine::IndexSet::getBitView ( ) const

◆ hasIndex()

bool CeresEngine::IndexSet::hasIndex ( Index  idx) const

◆ indices()

auto CeresEngine::IndexSet::indices ( ) const
inline

◆ intersect()

void CeresEngine::IndexSet::intersect ( const IndexSet other)

◆ isEmpty()

bool CeresEngine::IndexSet::isEmpty ( ) const

◆ operator!=()

bool CeresEngine::IndexSet::operator!= ( const IndexSet ) const

◆ operator==()

bool CeresEngine::IndexSet::operator== ( const IndexSet ) const

◆ remove()

void CeresEngine::IndexSet::remove ( const IndexSet other)

◆ removeIndex()

void CeresEngine::IndexSet::removeIndex ( Index  idx)

◆ tighten()

void CeresEngine::IndexSet::tighten ( )
private

◆ upperBound()

size_t CeresEngine::IndexSet::upperBound ( ) const

Member Data Documentation

◆ mData

Data CeresEngine::IndexSet::mData
private

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