MCPcopy Create free account
hub / github.com/Kitware/VTK / GetMaxAsInt64

Method GetMaxAsInt64

ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfArray.cxx:1320–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318}
1319
1320XdmfInt64
1321XdmfArray::GetMaxAsInt64( void ) {
1322XdmfLength i, Length;
1323XdmfInt64 Value, *Data;
1324
1325Length = this->GetNumberOfElements();
1326Data = new XdmfInt64[ Length ];
1327this->GetValues( 0, Data, Length);
1328Value = Data[0];
1329for( i = 0 ; i < Length ; i++ ){
1330 if ( Data[i] > Value ) {
1331 Value = Data[i];
1332 }
1333 }
1334delete [] Data;
1335return( Value );
1336}
1337
1338XdmfInt32 XdmfArray::SetValue( XdmfInt64 Index, XdmfUInt8 Value ) {
1339return(this->SetValueFromInt64( Index, Value ));

Callers

nothing calls this directly

Calls 2

GetValuesMethod · 0.95
GetNumberOfElementsMethod · 0.45

Tested by

no test coverage detected