MCPcopy Create free account
hub / github.com/PDAL/PDAL / get

Method get

plugins/e57/libE57Format/src/StructureNodeImpl.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125NodeImplSharedPtr StructureNodeImpl::get( int64_t index )
126{
127 checkImageFileOpen( __FILE__, __LINE__, static_cast<const char *>( __FUNCTION__ ) );
128 if ( index < 0 || index >= static_cast<int64_t>( children_.size() ) )
129 { // %%% Possible truncation on platforms where size_t = uint64
130 throw E57_EXCEPTION2( ErrorChildIndexOutOfBounds,
131 "this->pathName=" + this->pathName() + " index=" + toString( index ) +
132 " size=" + toString( children_.size() ) );
133 }
134 return ( children_.at( static_cast<unsigned>( index ) ) );
135}
136
137NodeImplSharedPtr StructureNodeImpl::get( const ustring &pathName )
138{

Callers

nothing calls this directly

Calls 4

atMethod · 0.80
toStringFunction · 0.70
sizeMethod · 0.45
pathNameMethod · 0.45

Tested by

no test coverage detected