Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PhysxGroupsMask Class Reference

128-bit bitmask class. More...

#include "physxGroupsMask.h"

Public Member Functions

 PhysxGroupsMask (NxGroupsMask mask)
 
void clear_bit (unsigned int idx)
 Sets the nth bit off. More...
 
bool get_bit (unsigned int idx) const
 Returns true if the nth bit is set, false if it is cleared. More...
 
unsigned int get_bits0 () const
 
unsigned int get_bits1 () const
 
unsigned int get_bits2 () const
 
unsigned int get_bits3 () const
 
NxGroupsMask get_mask () const
 
void output (std::ostream &out) const
 Writes the PhysxGroupsMask out as a list of ones and zeros. More...
 
void set_bit (unsigned int idx)
 Sets the nth bit on. More...
 
void set_bits0 (unsigned int bits)
 
void set_bits1 (unsigned int bits)
 
void set_bits2 (unsigned int bits)
 
void set_bits3 (unsigned int bits)
 
void set_mask (NxGroupsMask mask)
 

Static Public Member Functions

static PhysxGroupsMask all_off ()
 Returns a PhysxGroupsMask whose bits are all off. More...
 
static PhysxGroupsMask all_on ()
 Returns a PhysxGroupsMask whose bits are all on. More...
 

Public Attributes

NxGroupsMask _mask
 

Detailed Description

128-bit bitmask class.

Definition at line 24 of file physxGroupsMask.h.

Member Function Documentation

◆ all_off()

PhysxGroupsMask PhysxGroupsMask::all_off ( )
static

Returns a PhysxGroupsMask whose bits are all off.

Definition at line 36 of file physxGroupsMask.cxx.

◆ all_on()

PhysxGroupsMask PhysxGroupsMask::all_on ( )
static

Returns a PhysxGroupsMask whose bits are all on.

Definition at line 22 of file physxGroupsMask.cxx.

◆ clear_bit()

void PhysxGroupsMask::clear_bit ( unsigned int  idx)

Sets the nth bit off.

Index must be in the range [0, 127].

Definition at line 76 of file physxGroupsMask.cxx.

◆ get_bit()

bool PhysxGroupsMask::get_bit ( unsigned int  idx) const

Returns true if the nth bit is set, false if it is cleared.

Index must be in the range [0, 127].

Definition at line 101 of file physxGroupsMask.cxx.

◆ output()

void PhysxGroupsMask::output ( std::ostream &  out) const

Writes the PhysxGroupsMask out as a list of ones and zeros.

Definition at line 125 of file physxGroupsMask.cxx.

◆ set_bit()

void PhysxGroupsMask::set_bit ( unsigned int  idx)

Sets the nth bit on.

Index must be in the range [0, 127].

Definition at line 52 of file physxGroupsMask.cxx.


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