OCCT3D About OCCT
Open CASCADE Technology Reference Manual 8.0.1
Loading...
Searching...
No Matches
Public Member Functions
BRepGraph_Cache::NodeEntry Class Reference

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

#include <BRepGraph_Cache.hxx>

Inheritance diagram for BRepGraph_Cache::NodeEntry:
Inheritance graph
[legend]

Public Member Functions

void Reset () noexcept
 Reset to an unbound stale state.
 
bool BindOwnGen (const BRepGraph_Cache &theCache, const BRepGraph_NodeId theNode) noexcept
 Bind this entry to the current OwnGen of a node.
 
bool BindSubtreeGen (const BRepGraph_Cache &theCache, const BRepGraph_NodeId theNode) noexcept
 Bind this entry to the current SubtreeGen of a node.
 
bool IsFreshOwn (const BRepGraph_Cache &theCache, const BRepGraph_NodeId theNode) const noexcept
 Validate against the current OwnGen of the same node.
 
bool IsFreshSubtree (const BRepGraph_Cache &theCache, const BRepGraph_NodeId theNode) const noexcept
 Validate against the current SubtreeGen of the same node.
 
bool IsFresh (const BRepGraph_Cache &theCache) const noexcept
 Validate against the generation kind captured at bind time.
 
bool IsBound () const noexcept
 True if the entry was successfully bound to a node generation.
 
BRepGraph_NodeId Node () const noexcept
 Node identity captured at bind time.
 

Detailed Description

Value base for node-derived cache entries.

Concrete cache services inherit this from their private entry structs and store entries by value in their own typed storage. The base records the node identity plus the generation counter used to validate freshness.

Member Function Documentation

◆ BindOwnGen()

bool BRepGraph_Cache::NodeEntry::BindOwnGen ( const BRepGraph_Cache & theCache,
const BRepGraph_NodeId theNode )
noexcept

Bind this entry to the current OwnGen of a node.

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

◆ BindSubtreeGen()

bool BRepGraph_Cache::NodeEntry::BindSubtreeGen ( const BRepGraph_Cache & theCache,
const BRepGraph_NodeId theNode )
noexcept

Bind this entry to the current SubtreeGen of a node.

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

◆ IsBound()

bool BRepGraph_Cache::NodeEntry::IsBound ( ) const
inlinenoexcept

True if the entry was successfully bound to a node generation.

◆ IsFresh()

bool BRepGraph_Cache::NodeEntry::IsFresh ( const BRepGraph_Cache & theCache) const
noexcept

Validate against the generation kind captured at bind time.

◆ IsFreshOwn()

bool BRepGraph_Cache::NodeEntry::IsFreshOwn ( const BRepGraph_Cache & theCache,
const BRepGraph_NodeId theNode ) const
noexcept

Validate against the current OwnGen of the same node.

◆ IsFreshSubtree()

bool BRepGraph_Cache::NodeEntry::IsFreshSubtree ( const BRepGraph_Cache & theCache,
const BRepGraph_NodeId theNode ) const
noexcept

Validate against the current SubtreeGen of the same node.

◆ Node()

BRepGraph_NodeId BRepGraph_Cache::NodeEntry::Node ( ) const
inlinenoexcept

Node identity captured at bind time.

◆ Reset()

void BRepGraph_Cache::NodeEntry::Reset ( )
noexcept

Reset to an unbound stale state.


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