FE 0.16.1
Fast, Effecient 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>

Inheritance diagram for fe::Ring< T, 1 >:
[legend]

Public Member Functions

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

Friends

void swap (Ring &r1, Ring &r2)

Detailed Description

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

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

Definition at line 67 of file ring.h.

Constructor & Destructor Documentation

◆ Ring() [1/2]

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

Definition at line 71 of file ring.h.

Referenced by swap.

◆ Ring() [2/2]

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

Member Function Documentation

◆ front() [1/2]

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

Definition at line 78 of file ring.h.

◆ front() [2/2]

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

Definition at line 79 of file ring.h.

◆ operator[]() [1/2]

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

Definition at line 80 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 84 of file ring.h.

References assert_unused.

◆ put()

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

Definition at line 93 of file ring.h.

◆ reset()

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

Definition at line 92 of file ring.h.

◆ swap

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

Definition at line 100 of file ring.h.

References Ring(), and swap.

Referenced by swap.


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