FnUsdAbstractionLib 0.6.0
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
usg::Prim::FlagsSet Class Reference

#include <Prim.h>

Public Member Functions

 FlagsSet (int32_t flag, bool value=true)
 
 FlagsSet (FlagMask flags, FlagMask values)
 
 operator FlagMask () const
 
FlagMask flags () const
 
FlagMask values () const
 
bool flagEnabled (int32_t flag) const
 Is the flag bit enabled?
 
bool flagValue (int32_t flag) const
 Value for a flag bit. Value of true mean test for inclusion, otherwise exclusion.
 
FlagsSet operator&& (const FlagsSet &b) const
 
FlagsSet operator&& (FlagMask flag) const
 
FlagsSetoperator&= (const FlagsSet &b)
 
FlagsSetoperator&= (int32_t flag)
 
FlagsSetoperator+= (const FlagsSet &b)
 
FlagsSetoperator+= (int32_t flag)
 
FlagsSetoperator-= (const FlagsSet &b)
 
FlagsSetoperator-= (int32_t flag)
 
FlagsSet operator- () const
 Negation inverts the value of any enabled flags.
 
bool operator& (const FlagsSet &b) const
 
bool operator& (int32_t flag) const
 
bool operator== (const FlagsSet &b) const
 
bool operator!= (const FlagsSet &b) const
 

Protected Attributes

FlagMask _flags
 If a flag bit is on test that bit's value.
 
FlagMask _values
 Flag value state to test against.
 

Detailed Description

class FlagsSet Set of Prim flag bits used to control prim filtering and masking during traversals, retrievals, etc. If a flag bit is enabled then the corresponding value bit is used during Prim state testing where a true value bit means the flag's corresponding Prim flag state is to be tested for inclusion, and if false the Prim flag state is tested for exclusion.



©2025 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk