Core/Bitset: Fixed Test methods being not const
Former-commit-id: 440c03a78b4dcf8ec1566c1db30989c0145b5a78
This commit is contained in:
parent
47c5d1072b
commit
8b5deffe35
|
|
@ -63,9 +63,9 @@ class NzBitset
|
||||||
void Swap(NzBitset& bitset);
|
void Swap(NzBitset& bitset);
|
||||||
|
|
||||||
bool Test(unsigned int bit) const;
|
bool Test(unsigned int bit) const;
|
||||||
bool TestAll();
|
bool TestAll() const;
|
||||||
bool TestAny();
|
bool TestAny() const;
|
||||||
bool TestNone();
|
bool TestNone() const;
|
||||||
|
|
||||||
template<typename T> T To() const;
|
template<typename T> T To() const;
|
||||||
NzString ToString() const;
|
NzString ToString() const;
|
||||||
|
|
|
||||||
|
|
@ -309,7 +309,7 @@ bool NzBitset<Block, Allocator>::Test(unsigned int bit) const
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
bool NzBitset<Block, Allocator>::TestAll()
|
bool NzBitset<Block, Allocator>::TestAll() const
|
||||||
{
|
{
|
||||||
// Cas particulier du dernier bloc
|
// Cas particulier du dernier bloc
|
||||||
Block lastBlockMask = GetLastBlockMask();
|
Block lastBlockMask = GetLastBlockMask();
|
||||||
|
|
@ -325,7 +325,7 @@ bool NzBitset<Block, Allocator>::TestAll()
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
bool NzBitset<Block, Allocator>::TestAny()
|
bool NzBitset<Block, Allocator>::TestAny() const
|
||||||
{
|
{
|
||||||
if (m_blocks.empty())
|
if (m_blocks.empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -340,7 +340,7 @@ bool NzBitset<Block, Allocator>::TestAny()
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
bool NzBitset<Block, Allocator>::TestNone()
|
bool NzBitset<Block, Allocator>::TestNone() const
|
||||||
{
|
{
|
||||||
return !TestAny();
|
return !TestAny();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue