Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Teuchos::XMLTestNode Class Reference

Subclass of XMLObject used by the performance archive. More...

#include <Teuchos_XMLPerfTestArchive.hpp>

Inheritance diagram for Teuchos::XMLTestNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 XMLTestNode ()
 XMLTestNode (const std::string &tag)
 XMLTestNode (XMLObjectImplem *ptr)
 XMLTestNode (XMLObject obj)
void addDouble (const std::string &name, double val)
 Add a double as an attribute.
void addInt (const std::string &name, int val)
 Add an int as an attribute.
void addBool (const std::string &name, bool val)
 Add a bool as an attribute.
void addValueTolerance (const std::string &name, ValueTolerance val)
void addString (const std::string &name, std::string val)
template<class T >
void addAttribute (const std::string &name, T val)
 Lookup whether or not Doubles are allowed.
bool hasChild (const std::string &name) const
void appendContentLine (const size_t &i, const std::string &str)
XMLTestNode getChild (const std::string &name) const
XMLTestNode getChild (const int &i) const
const XMLObjectxml_object () const
bool hasSameElements (XMLTestNode const &lhs) const

Detailed Description

Subclass of XMLObject used by the performance archive.

This subclass of XMLObject generates an XML list in a style more suitable for a performance test archive. It also provides a number of convenience functions helpful for working with a test archive.

Definition at line 159 of file Teuchos_XMLPerfTestArchive.hpp.


Constructor & Destructor Documentation

Definition at line 120 of file Teuchos_XMLPerfTestArchive.cpp.

Teuchos::XMLTestNode::XMLTestNode ( const std::string &  tag)

Definition at line 122 of file Teuchos_XMLPerfTestArchive.cpp.

Definition at line 124 of file Teuchos_XMLPerfTestArchive.cpp.

Definition at line 126 of file Teuchos_XMLPerfTestArchive.cpp.


Member Function Documentation

void Teuchos::XMLTestNode::addDouble ( const std::string &  name,
double  val 
)

Add a double as an attribute.

Reimplemented from Teuchos::XMLObject.

Definition at line 128 of file Teuchos_XMLPerfTestArchive.cpp.

void Teuchos::XMLTestNode::addInt ( const std::string &  name,
int  val 
)

Add an int as an attribute.

Reimplemented from Teuchos::XMLObject.

Definition at line 132 of file Teuchos_XMLPerfTestArchive.cpp.

void Teuchos::XMLTestNode::addBool ( const std::string &  name,
bool  val 
)

Add a bool as an attribute.

Reimplemented from Teuchos::XMLObject.

Definition at line 136 of file Teuchos_XMLPerfTestArchive.cpp.

void Teuchos::XMLTestNode::addValueTolerance ( const std::string &  name,
ValueTolerance  val 
)

Definition at line 140 of file Teuchos_XMLPerfTestArchive.cpp.

void Teuchos::XMLTestNode::addString ( const std::string &  name,
std::string  val 
)

Definition at line 144 of file Teuchos_XMLPerfTestArchive.cpp.

template<class T >
void Teuchos::XMLTestNode::addAttribute ( const std::string &  name,
value 
) [inline]

Lookup whether or not Doubles are allowed.

Reimplemented from Teuchos::XMLObject.

Definition at line 172 of file Teuchos_XMLPerfTestArchive.hpp.

bool Teuchos::XMLTestNode::hasChild ( const std::string &  name) const

Definition at line 148 of file Teuchos_XMLPerfTestArchive.cpp.

void Teuchos::XMLTestNode::appendContentLine ( const size_t &  i,
const std::string &  str 
)

Reimplemented from Teuchos::XMLObject.

Definition at line 159 of file Teuchos_XMLPerfTestArchive.cpp.

XMLTestNode Teuchos::XMLTestNode::getChild ( const std::string &  name) const

Definition at line 163 of file Teuchos_XMLPerfTestArchive.cpp.

XMLTestNode Teuchos::XMLTestNode::getChild ( const int &  i) const

Definition at line 172 of file Teuchos_XMLPerfTestArchive.cpp.

Definition at line 176 of file Teuchos_XMLPerfTestArchive.cpp.

Definition at line 180 of file Teuchos_XMLPerfTestArchive.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines