Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
Public Member Functions | Private Attributes | List of all members
Teuchos::CompoundEntryWithParentheses Class Reference

An entry containing two subentries, with the second to be written in parentheses after the first. For example,. More...

#include <Teuchos_TableEntry.hpp>

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

Public Member Functions

 CompoundEntryWithParentheses (const RCP< TableEntry > &first, const RCP< TableEntry > &second, bool spaceBeforeParens=true)
 
virtual std::string toString () const
 Write the specified entry to a std::string. More...
 
- Public Member Functions inherited from Teuchos::TableEntry
 TableEntry ()
 Empty ctor. More...
 
virtual ~TableEntry ()
 virtual dtor More...
 
virtual std::string toChoppedString (int maxWidth) const
 Return a std::string representation of this entry, truncated if necessary to fit within the given column width. More...
 

Private Attributes

RCP< TableEntryfirst_
 
RCP< TableEntrysecond_
 
bool spaceBeforeParens_
 

Detailed Description

An entry containing two subentries, with the second to be written in parentheses after the first. For example,.

1.23(456)

The two subentries can be any type of data, each represented with a TableEntry derived type.

Definition at line 154 of file Teuchos_TableEntry.hpp.

Constructor & Destructor Documentation

◆ CompoundEntryWithParentheses()

CompoundEntryWithParentheses::CompoundEntryWithParentheses ( const RCP< TableEntry > &  first,
const RCP< TableEntry > &  second,
bool  spaceBeforeParens = true 
)

Definition at line 104 of file Teuchos_TableEntry.cpp.

Member Function Documentation

◆ toString()

std::string CompoundEntryWithParentheses::toString ( ) const
virtual

Write the specified entry to a std::string.

Implements Teuchos::TableEntry.

Definition at line 113 of file Teuchos_TableEntry.cpp.

Member Data Documentation

◆ first_

RCP<TableEntry> Teuchos::CompoundEntryWithParentheses::first_
private

Definition at line 166 of file Teuchos_TableEntry.hpp.

◆ second_

RCP<TableEntry> Teuchos::CompoundEntryWithParentheses::second_
private

Definition at line 167 of file Teuchos_TableEntry.hpp.

◆ spaceBeforeParens_

bool Teuchos::CompoundEntryWithParentheses::spaceBeforeParens_
private

Definition at line 168 of file Teuchos_TableEntry.hpp.


The documentation for this class was generated from the following files: