55 out <<
"Test Array: " << testArray << std::endl;
56 out <<
"Extracted Array: " << extractedArray << std::endl;
62 TEST_EQUALITY(twoDExtracted, twoDtestArray)
63 out <<
"TwoD Test: " << twoDtestArray << std::endl;
64 out <<
"TwoD Extracted: " << twoDExtracted << std::endl;
69 Array<int> intArray = Teuchos::tuple<int>(5,6,7,8);
76 Teuchos::tuple<double>(5.0,6.4,7.5,8.9);
83 Teuchos::tuple<std::string>(
"hello",
"one");
104 intId.toStdString());
TEUCHOS_UNIT_TEST(Array_Helper_Functions, ArrayToQVariant)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
QString determineArrayType(RCP< const ParameterEntry > parameter, bool twoD)
Determines the type of array stored in a parameter.
QVariant arrayEntryToVariant(RCP< const ParameterEntry > arrayEntry, QString type, bool twoD)
Creates a QVariant containing the array that is in arrayEntry.
bool testArray(const int n, Teuchos::FancyOStream &out)
static QString getTypeId(const RCP< const ParameterEntry > parameter)
Gets the type id to be used for the TreeItem.
TEST_ASSERT(castedDep1->getValuesAndValidators().size()==2)
bool isArrayEmpty(RCP< const ParameterEntry > arrayEntry, QString type)
Determines wether or no the array inside a ParameterEntry is empty.
TEST_EQUALITY(rcp_dynamic_cast< const EnhancedNumberValidator< double > >(castedDep1->getValuesAndValidators().find("val1") ->second, true) ->getMax(), double1Vali->getMax())
A collection of objects which apply the restriction of a EnhancedNumberValidator to a SpinBoxes and L...
QString getArrayType(QString itemType)
Given a type string, determines the template type of the Array.