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

Method Pop

libs/drape/symbols_texture.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 bool Push(char const * /*element*/) { return true; }
45
46 void Pop(std::string_view element)
47 {
48 if (element == "symbol")
49 {
50 ASSERT(!m_name.empty(), ());
51 ASSERT(m_rect.IsValid(), ());
52 ASSERT(m_definitionInserter != nullptr, ());
53 m_definitionInserter(m_name, m_rect);
54
55 m_name = "";
56 m_rect.MakeEmpty();
57 }
58 }
59
60 void AddAttr(std::string_view attribute, char const * value)
61 {

Callers

nothing calls this directly

Calls 4

ASSERTFunction · 0.85
MakeEmptyMethod · 0.80
emptyMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected