mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge branch 'BitVector_copy_constructor' of https://github.com/Luis-Anton/Torque3D into Luis-Anton-BitVector_copy_constructor
This commit is contained in:
commit
df01dd88fe
1 changed files with 15 additions and 0 deletions
|
|
@ -57,9 +57,13 @@ class BitVector
|
||||||
/// @note The resulting vector is not cleared.
|
/// @note The resulting vector is not cleared.
|
||||||
BitVector( U32 sizeInBits );
|
BitVector( U32 sizeInBits );
|
||||||
|
|
||||||
|
BitVector( const BitVector &r);
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
~BitVector();
|
~BitVector();
|
||||||
|
|
||||||
|
BitVector& operator=( const BitVector &r);
|
||||||
|
|
||||||
/// @name Size Management
|
/// @name Size Management
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
@ -150,6 +154,17 @@ inline BitVector::BitVector( U32 sizeInBits )
|
||||||
setSize( sizeInBits );
|
setSize( sizeInBits );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline BitVector::BitVector( const BitVector &r )
|
||||||
|
{
|
||||||
|
copy(r);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline BitVector& BitVector::operator=( const BitVector &r)
|
||||||
|
{
|
||||||
|
copy(r);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
inline BitVector::~BitVector()
|
inline BitVector::~BitVector()
|
||||||
{
|
{
|
||||||
delete [] mBits;
|
delete [] mBits;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue