Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Dependencies_UnitTests.cpp
Go to the documentation of this file.
1// @HEADER
2// ***********************************************************************
3//
4// Teuchos: Common Tools Package
5// Copyright (2004) Sandia Corporation
6//
7// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8// license for use of this work by or on behalf of the U.S. Government.
9//
10// Redistribution and use in source and binary forms, with or without
11// modification, are permitted provided that the following conditions are
12// met:
13//
14// 1. Redistributions of source code must retain the above copyright
15// notice, this list of conditions and the following disclaimer.
16//
17// 2. Redistributions in binary form must reproduce the above copyright
18// notice, this list of conditions and the following disclaimer in the
19// documentation and/or other materials provided with the distribution.
20//
21// 3. Neither the name of the Corporation nor the names of the
22// contributors may be used to endorse or promote products derived from
23// this software without specific prior written permission.
24//
25// THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
26// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
29// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36//
37// Questions? Contact Michael A. Heroux (maherou@sandia.gov)
38//
39// ***********************************************************************
40// @HEADER
41
48
49
50namespace Teuchos{
51
58
59 /*
60 * Testing StringValidatorDependency
61 */
65 tuple<std::string>( "Cheese", "Soda", "Chips" )
66 ,"Food Type"
67 )
68 );
69
73 tuple<std::string>( "Swiss", "American", "Super Awesome Cheese" )
74 ,"Food Selector"
75 )
76 );
77
81 tuple<std::string>( "Pepsi", "Coke", "Kurtis Cola", "Bad Cola" )
82 ,"Food Selector"
83 )
84 );
85
89 tuple<std::string>( "Lays", "Doritos", "Kurtis Super Awesome Brand" )
90 ,"Food Selector"
91 )
92 );
93
98
100 "String Validator Dependency", false,
101 "String Validator Dependency testing list.");
103 "Food Selector", "Swiss", "select the food you want", cheeseValidator);
105 "Food Type",
106 "Cheese",
107 "String Validator Dependency Tester",
109
113 stringValiDepList.getEntryRCP("Food Type"),
114 stringValiDepList.getEntryRCP("Food Selector"),
117 )
118 );
119
120 depSheet1->addDependency(stringValiDep);
121
123 TEST_ASSERT(depSheet1->hasDependents(
124 stringValiDepList.getEntryRCP("Food Type")));
126 depSheet1->getDependenciesForParameter(
127 stringValiDepList.getEntryRCP("Food Type"));
129 stringValiDepList.set("Food Type","Soda");
130 stringValiDep->evaluate();
131 TEST_ASSERT(stringValiDepList.getEntry("Food Selector").validator()
132 ==
136 stringValiDepList.set("Food Selector", "Pepsi");
138
139
140 /*
141 * Tesing some different aspects of the StringValidatorDependency
142 */
145 "String Validator Dependency (other validators)",
146 false,
147 "String validator testing"
148 );
149
153 tuple<std::string>( "1-10", "10-33", "50-60" ),
154 "Range selector"
155 )
156 );
157
164
165 stringValiDepList2.set("Range selector", "1-10",
166 "selects the range to validate", stringRangeValidator);
167
173 "RangeValue", 3, "the value of the range", range110Vali);
174
178 stringValiDepList2.getEntryRCP("Range selector"),
179 stringValiDepList2.getEntryRCP("RangeValue"),
182 )
183 );
184
185 depSheet1->addDependency(stringValiDep2);
186
188 TEST_ASSERT(depSheet1->hasDependents(
189 stringValiDepList2.getEntryRCP("Range selector")));
191 depSheet1->getDependenciesForParameter(
192 stringValiDepList2.getEntryRCP("Range selector"));
194 stringValiDepList2.set("Range selector","50-60");
195 stringValiDep2->evaluate();
196 TEST_ASSERT(stringValiDepList2.getEntry("RangeValue").validator()
197 ==
201 stringValiDepList2.set("RangeValue", 55);
203
204 /*
205 * Testing the BoolValidatorDependency.
206 */
209 "Bool Validator Dependency List",
210 false,
211 "Bool Validator Dependency testing list."
212 );
213
214 boolValidatorDepList.set("Use Validator?",
215 true, "truns the validator on and off");
220 boolValidatorDepList.set("do I have a validator?",
221 4, "does it have a validator?", basicVali);
222
226 boolValidatorDepList.getEntryRCP("Use Validator?"),
227 boolValidatorDepList.getEntryRCP("do I have a validator?"),
228 basicVali,
230 )
231 );
232
233 depSheet1->addDependency(boolValiDep);
234
235 TEST_ASSERT(depSheet1->hasDependents(
236 boolValidatorDepList.getEntryRCP("Use Validator?")));
238 boolValidatorDepList.getEntry("do I have a validator?").validator()
239 ==
240 basicVali);
242 boolValidatorDepList.validateParameters(boolValidatorDepList));
244 depSheet1->getDependenciesForParameter(boolValidatorDepList.getEntryRCP(
245 "Use Validator?"));
247 boolValidatorDepList.set("Use Validator?",false);
248 boolValiDep->evaluate();
250 boolValidatorDepList.getEntry("do I have a validator?").validator()
251 ==
252 basicVali2);
253
254
255 /*
256 * Testing the RangeValidatorDependency
257 */
261 tuple<std::string>( "PepperJack", "Swiss", "American" ),
262 "Cheese to Fondue"
263 )
264 );
265
270 "Munster", "Provalone", "Kurtis Super Awesome Cheese"),
271 "Cheese to Fondue"
272 )
273 );
274
279 "Other cheese", "other cheese 1", "other cheese 3"),
280 "Cheese to Fondue"
281 )
282 );
283
286 "Range Validator Dependency List",
287 false,
288 "Range Validator Dependency testing list.\nWorking June 27th 2009"
289 );
291 "Temperature",101.0, "The temperature of the fondue");
293 "Cheese to Fondue", "Swiss",
294 "The cheese we'll be using in our fondue pot.", lowTempCheeseValidator);
296 tempranges[std::pair<double,double>(100,200)] = lowTempCheeseValidator;
297 tempranges[std::pair<double,double>(200,300)] = highTempCheeseValidator;
301 rangeValidatorDepList.getEntryRCP("Temperature"),
302 rangeValidatorDepList.getEntryRCP("Cheese to Fondue"),
305 )
306 );
307 depSheet1->addDependency(cheeseTempDep);
308
309 TEST_ASSERT(depSheet1->hasDependents(
310 rangeValidatorDepList.getEntryRCP("Temperature")));
312 depSheet1->getDependenciesForParameter(
313 rangeValidatorDepList.getEntryRCP("Temperature"));
315 rangeValidatorDepList.set("Temperature",250.0);
316 cheeseTempDep->evaluate();
318 rangeValidatorDepList.getEntry("Cheese to Fondue").validator()
319 ==
324 rangeValidatorDepList.set("Cheese to Fondue", "Provalone");
326 rangeValidatorDepList.validateParameters(rangeValidatorDepList));
327 rangeValidatorDepList.set("Temperature", 50.0);
328 cheeseTempDep->evaluate();
330 rangeValidatorDepList.getEntry("Cheese to Fondue").validator()
331 ==
333 );
334
335}
336
344 /*
345 * Two Simple NumberVisualDependency test
346 */
347
350 "NumberVisual Dependency List (double)",
351 false,
352 "Number visual Dependency testing list"
353 );
354
355 simpleNumDepTestList.set("Temperature",101.0);
356 simpleNumDepTestList.set("Cheese to Fondue", "Swiss", "The cheese to fondue");
357 simpleNumDepTestList.set("reverse param", "hello");
358
362 simpleNumDepTestList.getEntryRCP("Temperature"),
363 simpleNumDepTestList.getEntryRCP("Cheese to Fondue"),
364 true
365 )
366 );
370 simpleNumDepTestList.getEntryRCP("Temperature"),
371 simpleNumDepTestList.getEntryRCP("reverse param"),
372 false
373 )
374 );
375 depSheet1->addDependency(simpleNumDep);
376 depSheet1->addDependency(reverseNumDep);
377 simpleNumDep->evaluate();
378 reverseNumDep->evaluate();
379 TEST_ASSERT(simpleNumDep->isDependentVisible());
380 TEST_ASSERT(!reverseNumDep->isDependentVisible());
381 simpleNumDepTestList.set("Temperature",-1.0);
382 simpleNumDep->evaluate();
383 reverseNumDep->evaluate();
384 TEST_ASSERT(!simpleNumDep->isDependentVisible());
385 TEST_ASSERT(reverseNumDep->isDependentVisible());
386
387
388 /*
389 * complex Testing the NumberVisualDependency
390 */
393 "NumberVisual Dependency List (double)",
394 false,
395 "Number visual Dependency testing list"
396 );
397
399 "Temperature",101.0, "The temperature of the fondue");
401 "Cheese to Fondue", "Swiss", "The cheese to fondue");
402 doubleVisualDepList.set("reverse param", "hello");
405
409 doubleVisualDepList.getEntryRCP("Temperature"),
410 doubleVisualDepList.getEntryRCP("Cheese to Fondue"),
411 true,
413 )
414 );
418 doubleVisualDepList.getEntryRCP("Temperature"),
419 doubleVisualDepList.getEntryRCP("reverse param"),
420 false,
422 )
423 );
424 depSheet1->addDependency(fondueDep);
425 depSheet1->addDependency(reverseFondueDep);
426 fondueDep->evaluate();
427 reverseFondueDep->evaluate();
428 TEST_ASSERT(fondueDep->isDependentVisible());
429 TEST_ASSERT(!reverseFondueDep->isDependentVisible());
430 doubleVisualDepList.set("Temperature",99.0);
431 fondueDep->evaluate();
432 reverseFondueDep->evaluate();
433 TEST_ASSERT(!fondueDep->isDependentVisible());
434 TEST_ASSERT(reverseFondueDep->isDependentVisible());
435
436 /*
437 * Testing the BoolVisualDependency
438 */
440 boolVisDepList = My_deplist->sublist(
441 "Bool Visual Dependency List",
442 false,
443 "Bool Visual Dependency testing list."
444 );
445 boolVisDepList.set(
446 "ShowPrecs", true, "Whether or not to should the Preciondtioner list");
448 Prec_List0 = boolVisDepList.sublist(
449 "Preconditioner",false,"Sublist that defines the preconditioner.");
450 Prec_List0.set("Type", "ILU", "The tpye of preconditioner to use");
453 Prec_List0.set(
454 "Drop Tolerance", 1e-3,
455 "The tolerance below which entries from the "
456 "factorization are left out of the factors.", droptolValidator);
460 boolVisDepList.getEntryRCP("ShowPrecs"),
461 boolVisDepList.getEntryRCP("Preconditioner"),
462 true
463 )
464 );
465 depSheet1->addDependency(precDep1);
466 precDep1->evaluate();
467 TEST_ASSERT(precDep1->isDependentVisible());
468 boolVisDepList.set("ShowPrecs", false);
469 precDep1->evaluate();
470 TEST_ASSERT(!precDep1->isDependentVisible());
471
472
473
474 /*
475 * Testing the StringVisualDepenency
476 */
478 stringVisDepList = My_deplist->sublist(
479 "String Visual Dependency List",
480 false,
481 "String Visual Dependency testing list."
482 );
486 tuple<std::string>( "Swiss", "American", "Cheder" ),
487 "Favorite Cheese"
488 )
489 );
490
491 stringVisDepList.set("Favorite Cheese",
492 "American", "Your favorite type of cheese", favCheeseValidator);
495 stringVisDepList.set("Swiss rating", 0,
496 "How you rate swiss on a scale of 1 to 10", swissValidator);
500 stringVisDepList.getEntryRCP("Favorite Cheese"),
501 stringVisDepList.getEntryRCP("Swiss rating"),
502 "Swiss",
503 true
504 )
505 );
506 depSheet1->addDependency(swissDep1);
507 swissDep1->evaluate();
508 TEST_ASSERT(!swissDep1->isDependentVisible());
509 stringVisDepList.set("Favorite Cheese", "Swiss");
510 swissDep1->evaluate();
511 TEST_ASSERT(swissDep1->isDependentVisible());
512
513 /*
514 * String Visual Tester with multiple values
515 */
517 "Multi String Visual Dependency List",
518 false
519 );
523 tuple<std::string>( "Provalone", "Swiss", "American", "Cheder" ),
524 "Favorite Cheese"
525 )
526 );
527
529 "Favorite Cheese", "American",
530 "Your favorite type of cheese", favCheeseValidator2);
531 multiStringVisDepList.set("Swiss rating", 0,
532 "How you rate swiss on a scale of 1 to 10", swissValidator);
536 multiStringVisDepList.getEntryRCP("Favorite Cheese"),
537 multiStringVisDepList.getEntryRCP("Swiss rating"),
538 tuple<std::string>("Swiss", "Cheder"),
539 true
540 )
541 );
542 depSheet1->addDependency(swissDep2);
543 swissDep2->evaluate();
544 TEST_ASSERT(!swissDep2->isDependentVisible());
545 multiStringVisDepList.set("Favorite Cheese", "Cheder");
546 swissDep2->evaluate();
547 TEST_ASSERT(swissDep2->isDependentVisible());
548
549 /*
550 * Another test of the NumberVisualDependency.
551 */
553 numberVisDepList = My_deplist->sublist(
554 "Number Visual Dependency List",
555 false,
556 "Number Visual Dependency testing list."
557 );
558 numberVisDepList.set("Ice", 50, "Ice stuff");
559 numberVisDepList.set("Room Temp", 10, "Room temperature");
565 numberVisDepList.getEntryRCP("Room Temp"),
566 numberVisDepList.getEntryRCP("Ice"),
567 true,
568 visFunc
569 )
570 );
571 depSheet1->addDependency(iceDep);
572 iceDep->evaluate();
573 TEST_ASSERT(!iceDep->isDependentVisible());
574 numberVisDepList.set("Room Temp", 33);
575 iceDep->evaluate();
576 TEST_ASSERT(iceDep->isDependentVisible());
577
578 /*
579 * Test condition visual dependency
580 */
582 My_deplist,"Condition Visual Dependency List", false);
583 conVisDepList->set("double param", 4.0, "double parameter");
584 conVisDepList->set("bool param", true, "bool parameter");
585 conVisDepList->set("string param", "blah", "a string parameter");
588 conVisDepList->getEntryRCP("double param")));
590 rcp(new BoolCondition(conVisDepList->getEntryRCP("bool param")));
596 andCon, conVisDepList->getEntryRCP("string param"), true));
597 depSheet1->addDependency(conVisDep);
598 conVisDep->evaluate();
599 TEST_ASSERT(conVisDep->isDependentVisible());
600 conVisDepList->set("bool param", false);
601 conVisDep->evaluate();
602 TEST_ASSERT(!conVisDep->isDependentVisible());
603}
604
612
614 rowNumDepList = My_deplist->sublist(
615 "2D Row Depdency List", false,
616 "2D Row Dependecy testing list.");
617 rowNumDepList.set("Num rows", 10, "num rows setter");
622 );
623 rowNumDepList.set(
624 "Variable Row Array", variableRowsArray, "variable row array",
627
631 rowNumDepList.getEntryRCP("Num rows"),
632 rowNumDepList.getEntryRCP("Variable Row Array") ,
633 rcp(new AdditionFunction<int>(1))
634 )
635 );
636 depSheet1->addDependency(arrayRowDep);
638 rowNumDepList.get<TwoDArray<double> >("Variable Row Array");
639 TEST_EQUALITY_CONST(curArray.getNumRows(),11);
640 rowNumDepList.set("Num rows", 12);
641 arrayRowDep()->evaluate();
642 curArray =
643 rowNumDepList.get<TwoDArray<double> >("Variable Row Array");
644 TEST_EQUALITY_CONST(curArray.getNumRows(),13);
645 rowNumDepList.set("Num rows", -2);
646 TEST_THROW(arrayRowDep()->evaluate(),
648}
649
657
659 colNumDepList = My_deplist->sublist(
660 "2D Col Depdency List", false,
661 "2D Col Dependecy testing list.");
662 colNumDepList.set("Num cols", 2, "num cols setter");
667 );
668 colNumDepList.set(
669 "Variable Col Array", variableColsArray, "variable col array",
672
676 colNumDepList.getEntryRCP("Num cols"),
677 colNumDepList.getEntryRCP("Variable Col Array") ,
678 rcp(new AdditionFunction<int>(1))
679 )
680 );
681 depSheet1->addDependency(arrayColDep);
683 colNumDepList.get<TwoDArray<double> >("Variable Col Array");
684 TEST_EQUALITY_CONST(curArray.getNumCols(),3);
685 colNumDepList.set("Num cols", 4);
686 arrayColDep()->evaluate();
687 curArray =
688 colNumDepList.get<TwoDArray<double> >("Variable Col Array");
689 TEST_EQUALITY_CONST(curArray.getNumCols(),5);
690 colNumDepList.set("Num cols", -2);
691 TEST_THROW(arrayColDep()->evaluate(),
693}
694
695
703
706 "Number Array Length Dependency List", false,
707 "Number Array Length Dependecy testing list.");
708 numberArrayLengthDepList.set("Array Length", 10, "array length setter");
713 );
715 "Variable Length Array", variableLengthArray, "variable length array",
718
722 numberArrayLengthDepList.getEntryRCP("Array Length"),
723 numberArrayLengthDepList.getEntryRCP("Variable Length Array"),
724 rcp(new AdditionFunction<int>(1))
725 )
726 );
727 depSheet1->addDependency(arrayLengthDep);
729 numberArrayLengthDepList.get<Array<double> >("Variable Length Array");
730 TEST_ASSERT(curArray.length() ==11);
731 numberArrayLengthDepList.set("Array Length", 12);
732 arrayLengthDep()->evaluate();
733 curArray =
734 numberArrayLengthDepList.get<Array<double> >("Variable Length Array");
735 out << curArray.length() << std::endl;
736 TEST_ASSERT(curArray.length() ==13);
737 numberArrayLengthDepList.set("Array Length", -2);
738 TEST_THROW(arrayLengthDep()->evaluate(),
740}
741
748
749 list1->set("int parameter", 4, "int parameter");
750 list1->set("double parameter", 6.0, "double parameter");
751 list1->set("string parameter", "hahahaha", "string parameter");
752 Array<double> doubleArray(10,23.0);
753 list1->set("array parameter", doubleArray, "array parameter");
754 list1->set("bool parameter", true, "bool parameter");
755
759 rcp(
761 list1->getEntryRCP("bool parameter"),
762 list1->getEntryRCP("double parameter"),
763 true,
766
767 /*
768 * Testing StringVisualDepenendcy exceptions.
769 */
773 list1->getEntryRCP("double parameter"),
774 list1->getEntryRCP("int parameter"),
775 "cheese", true)),
777
778 /*
779 * Testing BoolVisualDependency exceptions.
780 */
783 list1->getEntryRCP("int parameter"),
784 list1->getEntryRCP("double parameter"), false)),
786
792 list1->getEntryRCP("double parameter"),
793 list1->getEntryRCP("array parameter"))),
795
798 list1->getEntryRCP("int parameter"),
799 list1->getEntryRCP("double parameter"))),
801
802 /*
803 * Testing StringValidatorDependency exceptions.
804 */
808 tuple<std::string>( "Swiss", "American", "Super Awesome Cheese"),
809 "Food Selector"
810 )
811 );
812
816 tuple<std::string>( "Pepsi", "Coke", "Kurtis Cola", "Bad Cola" ),
817 "Food Selector"
818 )
819 );
820
824 tuple<std::string>( "Lays", "Doritos", "Kurtis Super Awesome Brand"),
825 "Food Selector"
826 )
827 );
828
829
830 list1->set(
831 "string 2 parameter", "Swiss",
832 "second string parameter", cheeseValidator);
840 list1->getEntryRCP("int parameter"),
841 list1->getEntryRCP("string 2 parameter"),
846 testValidatorMap1["Candy"] = intVali;
850 list1->getEntryRCP("string parameter"),
851 list1->getEntryRCP("string 2 parameter"),
854
859 list1->getEntryRCP("string parameter"),
860 list1->getEntryRCP("string 2 parameter"),
861 emptyMap)),
863
864 /*
865 * Testing BoolValidatorDependency exceptions.
866 */
871 list1->set("double parameter", 6.0, "double parameter", doubleVali1);
872
876 list1->getEntryRCP("int parameter"),
877 list1->getEntryRCP("double parameter"),
879 doubleVali2)),
881
885 list1->getEntryRCP("bool parameter"),
886 list1->getEntryRCP("double parameter"),
887 intVali,
888 doubleVali2)),
890
894 list1->getEntryRCP("bool parameter"),
895 list1->getEntryRCP("double parameter"),
897 intVali)),
899
900 /*
901 * Testing RangeValidatorDependency exceptions.
902 */
903 list1->set("Cheese to Fondue", "Swiss", "the cheese to fondue");
907 tuple<std::string>( "PepperJack", "Swiss", "American" ),
908 "Cheese to Fondue"
909 )
910 );
914 tuple<std::string>("Munster", "Provalone",
915 "Kurtis Super Awesome Cheese"),
916 "Cheese to Fondue"
917 )
918 );
919
920 list1->set(
921 "Cheese to Fondue", "Swiss", "the cheese to fondue",
923
925 tempranges[std::pair<double,double>(100,200)] = lowTempCheeseValidator;
926 tempranges[std::pair<double,double>(200,300)] = highTempCheeseValidator;
931 list1->getEntryRCP("string parameter"),
932 list1->getEntryRCP("Cheese to Fondue"),
934 )
935 ),
937 );
938
939 tempranges[std::pair<double,double>(400,800)] = intVali;
944 list1->getEntryRCP("int parameter"),
945 list1->getEntryRCP("Cheese to Fondue"),
947 )
948 ),
950 );
951
957 list1->getEntryRCP("double parameter"),
958 list1->getEntryRCP("Cheese to Fondue"),
960 )
961 ),
963 );
964
966 tempranges[std::pair<int,int>(200,100)] = lowTempCheeseValidator;
971 list1->getEntryRCP("string parameter"),
972 list1->getEntryRCP("Cheese to Fondue"),
974 )
975 ),
977 );
978}
979
987 TEST_ASSERT(depSheet1->empty());
988 depSheet1->addDependency(boolDep1);
989 TEST_ASSERT(!depSheet1->empty());
990
991
995 depSheet1->addDependency(stringDep1);
998 depSheet1->addDependency(stringValiDep1);
999
1000 depSheet1->addDependencies(depSheet2);
1002 bool found1 = false;
1003 bool found2 = false;
1004 bool found3 = false;
1005 for(
1006 DependencySheet::DepSet::iterator it = depSheet1->depBegin();
1007 it != depSheet1->depEnd();
1008 ++it
1009 )
1010 {
1011 if(*it == boolDep1){
1012 found1 = true;
1013 }
1014 else if(*it == stringDep1){
1015 found2 = true;
1016 }
1017 else if(*it == stringValiDep1){
1018 found3 = true;
1019 }
1020 }
1024}
1025
1026
1027} //namespace Teuchos
1028
DataStructure keeping track of dependencies.
#define TEST_ASSERT(v1)
Assert the given statement is true.
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
#define TEST_NOTHROW(code)
Asserr that the statement 'code' does not thrown any excpetions.
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails).
Templated Parameter List class.
Standard Conditions to be used.
A collection of standard dependencies.
Unit testing support.
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
A Bool Logic Condition that returns the result or perfroming a logical AND on the conditions.
Replacement for std::vector that is compatible with the Teuchos Memory Management classes.
A Bool Condition is a Parameter Condition that evaluates whether or not a Boolean parameter is ture.
A BoolValidatorDependency says the following about the relationship between two parameters: Dependeni...
A bool visual dependency says the following about the relationship between two elements in a Paramete...
int size(const Comm< Ordinal > &comm)
Get the number of processes in the communicator.
A condition visual dependency says the following about the relationship between elements in a Paramet...
A Dependency sheet keeps track of dependencies between various ParameterEntries.
static RCP< T > getDummyObject()
Retrieves a dummy object of type T.
A list of parameters of arbitrary type.
Smart reference counting pointer class for automatic garbage collection.
std::map< Range, RCP< const ParameterEntryValidator > > RangeToValidatorMap
Convenience typedef.
Concrete serial communicator subclass.
A StringValidatorDependency says the following about the relationship between two parameters: Depende...
std::map< std::string, RCP< const ParameterEntryValidator > > ValueToValidatorMap
Conveniece typedef.
A string visual depdencies says the following about the relationship between two elements in a Parame...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.