ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::ChainNode< Node, Owner > Class Template Reference

Base for a node of a ChainLink chain: holds the link and finds the chain's owner. More...

#include <chain.h>

Protected Member Functions

Node * chain_last_ ()
 Only for a chain that ends in its owner, never in nullptr.
 
Owner * chain_owner_ ()
 Walks to the end of the chain on every call.
 

Protected Attributes

ChainLink< Node, Owner > link_
 The next node, or the owner on the last node.
 

Detailed Description

template<typename Node, typename Owner>
class esphome::ChainNode< Node, Owner >

Base for a node of a ChainLink chain: holds the link and finds the chain's owner.

Definition at line 54 of file chain.h.

Member Function Documentation

◆ chain_last_()

template<typename Node , typename Owner >
Node * esphome::ChainNode< Node, Owner >::chain_last_ ( )
inlineprotected

Only for a chain that ends in its owner, never in nullptr.

Definition at line 61 of file chain.h.

◆ chain_owner_()

template<typename Node , typename Owner >
Owner * esphome::ChainNode< Node, Owner >::chain_owner_ ( )
inlineprotected

Walks to the end of the chain on every call.

Definition at line 68 of file chain.h.

Field Documentation

◆ link_

template<typename Node , typename Owner >
ChainLink<Node, Owner> esphome::ChainNode< Node, Owner >::link_
protected

The next node, or the owner on the last node.

Definition at line 71 of file chain.h.


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