|
cgma
|
#include <vector>#include <map>#include <iosfwd>#include <string>#include "dataref.hpp"#include "geometry.hpp"Go to the source code of this file.
Classes | |
| class | Card |
| class | CellCard |
| class | SurfaceCard |
| class | DataCard |
| class | InputDeck |
Typedefs | |
| typedef std::vector< std::string > | token_list_t |
Functions | |
| std::ostream & | operator<< (std::ostream &str, const CellCard::geom_list_entry_t &t) |
| template<class T > | |
| std::ostream & | operator<< (std::ostream &out, const std::vector< T > &list) |
| typedef std::vector< std::string > token_list_t |
Definition at line 9 of file MCNPInput.hpp.
| std::ostream& operator<< | ( | std::ostream & | str, |
| const CellCard::geom_list_entry_t & | t | ||
| ) |
Definition at line 789 of file MCNPInput.cpp.
{
switch(t.first){
case CellCard::LPAREN: str << "("; break;
case CellCard::RPAREN: str << ")"; break;
case CellCard::COMPLEMENT: str << "#"; break;
case CellCard::UNION: str << ":"; break;
case CellCard::INTERSECT: str << "*"; break;
case CellCard::SURFNUM: str << t.second; break;
case CellCard::CELLNUM: str << "c" << t.second; break;
case CellCard::MBODYFACET:
int cell = t.second / 10;
int facet = abs(t.second) - (abs(cell)*10);
str << cell << "." << facet;
break;
}
return str;
}
| std::ostream& operator<< | ( | std::ostream & | out, |
| const std::vector< T > & | list | ||
| ) |
Definition at line 207 of file MCNPInput.cpp.
{
out << "[";
for(typename std::vector<T>::const_iterator i = list.begin(); i!=list.end(); ++i){
out << *i << "|";
}
if(list.size() > 0)
out << "\b"; // unless list was empty, backspace the last | character
out << "]";
return out;
}