Skip to main content

var::Ring

Types

Buffer#

using var::Ring< T, item_count >::Buffer =  Array<T, item_count> 

Type: Array< T, item_count >

Functions

Ring()=default#

var::Ring< T, item_count >::Ring ()=default

~Ring()#

inline

var::Ring< T, item_count >::~Ring ()

at(size_t position)#

inline

T & var::Ring< T, item_count >::at (size_t position)

Type: T &

Parameters:

  • size_t position

at(size_t position) const#

inline

const T & var::Ring< T, item_count >::at (size_t position) const

Type: const T &

Parameters:

  • size_t position

back()#

inline

T & var::Ring< T, item_count >::back ()

Type: T &

back() const#

inline

const T & var::Ring< T, item_count >::back () const

Type: const T &

count_ready() const#

inline

u32 var::Ring< T, item_count >::count_ready () const

Type: u32

front()#

inline

T & var::Ring< T, item_count >::front ()

Type: T &

front() const#

inline

const T & var::Ring< T, item_count >::front () const

Type: const T &

is_empty() const#

inline

bool var::Ring< T, item_count >::is_empty () const

Type: bool

is_full() const#

inline

bool var::Ring< T, item_count >::is_full () const

Type: bool

pop()#

inline

Ring & var::Ring< T, item_count >::pop ()

Type: Ring &

push(const T &value)#

inline

Ring & var::Ring< T, item_count >::push (const T &value)

Type: Ring &

Parameters:

  • const T & value

rotate_backward()#

inline

Ring & var::Ring< T, item_count >::rotate_backward ()

Type: Ring &

rotate_forward()#

inline

Ring & var::Ring< T, item_count >::rotate_forward ()

Type: Ring &

set_overflow_allowed(bool value=true)#

inline

Ring & var::Ring< T, item_count >::set_overflow_allowed (bool value=true)

Type: Ring &

Parameters:

  • bool value

to_linear_data() const#

inline

Array< T, item_count > var::Ring< T, item_count >::to_linear_data () const

Type: Array< T, item_count >