MCPcopy Create free account
hub / github.com/comaps/comaps / AddDuration

Method AddDuration

3party/opening_hours/opening_hours.cpp:237–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void Time::AddDuration(TMinutes const duration)
238{
239 if (IsEvent())
240 {
241 m_event.AddDurationToOffset(duration);
242 }
243 else if (IsHoursMinutes())
244 {
245 m_hourMinutes.AddDuration(duration);
246 }
247 else
248 {
249 // Undefined behaviour.
250 }
251}
252
253void Time::SetEvent(TimeEvent const & event)
254{

Callers 3

FixTimeSpansFunction · 0.45
SplitExtendedHoursFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 1

AddDurationToOffsetMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36