teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | List of all members
teditor::DoubleBuffer< Type > Struct Template Reference

A simple double buffer container for ping-pong kind of operations. More...

#include <double_buffer.hpp>

Public Member Functions

 DoubleBuffer ()
 
Type & current ()
 
const Type & current () const
 
Type & next ()
 
const Type & next () const
 
void update ()
 

Detailed Description

template<typename Type>
struct teditor::DoubleBuffer< Type >

A simple double buffer container for ping-pong kind of operations.

Template Parameters
Typeunderlying data-type

Constructor & Destructor Documentation

◆ DoubleBuffer()

template<typename Type >
teditor::DoubleBuffer< Type >::DoubleBuffer ( )
inline

Member Function Documentation

◆ current() [1/2]

template<typename Type >
Type& teditor::DoubleBuffer< Type >::current ( )
inline

◆ current() [2/2]

template<typename Type >
const Type& teditor::DoubleBuffer< Type >::current ( ) const
inline

◆ next() [1/2]

template<typename Type >
Type& teditor::DoubleBuffer< Type >::next ( )
inline

◆ next() [2/2]

template<typename Type >
const Type& teditor::DoubleBuffer< Type >::next ( ) const
inline

◆ update()

template<typename Type >
void teditor::DoubleBuffer< Type >::update ( )
inline

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