MCPcopy Create free account
hub / github.com/davisking/dlib / push_front

Method push_front

dlib/sliding_buffer/circular_buffer.h:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 unsigned long size() const { return data.size(); }
89
90 void push_front(const T& value)
91 {
92 if (data.size() != 0)
93 {
94 offset = (offset - 1 + data.size())%data.size();
95 data[offset] = value;
96 }
97 }
98
99 void push_back(const T& value)
100 {

Callers 6

test_circular_bufferFunction · 0.80
internals.hFile · 0.80
updateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 2

test_circular_bufferFunction · 0.64