Skip to content

scram::core::NodeParentManager ​

A manager of information about parents. More...

#include <pdag.h>

Inherits from boost::noncopyable

Inherited by scram::core::Node

Public Types ​

Name
using std::pair< int, GateWeakPtr >Parent <br>Parent index and ptr.
using ext::linear_map< int, GateWeakPtr, ext::MoveEraser >ParentMap <br>A map type of parent gate positive indices and weak pointers to them.

Public Functions ​

Name
const ParentMap &parents() const

Protected Functions ​

Name
~NodeParentManager() =default

Friends ​

Name
classGate <br>The main manipulator of parent information.

Detailed Description ​

cpp
class scram::core::NodeParentManager;

A manager of information about parents.

Only gates can manipulate the data.

Public Types Documentation ​

using Parent ​

cpp
using scram::core::NodeParentManager::Parent =  std::pair<int, GateWeakPtr>;

Parent index and ptr.

using ParentMap ​

cpp
using scram::core::NodeParentManager::ParentMap =  ext::linear_map<int, GateWeakPtr, ext::MoveEraser>;

A map type of parent gate positive indices and weak pointers to them.

Public Functions Documentation ​

function parents ​

cpp
inline const ParentMap & parents() const

Return: The parents of a node.

Protected Functions Documentation ​

function ~NodeParentManager ​

cpp
~NodeParentManager() =default

Friends ​

friend Gate ​

cpp
friend class Gate(
    Gate 
);

The main manipulator of parent information.


Updated on 2025-12-19 at 21:56:46 +0000