MCPcopy Create free account
hub / github.com/activeloopai/deeplake / begin

Method begin

cpp/nd/array.hpp:694–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692 }
693
694 inline iterator begin() const
695 {
696 check_null();
697 auto h = holder();
698 if (h->shape().empty()) {
699 throw invalid_operation("Can't iterate over scalar array.");
700 }
701 try {
702 return h->begin();
703 } catch (const invalid_operation&) {
704 return icm::index_based_iterator<array, array, icm::use_container_index_tag, int64_t>(*this, 0L);
705 }
706 ASSERT(false);
707 return iterator{static_cast<array*>(nullptr)};
708 }
709
710 inline iterator end() const
711 {

Callers 12

containsMethod · 0.45
data_iteratorMethod · 0.45
byte_1_valueMethod · 0.45
byte_2_valueMethod · 0.45
byte_4_valueMethod · 0.45
byte_8_valueMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
volumeMethod · 0.45
getMethod · 0.45
get_rangeMethod · 0.45
arrayMethod · 0.45

Calls 4

holderClass · 0.70
invalid_operationClass · 0.70
emptyMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected