Home
last modified time | relevance | path

Searched refs:m_container (Results 1 – 3 of 3) sorted by relevance

/third_party/boost/libs/circular_buffer/test/
Dbounded_buffer_comparison.cpp34 explicit bounded_buffer(size_type capacity) : m_unread(0), m_container(capacity) {} in bounded_buffer()
39 m_container.push_front(item); in push_front()
48 *pItem = m_container[--m_unread]; in pop_back()
58 bool is_not_full() const { return m_unread < m_container.capacity(); } in is_not_full()
61 container_type m_container; member in bounded_buffer
76 explicit bounded_buffer_space_optimized(size_type capacity) : m_container(capacity) {} in bounded_buffer_space_optimized()
81 m_container.push_front(item); in push_front()
89 *pItem = m_container.back(); in pop_back()
90 m_container.pop_back(); in pop_back()
100 bool is_not_empty() const { return m_container.size() > 0; } in is_not_empty()
[all …]
/third_party/boost/libs/circular_buffer/example/
Dbounded_buffer_comparison.cpp34 explicit bounded_buffer(size_type capacity) : m_unread(0), m_container(capacity) {} in bounded_buffer()
39 m_container.push_front(item); in push_front()
48 *pItem = m_container[--m_unread]; in pop_back()
58 bool is_not_full() const { return m_unread < m_container.capacity(); } in is_not_full()
61 container_type m_container; member in bounded_buffer
76 explicit bounded_buffer_space_optimized(size_type capacity) : m_container(capacity) {} in bounded_buffer_space_optimized()
81 m_container.push_front(item); in push_front()
89 *pItem = m_container.back(); in pop_back()
90 m_container.pop_back(); in pop_back()
100 bool is_not_empty() const { return m_container.size() > 0; } in is_not_empty()
[all …]
Dcircular_buffer_bound_example.cpp34 explicit bounded_buffer(size_type capacity) : m_unread(0), m_container(capacity) {} in bounded_buffer()
41 m_container.push_front(item); in push_front()
50 *pItem = m_container[--m_unread]; in pop_back()
60 bool is_not_full() const { return m_unread < m_container.capacity(); } in is_not_full()
63 container_type m_container; member in bounded_buffer
88 Buffer* m_container; member in Producer
91 Producer(Buffer* buffer) : m_container(buffer) in Producer()
98 m_container->push_front(value_type()); in operator ()()
108 Buffer* m_container; member in Consumer
112 Consumer(Buffer* buffer) : m_container(buffer) in Consumer()
[all …]