Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
TestChainLoad< maxFan >::Node Struct Reference

#include "/Werk/devel/lumi/tests/vault/gear/test-chain-load.hpp"

Description

template<size_t maxFan = DEFAULT_FAN>
struct vault::gear::test::TestChainLoad< maxFan >::Node

Graph Data structure.

Definition at line 255 of file test-chain-load.hpp.

Classes

struct  Tab
 Table with connections to other Node records. More...
 

Public Types

using _Arr = std::array< Node *, maxFan >
 
using Iter = _Arr::iterator
 
using CIter = _Arr::const_iterator
 

Public Attributes

size_t hash
 
size_t level {0}
 
size_t weight {0}
 
Tab pred {0}
 
Tab succ {0}
 

Public Member Functions

 Node (size_t seed=0)
 
void clear ()
 
NodeaddPred (Node *other)
 
NodeaddSucc (Node *other)
 
NodeaddPred (Node &other)
 
NodeaddSucc (Node &other)
 
size_t calculate ()
 

Friends

bool isStart (Node const &n)
 
bool isExit (Node const &n)
 
bool isInner (Node const &n)
 
bool isFork (Node const &n)
 
bool isJoin (Node const &n)
 
bool isLink (Node const &n)
 
bool isKnot (Node const &n)
 
bool isStart (Node const *n)
 
bool isExit (Node const *n)
 
bool isInner (Node const *n)
 
bool isFork (Node const *n)
 
bool isJoin (Node const *n)
 
bool isLink (Node const *n)
 
bool isKnot (Node const *n)
 

Additional Inherited Members

- Protected Member Functions inherited from MoveOnly
 ~MoveOnly ()=default
 
 MoveOnly ()=default
 
 MoveOnly (MoveOnly &&)=default
 
 MoveOnly (MoveOnly const &)=delete
 
MoveOnlyoperator= (MoveOnly &&)=delete
 
MoveOnlyoperator= (MoveOnly const &)=delete
 

Constructor & Destructor Documentation

◆ Node()

template<size_t maxFan = DEFAULT_FAN>
Node ( size_t  seed = 0)
inline

Definition at line 297 of file test-chain-load.hpp.

Member Typedef Documentation

◆ _Arr

template<size_t maxFan = DEFAULT_FAN>
using _Arr = std::array<Node*, maxFan>

Definition at line 258 of file test-chain-load.hpp.

◆ Iter

template<size_t maxFan = DEFAULT_FAN>
using Iter = _Arr::iterator

Definition at line 259 of file test-chain-load.hpp.

◆ CIter

template<size_t maxFan = DEFAULT_FAN>
using CIter = _Arr::const_iterator

Definition at line 260 of file test-chain-load.hpp.

Member Function Documentation

◆ clear()

template<size_t maxFan = DEFAULT_FAN>
void clear ( )
inline

Definition at line 302 of file test-chain-load.hpp.

References TestChainLoad< maxFan >::Node::Tab::clear(), TestChainLoad< maxFan >::Node::hash, TestChainLoad< maxFan >::Node::level, TestChainLoad< maxFan >::Node::pred, TestChainLoad< maxFan >::Node::succ, and TestChainLoad< maxFan >::Node::weight.

Referenced by TestChainLoad< maxFan >::buildTopology().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addPred() [1/2]

template<size_t maxFan = DEFAULT_FAN>
Node & addPred ( Node other)
inline

Definition at line 311 of file test-chain-load.hpp.

References TestChainLoad< maxFan >::Node::Tab::add(), TestChainLoad< maxFan >::Node::pred, and TestChainLoad< maxFan >::Node::succ.

Referenced by TestChainLoad< maxFan >::buildTopology().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSucc() [1/2]

template<size_t maxFan = DEFAULT_FAN>
Node & addSucc ( Node other)
inline

Definition at line 320 of file test-chain-load.hpp.

References TestChainLoad< maxFan >::Node::Tab::add(), TestChainLoad< maxFan >::Node::pred, and TestChainLoad< maxFan >::Node::succ.

+ Here is the call graph for this function:

◆ addPred() [2/2]

template<size_t maxFan = DEFAULT_FAN>
Node & addPred ( Node other)
inline

Definition at line 327 of file test-chain-load.hpp.

References TestChainLoad< maxFan >::Node::addPred().

Referenced by TestChainLoad< maxFan >::Node::addPred().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSucc() [2/2]

template<size_t maxFan = DEFAULT_FAN>
Node & addSucc ( Node other)
inline

Definition at line 328 of file test-chain-load.hpp.

References TestChainLoad< maxFan >::Node::addSucc().

Referenced by TestChainLoad< maxFan >::Node::addSucc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ calculate()

template<size_t maxFan = DEFAULT_FAN>
size_t calculate ( )
inline

Definition at line 331 of file test-chain-load.hpp.

References lib::hash::combine(), TestChainLoad< maxFan >::Node::hash, and TestChainLoad< maxFan >::Node::pred.

+ Here is the call graph for this function:

Member Data Documentation

◆ hash

◆ level

◆ weight

template<size_t maxFan = DEFAULT_FAN>
size_t weight {0}

◆ pred

◆ succ

template<size_t maxFan = DEFAULT_FAN>
Tab succ {0}

Friends And Related Symbol Documentation

◆ isStart [1/2]

template<size_t maxFan = DEFAULT_FAN>
bool isStart ( Node const &  n)
friend

Definition at line 338 of file test-chain-load.hpp.

◆ isExit [1/2]

template<size_t maxFan = DEFAULT_FAN>
bool isExit ( Node const &  n)
friend

Definition at line 339 of file test-chain-load.hpp.

◆ isInner [1/2]

template<size_t maxFan = DEFAULT_FAN>
bool isInner ( Node const &  n)
friend

Definition at line 340 of file test-chain-load.hpp.

◆ isFork [1/2]

template<size_t maxFan = DEFAULT_FAN>
bool isFork ( Node const &  n)
friend

Definition at line 341 of file test-chain-load.hpp.

◆ isJoin [1/2]

template<size_t maxFan = DEFAULT_FAN>
bool isJoin ( Node const &  n)
friend

Definition at line 342 of file test-chain-load.hpp.

◆ isLink [1/2]

template<size_t maxFan = DEFAULT_FAN>
bool isLink ( Node const &  n)
friend

Definition at line 343 of file test-chain-load.hpp.

◆ isKnot [1/2]

template<size_t maxFan = DEFAULT_FAN>
bool isKnot ( Node const &  n)
friend

Definition at line 344 of file test-chain-load.hpp.

◆ isStart [2/2]

template<size_t maxFan = DEFAULT_FAN>
bool isStart ( Node const *  n)
friend

Definition at line 347 of file test-chain-load.hpp.

◆ isExit [2/2]

template<size_t maxFan = DEFAULT_FAN>
bool isExit ( Node const *  n)
friend

Definition at line 348 of file test-chain-load.hpp.

◆ isInner [2/2]

template<size_t maxFan = DEFAULT_FAN>
bool isInner ( Node const *  n)
friend

Definition at line 349 of file test-chain-load.hpp.

◆ isFork [2/2]

template<size_t maxFan = DEFAULT_FAN>
bool isFork ( Node const *  n)
friend

Definition at line 350 of file test-chain-load.hpp.

◆ isJoin [2/2]

template<size_t maxFan = DEFAULT_FAN>
bool isJoin ( Node const *  n)
friend

Definition at line 351 of file test-chain-load.hpp.

◆ isLink [2/2]

template<size_t maxFan = DEFAULT_FAN>
bool isLink ( Node const *  n)
friend

Definition at line 352 of file test-chain-load.hpp.

◆ isKnot [2/2]

template<size_t maxFan = DEFAULT_FAN>
bool isKnot ( Node const *  n)
friend

Definition at line 353 of file test-chain-load.hpp.

+ Inheritance diagram for TestChainLoad< maxFan >::Node:
+ Collaboration diagram for TestChainLoad< maxFan >::Node:

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