52 int 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 );
 
RCP< T > rcp(const boost::shared_ptr< T > &sptr)
Conversion function that takes in a boost::shared_ptr object and spits out a Teuchos::RCP object...
 
Initialize, finalize, and query the global MPI session. 
 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated. 
 
void setOption(const char option_true[], const char option_false[], bool *option_val, const char documentation[]=NULL)
Set a boolean option. 
 
#define TEUCHOS_STANDARD_CATCH_STATEMENTS(VERBOSE, ERR_STREAM, SUCCESS_FLAG)
Simple macro that catches and reports standard exceptions and other exceptions. 
 
static RCP< FancyOStream > getDefaultOStream()
Get the default output stream object. 
 
EParseCommandLineReturn parse(int argc, char *argv[], std::ostream *errout=&std::cerr) const 
Parse a command line. 
 
int main(int argc, char *argv[])
 
A MPI utilities class, providing methods for initializing, finalizing, and querying the global MPI se...
 
Basic command line parser for input from (argc,argv[]) 
 
Smart reference counting pointer class for automatic garbage collection. 
 
Reference-counted pointer node classes. 
 
Class that helps parse command line input arguments from (argc,argv[]) and set options. 
 
static void setPrintActiveRcpNodesOnExit(bool printActiveRcpNodesOnExit)
Set if printActiveRCPNodes() is called on exit from the program.