Public Member Functions | Private Attributes
rviz::BitAllocator Class Reference

Allocation manager for bit positions within a 32-bit word. More...

#include <bit_allocator.h>

List of all members.

Public Member Functions

uint32_t allocBit ()
 Return a uint32 with a single bit "on" (previously unused), or a 0 if all bits are already allocated.
 BitAllocator ()
 Constructor. All bits are free initially.
void freeBits (uint32_t bits)
 Free the given bits.

Private Attributes

uint32_t allocated_bits_

Detailed Description

Allocation manager for bit positions within a 32-bit word.

Definition at line 38 of file bit_allocator.h.


Constructor & Destructor Documentation

Constructor. All bits are free initially.

Definition at line 35 of file bit_allocator.cpp.


Member Function Documentation

Return a uint32 with a single bit "on" (previously unused), or a 0 if all bits are already allocated.

Definition at line 39 of file bit_allocator.cpp.

void rviz::BitAllocator::freeBits ( uint32_t  bits)

Free the given bits.

Definition at line 55 of file bit_allocator.cpp.


Member Data Documentation

Definition at line 52 of file bit_allocator.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Thu Aug 27 2015 15:02:28