Use explicit template instantiation for mjXUtil::ReadAttr.
PiperOrigin-RevId: 451481936 Change-Id: Ib26e41823606e612f017db0f606983262713066e
This commit is contained in:
committed by
Copybara-Service
parent
f3453cf87f
commit
6faf1d93de
+1
-21
@@ -100,28 +100,8 @@ class mjXUtil {
|
||||
|
||||
// read any type from attribute, return number read
|
||||
template<typename T>
|
||||
static int ReadAttrCpp(tinyxml2::XMLElement* elem, const char* attr, const int len,
|
||||
T* data, std::string& text,
|
||||
bool required = false, bool exact = true);
|
||||
|
||||
// read DOUBLE array from attribute, return number read
|
||||
static int ReadAttr(tinyxml2::XMLElement* elem, const char* attr, const int len,
|
||||
double* data, std::string& text,
|
||||
bool required = false, bool exact = true);
|
||||
|
||||
// read FLOAT array from attribute, return number read
|
||||
static int ReadAttr(tinyxml2::XMLElement* elem, const char* attr, const int len,
|
||||
float* data, std::string& text,
|
||||
bool required = false, bool exact = true);
|
||||
|
||||
// read INT array from attribute, return number read
|
||||
static int ReadAttr(tinyxml2::XMLElement* elem, const char* attr, const int len,
|
||||
int* data, std::string& text,
|
||||
bool required = false, bool exact = true);
|
||||
|
||||
// read BYTE array from attribute, return number read
|
||||
static int ReadAttr(tinyxml2::XMLElement* elem, const char* attr, const int len,
|
||||
mjtByte* data, std::string& text,
|
||||
T* data, std::string& text,
|
||||
bool required = false, bool exact = true);
|
||||
|
||||
// read DOUBLE array into C++ vector, return number read
|
||||
|
||||
Reference in New Issue
Block a user