Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph_Cache::ItemEntry Class Reference

Value base for item-derived cache entries. More...

#include <BRepGraph_Cache.hxx>

Public Member Functions

void Reset () noexcept
 Reset to an unbound stale state.
bool BindOwnGen (const BRepGraph_Cache &theCache, const BRepGraph_ItemId theItem) noexcept
 Bind this entry to the current OwnGen of a graph item.
bool IsFreshOwn (const BRepGraph_Cache &theCache, const BRepGraph_ItemId theItem) const noexcept
 Validate against the current OwnGen of the same item.
bool IsFresh (const BRepGraph_Cache &theCache) const noexcept
 Validate against the item captured at bind time.
bool IsBound () const noexcept
 True if the entry was successfully bound to an item generation.
BRepGraph_ItemId Item () const noexcept
 Item identity captured at bind time.

Detailed Description

Value base for item-derived cache entries.

Member Function Documentation

◆ BindOwnGen()

bool BRepGraph_Cache::ItemEntry::BindOwnGen ( const BRepGraph_Cache & theCache,
const BRepGraph_ItemId theItem )
nodiscardnoexcept

Bind this entry to the current OwnGen of a graph item.

Returns
false when the cache is detached or the item is inactive

◆ IsBound()

bool BRepGraph_Cache::ItemEntry::IsBound ( ) const
inlinenodiscardnoexcept

True if the entry was successfully bound to an item generation.

◆ IsFresh()

bool BRepGraph_Cache::ItemEntry::IsFresh ( const BRepGraph_Cache & theCache) const
nodiscardnoexcept

Validate against the item captured at bind time.

◆ IsFreshOwn()

bool BRepGraph_Cache::ItemEntry::IsFreshOwn ( const BRepGraph_Cache & theCache,
const BRepGraph_ItemId theItem ) const
nodiscardnoexcept

Validate against the current OwnGen of the same item.

◆ Item()

BRepGraph_ItemId BRepGraph_Cache::ItemEntry::Item ( ) const
inlinenodiscardnoexcept

Item identity captured at bind time.

◆ Reset()

void BRepGraph_Cache::ItemEntry::Reset ( )
noexcept

Reset to an unbound stale state.


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