HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_LabeledCapacity.h File Reference
#include <type_traits>
+ Include dependency graph for UT_LabeledCapacity.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT_LabeledCapacity
 

Typedefs

using UT_LabeledCapacityRep = std::make_unsigned_t< exint >
 

Functions

constexpr UT_LabeledCapacity ownedLabeledCapacity (const exint capacity) noexcept
 
constexpr UT_LabeledCapacity externalLabeledCapacity (const exint capacity) noexcept
 
constexpr exint capacityValue (const UT_LabeledCapacity &a) noexcept
 

Variables

constexpr UT_LabeledCapacityRep LABELED_CAPACITY_FLAG_EXTERNAL = UT_LabeledCapacityRep( 1 ) << ( ( sizeof( UT_LabeledCapacityRep ) * 8 ) - 1 )
 
constexpr UT_LabeledCapacityRep LABELED_CAPACITY_MASK_VALUE = LABELED_CAPACITY_FLAG_EXTERNAL - 1
 

Typedef Documentation

using UT_LabeledCapacityRep = std::make_unsigned_t< exint >

Definition at line 23 of file UT_LabeledCapacity.h.

Function Documentation

constexpr exint capacityValue ( const UT_LabeledCapacity a)
noexcept

Definition at line 63 of file UT_LabeledCapacity.h.

constexpr UT_LabeledCapacity externalLabeledCapacity ( const exint  capacity)
noexcept

Definition at line 54 of file UT_LabeledCapacity.h.

constexpr UT_LabeledCapacity ownedLabeledCapacity ( const exint  capacity)
noexcept

Definition at line 45 of file UT_LabeledCapacity.h.

Variable Documentation

constexpr UT_LabeledCapacityRep LABELED_CAPACITY_FLAG_EXTERNAL = UT_LabeledCapacityRep( 1 ) << ( ( sizeof( UT_LabeledCapacityRep ) * 8 ) - 1 )

Definition at line 25 of file UT_LabeledCapacity.h.

constexpr UT_LabeledCapacityRep LABELED_CAPACITY_MASK_VALUE = LABELED_CAPACITY_FLAG_EXTERNAL - 1

Definition at line 26 of file UT_LabeledCapacity.h.