| 145 | private: |
| 146 | template<typename Func> |
| 147 | void DoOp(const Var& other, Func func) |
| 148 | { |
| 149 | if (other.IsBool()) |
| 150 | { |
| 151 | func(m_Vals.b, other.m_Vals.b); |
| 152 | } |
| 153 | else if (other.IsInt()) |
| 154 | { |
| 155 | func(m_Vals.i, other.m_Vals.i); |
| 156 | } |
| 157 | else if (other.IsUnsignedInt()) |
| 158 | { |
| 159 | func(m_Vals.u, other.m_Vals.u); |
| 160 | } |
| 161 | else if (other.IsFloat()) |
| 162 | { |
| 163 | func(m_Vals.f, other.m_Vals.f); |
| 164 | } |
| 165 | else if (other.IsString()) |
| 166 | { |
| 167 | func(m_Vals.s, other.m_Vals.s); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | template<typename Destructable> |
| 172 | void Destruct(Destructable& d) |
nothing calls this directly
no test coverage detected