ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
pc_atomic< T > Struct Template Reference

#include <ring.h>

Public Member Functions

 pc_atomic () noexcept
 
 pc_atomic (T x) noexcept
 
 pc_atomic (const pc_atomic &o) noexcept
 
pc_atomicoperator= (const pc_atomic &o) noexcept
 
pc_atomicoperator= (T x) noexcept
 
 operator T () const noexcept
 

Public Attributes

std::atomic< T > v
 

Detailed Description

template<typename T>
struct pc_atomic< T >

Definition at line 41 of file ring.h.

Constructor & Destructor Documentation

◆ pc_atomic() [1/3]

template<typename T >
pc_atomic< T >::pc_atomic ( )
inlinenoexcept

Definition at line 44 of file ring.h.

◆ pc_atomic() [2/3]

template<typename T >
pc_atomic< T >::pc_atomic ( x)
inlinenoexcept

Definition at line 47 of file ring.h.

◆ pc_atomic() [3/3]

template<typename T >
pc_atomic< T >::pc_atomic ( const pc_atomic< T > &  o)
inlinenoexcept

Definition at line 50 of file ring.h.

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
pc_atomic & pc_atomic< T >::operator= ( const pc_atomic< T > &  o)
inlinenoexcept

Definition at line 53 of file ring.h.

References pc_atomic< T >::v.

◆ operator=() [2/2]

template<typename T >
pc_atomic & pc_atomic< T >::operator= ( x)
inlinenoexcept

Definition at line 58 of file ring.h.

References pc_atomic< T >::v.

◆ operator T()

template<typename T >
pc_atomic< T >::operator T ( ) const
inlinenoexcept

Definition at line 65 of file ring.h.

Member Data Documentation

◆ v

template<typename T >
std::atomic<T> pc_atomic< T >::v

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