mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Reformatted code for Pull Request #71
Tabs were used instead of spaces. Also added comments.
This commit is contained in:
parent
df01dd88fe
commit
88cc4129af
1 changed files with 12 additions and 10 deletions
|
|
@ -57,13 +57,12 @@ 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);
|
/// Copy constructor
|
||||||
|
BitVector( const BitVector &r);
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
~BitVector();
|
~BitVector();
|
||||||
|
|
||||||
BitVector& operator=( const BitVector &r);
|
|
||||||
|
|
||||||
/// @name Size Management
|
/// @name Size Management
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
@ -90,6 +89,9 @@ class BitVector
|
||||||
/// Copy the content of another bit vector.
|
/// Copy the content of another bit vector.
|
||||||
void copy( const BitVector &from );
|
void copy( const BitVector &from );
|
||||||
|
|
||||||
|
/// Copy the contents of another bit vector
|
||||||
|
BitVector& operator=( const BitVector &r);
|
||||||
|
|
||||||
/// @name Mutators
|
/// @name Mutators
|
||||||
/// Note that bits are specified by index, unlike BitSet32.
|
/// Note that bits are specified by index, unlike BitSet32.
|
||||||
/// @{
|
/// @{
|
||||||
|
|
@ -156,13 +158,7 @@ inline BitVector::BitVector( U32 sizeInBits )
|
||||||
|
|
||||||
inline BitVector::BitVector( const BitVector &r )
|
inline BitVector::BitVector( const BitVector &r )
|
||||||
{
|
{
|
||||||
copy(r);
|
copy(r);
|
||||||
}
|
|
||||||
|
|
||||||
inline BitVector& BitVector::operator=( const BitVector &r)
|
|
||||||
{
|
|
||||||
copy(r);
|
|
||||||
return *this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BitVector::~BitVector()
|
inline BitVector::~BitVector()
|
||||||
|
|
@ -197,6 +193,12 @@ inline void BitVector::copy( const BitVector &from )
|
||||||
dMemcpy( mBits, from.getBits(), getByteSize() );
|
dMemcpy( mBits, from.getBits(), getByteSize() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline BitVector& BitVector::operator=( const BitVector &r)
|
||||||
|
{
|
||||||
|
copy(r);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
inline void BitVector::set()
|
inline void BitVector::set()
|
||||||
{
|
{
|
||||||
if (mSize != 0)
|
if (mSize != 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue