HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Usd_PrimFlagsDisjunction Class Reference

#include <primFlags.h>

+ Inheritance diagram for Usd_PrimFlagsDisjunction:

Public Member Functions

 Usd_PrimFlagsDisjunction ()
 
 Usd_PrimFlagsDisjunction (Usd_Term term)
 
Usd_PrimFlagsDisjunctionoperator|= (Usd_Term term)
 Add an additional term to this disjunction. More...
 
USD_API class
Usd_PrimFlagsConjunction 
operator! () const
 
- Public Member Functions inherited from Usd_PrimFlagsPredicate
 Usd_PrimFlagsPredicate ()
 
 Usd_PrimFlagsPredicate (Usd_PrimFlags flag)
 
 Usd_PrimFlagsPredicate (Usd_Term term)
 
Usd_PrimFlagsPredicateTraverseInstanceProxies (bool traverse)
 
bool IncludeInstanceProxiesInTraversal () const
 
USD_API bool operator() (const class UsdPrim &prim) const
 

Friends

class Usd_PrimFlagsConjunction
 
Usd_PrimFlagsDisjunction operator|| (Usd_Term lhs, Usd_Term rhs)
 Combine two terms to make a disjunction. More...
 
Usd_PrimFlagsDisjunction operator|| (const Usd_PrimFlagsDisjunction &disjunction, Usd_Term rhs)
 Create a new disjunction with the term rhs added. More...
 
Usd_PrimFlagsDisjunction operator|| (Usd_Term lhs, const Usd_PrimFlagsDisjunction &disjunction)
 Create a new disjunction with the term lhs added. More...
 

Additional Inherited Members

- Public Types inherited from Usd_PrimFlagsPredicate
typedef bool result_type
 
- Static Public Member Functions inherited from Usd_PrimFlagsPredicate
static Usd_PrimFlagsPredicate Tautology ()
 
static Usd_PrimFlagsPredicate Contradiction ()
 
- Protected Member Functions inherited from Usd_PrimFlagsPredicate
bool _IsTautology () const
 
void _MakeTautology ()
 
bool _IsContradiction () const
 
void _MakeContradiction ()
 
Usd_PrimFlagsPredicate_Negate ()
 
Usd_PrimFlagsPredicate _GetNegated () const
 
- Protected Attributes inherited from Usd_PrimFlagsPredicate
Usd_PrimFlagBits _mask
 
Usd_PrimFlagBits _values
 

Detailed Description

Disjunction of prim flag predicate terms.

Usually clients will implicitly create disjunctions by ||-ing together flag predicate terms. For example:

// Get all deactivated or undefined children.
prim.GetFilteredChildren(!UsdPrimIsActive || !UsdPrimIsDefined)

See primFlags.h for more details.

Definition at line 403 of file primFlags.h.

Constructor & Destructor Documentation

Usd_PrimFlagsDisjunction::Usd_PrimFlagsDisjunction ( )
inline

Definition at line 406 of file primFlags.h.

Usd_PrimFlagsDisjunction::Usd_PrimFlagsDisjunction ( Usd_Term  term)
inlineexplicit

Definition at line 409 of file primFlags.h.

Member Function Documentation

USD_API class Usd_PrimFlagsConjunction Usd_PrimFlagsDisjunction::operator! ( ) const

Negate this disjunction, producing a disjunction by De Morgan's law. For instance:

!(UsdPrimIsLoaded || UsdPrimIsModel)

Will negate the disjunction in parens to produce a conjunction equivalent to:

(!UsdPrimIsLoaded && !UsdPrimIsModel)

Every expression may be formulated as either a disjunction or a conjuction, but allowing both affords increased expressiveness.

Usd_PrimFlagsDisjunction& Usd_PrimFlagsDisjunction::operator|= ( Usd_Term  term)
inline

Add an additional term to this disjunction.

Definition at line 415 of file primFlags.h.

Friends And Related Function Documentation

Usd_PrimFlagsDisjunction operator|| ( Usd_Term  lhs,
Usd_Term  rhs 
)
friend

Combine two terms to make a disjunction.

Definition at line 473 of file primFlags.h.

Usd_PrimFlagsDisjunction operator|| ( const Usd_PrimFlagsDisjunction disjunction,
Usd_Term  rhs 
)
friend

Create a new disjunction with the term rhs added.

Definition at line 478 of file primFlags.h.

Usd_PrimFlagsDisjunction operator|| ( Usd_Term  lhs,
const Usd_PrimFlagsDisjunction disjunction 
)
friend

Create a new disjunction with the term lhs added.

Definition at line 483 of file primFlags.h.

Definition at line 456 of file primFlags.h.


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