MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / Array

Method Array

include/openpose/core/array.hpp:96–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 */
95 template<typename T2>
96 Array(const Array<T2>& array) :
97 Array{array.getSize()}
98 {
99 try
100 {
101 // Copy
102 for (auto i = 0u ; i < array.getVolume() ; i++)
103 pData[i] = T(array[i]);
104 }
105 catch (const std::exception& e)
106 {
107 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
108 }
109 }
110
111 /**
112 * Copy constructor.

Callers

nothing calls this directly

Calls 4

whatMethod · 0.80
errorFunction · 0.50
getSizeMethod · 0.45
getVolumeMethod · 0.45

Tested by

no test coverage detected