https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
MutableCoefficientsInterface.C File Reference

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const MutableCoefficientsInterface &me)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  stream,
const MutableCoefficientsInterface me 
)

Definition at line 185 of file MutableCoefficientsInterface.C.

187{
188 const MooseObject * myself_again = dynamic_cast<const MooseObject *>(&me);
189 stream << "\n\n"
190 << "MutableCoefficientsInterface: " << (myself_again ? myself_again->name() : "Unknown")
191 << "\n"
192 << " Number of Coefficients: " << me.getSize() << "\n";
193
194 for (std::size_t i = 0; i < me.getSize(); ++i)
195 stream << std::setw(4) << i << ": " << std::setw(12) << me[i] << ((i % 6 == 5) ? "\n" : " ");
196
197 stream << "\n\n" << std::flush;
198
199 return stream;
200}
const std::string & name() const
std::size_t getSize() const
Get the size, aka number of coefficients.