MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / index

Method index

src/ifcparse/variantarray.h:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 std::size_t index(std::size_t index) const {
185 if (index >= size()) {
186 throw IfcParse::IfcException(
187 "Index " + std::to_string(index) + " is out of range for variant of size " + std::to_string(size())
188 );
189 }
190 return size_and_indices_[index + 1];
191 }
192
193 template<typename T>
194 T& get(std::size_t index) {

Callers 15

serializeFunction · 0.80
finalizeMethod · 0.80
get_position_in_listMethod · 0.80
__call__Method · 0.80
get_day_namesMethod · 0.80
b64Function · 0.80
test_inverse_indicesFunction · 0.80
mainFunction · 0.80
contextMenuEventMethod · 0.80
reorder_nestingFunction · 0.80

Calls 2

to_stringFunction · 0.85
sizeFunction · 0.70

Tested by 3

b64Function · 0.64
test_inverse_indicesFunction · 0.64
test_runMethod · 0.64