git subrepo pull --force tools/ZAPD (#653)

subrepo:
  subdir:   "tools/ZAPD"
  merged:   "2e1174063"
upstream:
  origin:   "https://github.com/zeldaret/ZAPD.git"
  branch:   "master"
  commit:   "2e1174063"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"
This commit is contained in:
fig02
2021-01-22 16:25:08 -05:00
committed by GitHub
parent d739765031
commit 588de66d06
32 changed files with 405 additions and 65 deletions
+9 -2
View File
@@ -42,7 +42,9 @@ void ZVector::ParseRawData()
int currentRawDataIndex = this->rawDataIndex;
scalars.clear();
for (int i = 0; i < this->dimensions; i++) {
for (int i = 0; i < this->dimensions; i++)
{
ZScalar* scalar = new ZScalar(this->scalarType);
scalar->rawDataIndex = currentRawDataIndex;
scalar->rawData = this->rawData;
@@ -64,6 +66,11 @@ int ZVector::GetRawDataSize()
return size;
}
bool ZVector::DoesSupportArray()
{
return true;
}
std::string ZVector::GetSourceTypeName()
{
if (dimensions == 3 && scalarType == ZSCALAR_F32)
@@ -94,7 +101,7 @@ std::string ZVector::GetSourceValue()
std::vector<std::string> strings = std::vector<std::string>();
for (int i = 0; i < this->scalars.size(); i++)
strings.push_back(scalars[i]->GetSourceValue());
return StringHelper::Implode(strings, ", ");
return "{ " + StringHelper::Implode(strings, ", ") + " }";
}
std::string ZVector::GetSourceOutputCode(const std::string& prefix)