Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph_RepId::Typed< TheKind > Struct Template Reference

Compile-time typed wrapper around BRepGraph_RepId. More...

#include <BRepGraphInc_RepId.hxx>

Public Member Functions

 Typed ()
 Default: invalid.
 Typed (const uint32_t theIdx)
 Construct from index.
bool IsValid () const
 True if this id points to an allocated slot.
bool IsValid (const uint32_t theMaxCount) const
 True if this id is within [0, theMaxCount).
 operator BRepGraph_RepId () const
 Implicit conversion to untyped RepId.
bool IsRemoved (const BRepGraph &theGraph) const
 Return true if this use entry has been soft-removed in the given graph.
Typed & operator++ ()
 Pre-increment.
Typed operator++ (int)
 Post-increment.
bool operator== (const Typed &theOther) const
bool operator!= (const Typed &theOther) const
bool operator< (const Typed &theOther) const
bool operator<= (const Typed &theOther) const
bool operator> (const Typed &theOther) const
bool operator>= (const Typed &theOther) const

Static Public Member Functions

static Typed Start ()
 First valid id in a dense sequence.
static Typed Invalid ()
 Invalid sentinel id.

Data Fields

uint32_t Index

Static Public Attributes

static constexpr uint32_t THE_START_INDEX = 0u
static constexpr uint32_t THE_INVALID_INDEX = std::numeric_limits<uint32_t>::max()

Detailed Description

template<Kind TheKind>
struct BRepGraph_RepId::Typed< TheKind >

Compile-time typed wrapper around BRepGraph_RepId.

Constructor & Destructor Documentation

◆ Typed() [1/2]

template<Kind TheKind>
BRepGraph_RepId::Typed< TheKind >::Typed ( )
inline

Default: invalid.

◆ Typed() [2/2]

template<Kind TheKind>
BRepGraph_RepId::Typed< TheKind >::Typed ( const uint32_t theIdx)
inlineexplicit

Construct from index.

Member Function Documentation

◆ Invalid()

template<Kind TheKind>
Typed BRepGraph_RepId::Typed< TheKind >::Invalid ( )
inlinestaticnodiscard

Invalid sentinel id.

◆ IsRemoved()

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::IsRemoved ( const BRepGraph & theGraph) const
inlinenodiscard

Return true if this use entry has been soft-removed in the given graph.

◆ IsValid() [1/2]

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::IsValid ( ) const
inlinenodiscard

True if this id points to an allocated slot.

◆ IsValid() [2/2]

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::IsValid ( const uint32_t theMaxCount) const
inlinenodiscard

True if this id is within [0, theMaxCount).

◆ operator BRepGraph_RepId()

template<Kind TheKind>
BRepGraph_RepId::Typed< TheKind >::operator BRepGraph_RepId ( ) const
inline

Implicit conversion to untyped RepId.

◆ operator!=()

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::operator!= ( const Typed< TheKind > & theOther) const
inline

◆ operator++() [1/2]

template<Kind TheKind>
Typed & BRepGraph_RepId::Typed< TheKind >::operator++ ( )
inline

Pre-increment.

◆ operator++() [2/2]

template<Kind TheKind>
Typed BRepGraph_RepId::Typed< TheKind >::operator++ ( int )
inline

Post-increment.

◆ operator<()

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::operator< ( const Typed< TheKind > & theOther) const
inline

◆ operator<=()

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::operator<= ( const Typed< TheKind > & theOther) const
inline

◆ operator==()

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::operator== ( const Typed< TheKind > & theOther) const
inline

◆ operator>()

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::operator> ( const Typed< TheKind > & theOther) const
inline

◆ operator>=()

template<Kind TheKind>
bool BRepGraph_RepId::Typed< TheKind >::operator>= ( const Typed< TheKind > & theOther) const
inline

◆ Start()

template<Kind TheKind>
Typed BRepGraph_RepId::Typed< TheKind >::Start ( )
inlinestaticnodiscard

First valid id in a dense sequence.

Field Documentation

◆ Index

template<Kind TheKind>
uint32_t BRepGraph_RepId::Typed< TheKind >::Index

◆ THE_INVALID_INDEX

template<Kind TheKind>
uint32_t BRepGraph_RepId::Typed< TheKind >::THE_INVALID_INDEX = std::numeric_limits<uint32_t>::max()
staticconstexpr

◆ THE_START_INDEX

template<Kind TheKind>
uint32_t BRepGraph_RepId::Typed< TheKind >::THE_START_INDEX = 0u
staticconstexpr

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