5#include <Common/assertion.h>
26 void add(std::string type, std::string name, std::string value);
30 void add(std::string type, std::string name, std::string value, std::string tag);
38 void consume(std::size_t index);
50 std::size_t
size()
const;
59 std::vector<SdlInputClause> m_clauses;
66 m_clauses.push_back(std::move(clause));
76 add(
SdlInputClause(std::move(type), std::move(name), std::move(value), std::move(tag)));
81 for(std::size_t ci = 0; ci < clauses.
size(); ++ci)
89 PH_ASSERT_LT(index, m_clauses.size());
91 m_clauses.erase(m_clauses.begin() + index);
96 PH_ASSERT(!m_clauses.empty());
97 PH_ASSERT_LT(index, m_clauses.size());
101 swap(m_clauses[index], m_clauses.back());
102 m_clauses.pop_back();
112 return m_clauses.size();
117 return std::to_string(m_clauses.size()) +
" value clauses";
122 PH_ASSERT_LT(index, m_clauses.size());
123 return m_clauses[index];
The root for all renderer implementations.
Definition EEngineProject.h:6