Panda3D
Loading...
Searching...
No Matches
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.
 
bool get_bit (unsigned int idx) const
 Returns true if the nth bit is set, false if it is cleared.
 
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.
 
void set_bit (unsigned int idx)
 Sets the nth bit on.
 
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.
 
static PhysxGroupsMask all_on ()
 Returns a PhysxGroupsMask whose bits are all on.
 

Public Attributes

NxGroupsMask _mask
 

Detailed Description

128-bit bitmask class.

Definition at line 24 of file physxGroupsMask.h.

Constructor & Destructor Documentation

◆ PhysxGroupsMask() [1/2]

PhysxGroupsMask::PhysxGroupsMask ( )
inline

Definition at line 17 of file physxGroupsMask.I.

◆ PhysxGroupsMask() [2/2]

PhysxGroupsMask::PhysxGroupsMask ( NxGroupsMask mask)
inline

Definition at line 29 of file physxGroupsMask.I.

◆ ~PhysxGroupsMask()

PhysxGroupsMask::~PhysxGroupsMask ( )
inline

Definition at line 38 of file physxGroupsMask.I.

Member Function Documentation

◆ all_off()

PhysxGroupsMask PhysxGroupsMask::all_off ( )
static

Returns a PhysxGroupsMask whose bits are all off.

Definition at line 35 of file physxGroupsMask.cxx.

◆ all_on()

PhysxGroupsMask PhysxGroupsMask::all_on ( )
static

Returns a PhysxGroupsMask whose bits are all on.

Definition at line 21 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 75 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 100 of file physxGroupsMask.cxx.

◆ get_bits0()

unsigned int PhysxGroupsMask::get_bits0 ( ) const
inline

Definition at line 64 of file physxGroupsMask.I.

◆ get_bits1()

unsigned int PhysxGroupsMask::get_bits1 ( ) const
inline

Definition at line 82 of file physxGroupsMask.I.

◆ get_bits2()

unsigned int PhysxGroupsMask::get_bits2 ( ) const
inline

Definition at line 100 of file physxGroupsMask.I.

◆ get_bits3()

unsigned int PhysxGroupsMask::get_bits3 ( ) const
inline

Definition at line 118 of file physxGroupsMask.I.

◆ get_mask()

NxGroupsMask PhysxGroupsMask::get_mask ( ) const
inline

Definition at line 46 of file physxGroupsMask.I.

◆ output()

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

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

Definition at line 124 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 51 of file physxGroupsMask.cxx.

◆ set_bits0()

void PhysxGroupsMask::set_bits0 ( unsigned int bits)
inline

Definition at line 73 of file physxGroupsMask.I.

◆ set_bits1()

void PhysxGroupsMask::set_bits1 ( unsigned int bits)
inline

Definition at line 91 of file physxGroupsMask.I.

◆ set_bits2()

void PhysxGroupsMask::set_bits2 ( unsigned int bits)
inline

Definition at line 109 of file physxGroupsMask.I.

◆ set_bits3()

void PhysxGroupsMask::set_bits3 ( unsigned int bits)
inline

Definition at line 127 of file physxGroupsMask.I.

◆ set_mask()

void PhysxGroupsMask::set_mask ( NxGroupsMask mask)
inline

Definition at line 55 of file physxGroupsMask.I.

Member Data Documentation

◆ _mask

NxGroupsMask PhysxGroupsMask::_mask

Definition at line 54 of file physxGroupsMask.h.


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