FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
containers::Link< T_ > Class Template Reference

A wrapper for items stored in a LinkedList. More...

#include <fastarduino/linked_list.h>

Inheritance diagram for containers::Link< T_ >:
Collaboration diagram for containers::Link< T_ >:

Public Types

using T = T_
 The type of item wrapped by this class. More...
 

Friends

class LinkedList< T >
 
template<class T , class B >
struct types_traits::derives_from
 

Detailed Description

template<typename T_>
class containers::Link< T_ >

A wrapper for items stored in a LinkedList.

To use this class, you have to use the following idiom:

class MyType: public Link<MyType> {...}

A concrete example of Link use in FastArduino API can be found in events::EventHandler.

If you have an existing class which you want to directly use as a LinkedList item type, but cannot modify it, then you should use LinkWrapper instead.

Template Parameters
T_the type of item wrapped by this class
See also
LinkWrapper
LinkedList

Definition at line 167 of file linked_list.h.

Member Typedef Documentation

◆ T

template<typename T_ >
using containers::Link< T_ >::T = T_

The type of item wrapped by this class.

Definition at line 173 of file linked_list.h.

Friends And Related Function Documentation

◆ LinkedList< T >

template<typename T_ >
friend class LinkedList< T >
friend

Definition at line 179 of file linked_list.h.

◆ types_traits::derives_from

template<typename T_ >
template<class T , class B >
friend struct types_traits::derives_from
friend

Definition at line 184 of file linked_list.h.


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