52int main(
int argc,
char* argv[])
62 bool printActiveRcpNodesOnExit =
true;
69 clp.
setOption(
"print-active-rcp-nodes-on-exit",
"no-print-active-rcp-nodes-on-exit",
70 &printActiveRcpNodesOnExit);
71 (void)clp.
parse(argc, argv);
75 RCP<A> a = rcp(
new A);
76 RCP<C> c = rcp(
new C);
84 *out <<
"\nEnd Result: TEST PASSED" << std::endl;
87 if (!printActiveRcpNodesOnExit) {
93 return ( success ? 0 : 1 );
Basic command line parser for input from (argc,argv[])
A MPI utilities class, providing methods for initializing, finalizing, and querying the global MPI se...
Reference-counted pointer node classes.
#define TEUCHOS_STANDARD_CATCH_STATEMENTS(VERBOSE, ERR_STREAM, SUCCESS_FLAG)
Simple macro that catches and reports standard exceptions and other exceptions.
Class that helps parse command line input arguments from (argc,argv[]) and set options.
void setOption(const char option_true[], const char option_false[], bool *option_val, const char documentation[]=NULL)
Set a boolean option.
EParseCommandLineReturn parse(int argc, char *argv[], std::ostream *errout=&std::cerr) const
Parse a command line.
Initialize, finalize, and query the global MPI session.
static void setPrintActiveRcpNodesOnExit(bool printActiveRcpNodesOnExit)
Set if printActiveRCPNodes() is called on exit from the program.
Smart reference counting pointer class for automatic garbage collection.
static RCP< FancyOStream > getDefaultOStream()
Get the default output stream object.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.