FE 0.5.0
A header-only C++ library for writing frontends
Loading...
Searching...
No Matches
fe::Ring< T, 1 > Class Template Reference

Specialization if N == 1 - doesn't need a ring. More...

#include <fe/ring.h>

Public Member Functions

Construction
 Ring (std::initializer_list< T > list)
 
 Ring ()=default
 
 Ring (const Ring &)=default
 
 Ring (Ring &&other)
 
Ringoperator= (Ring other) noexcept
 
Access
T & front ()
 
const T & front () const
 
T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 
Modifiers
void reset ()
 
put (T item)
 

Friends

void swap (Ring &r1, Ring &r2) noexcept
 

Detailed Description

template<class T>
class fe::Ring< T, 1 >

Specialization if N == 1 - doesn't need a ring.

Definition at line 68 of file ring.h.

Constructor & Destructor Documentation

◆ Ring() [1/4]

template<class T >
fe::Ring< T, 1 >::Ring ( std::initializer_list< T >  list)
inline

Definition at line 72 of file ring.h.

◆ Ring() [2/4]

template<class T >
fe::Ring< T, 1 >::Ring ( )
default

◆ Ring() [3/4]

template<class T >
fe::Ring< T, 1 >::Ring ( const Ring< T, 1 > &  )
default

◆ Ring() [4/4]

template<class T >
fe::Ring< T, 1 >::Ring ( Ring< T, 1 > &&  other)
inline

Definition at line 76 of file ring.h.

References fe::Ring< T, N >::swap.

Member Function Documentation

◆ front() [1/2]

template<class T >
T & fe::Ring< T, 1 >::front ( )
inline

Definition at line 85 of file ring.h.

◆ front() [2/2]

template<class T >
const T & fe::Ring< T, 1 >::front ( ) const
inline

Definition at line 86 of file ring.h.

◆ operator=()

template<class T >
Ring & fe::Ring< T, 1 >::operator= ( Ring< T, 1 >  other)
inlinenoexcept

Definition at line 80 of file ring.h.

References fe::Ring< T, N >::swap.

◆ operator[]() [1/2]

template<class T >
T & fe::Ring< T, 1 >::operator[] ( size_t  i)
inline

Definition at line 87 of file ring.h.

References assert_unused.

◆ operator[]() [2/2]

template<class T >
const T & fe::Ring< T, 1 >::operator[] ( size_t  i) const
inline

Definition at line 91 of file ring.h.

References assert_unused.

◆ put()

template<class T >
T fe::Ring< T, 1 >::put ( item)
inline

Definition at line 100 of file ring.h.

◆ reset()

template<class T >
void fe::Ring< T, 1 >::reset ( )
inline

Definition at line 99 of file ring.h.

Friends And Related Symbol Documentation

◆ swap

template<class T >
void swap ( Ring< T, 1 > &  r1,
Ring< T, 1 > &  r2 
)
friend

Definition at line 107 of file ring.h.


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