User Tools

Site Tools


dev:atomic_parameters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:atomic_parameters [2014/09/09 21:56] – [Declare Compilation Constants] ackleydev:atomic_parameters [2014/09/21 17:54] (current) – [Make Getter and Setter] tsmall1
Line 22: Line 22:
 typedef BitField<BitVector<BITS>, BYTE_BITS_LENGTH, BYTE_BITS_POSITION> AFByteBits; typedef BitField<BitVector<BITS>, BYTE_BITS_LENGTH, BYTE_BITS_POSITION> AFByteBits;
 </code> </code>
 +
 +make sure that BitField is included in the file by adding:
 +
 +<code>
 +#include "BitField.h"
 +</code>
 +
 +to the top of the file.
  
 ===== Make Getter and Setter ===== ===== Make Getter and Setter =====
Line 33: Line 41:
 } }
  
-void SetByteBits(const T& us, u32 bits) const+void SetByteBits(T& us, u32 bits) const
 { {
     AFByteBits::Write(this->GetBits(us), bits & 0xff);     AFByteBits::Write(this->GetBits(us), bits & 0xff);
dev/atomic_parameters.1410299799.txt.gz · Last modified: 2014/09/09 21:56 by ackley