/***********************************************************************//** * @brief Print pixel * * @param[in] chatter Chattiness (defaults to NORMAL). * @return String containing pixel information. ***************************************************************************/ std::string GSkyPixel::print(const GChatter& chatter) const { // Initialise result string std::string result; // Continue only if chatter is not silent if (chatter != SILENT) { // Append pixel if (is_1D()) { result.append(gammalib::str(x())); } else if (is_2D()) { result.append("("); result.append(gammalib::str(x())); result.append(","); result.append(gammalib::str(y())); result.append(")"); } } // endif: chatter was not silent // Return result return result; }
/// Output global address in human-readable form std::ostream& dump( std::ostream& o ) const { if( is_2D() ) { return o << "<GA 2D " << (void*)storage_ << ": core " << core() << " pointer " << static_cast<void *>( pointer() ) << ">"; } else { return o << "<GA Linear " << (void*)storage_ // << ": pool " << pool() << " core " << core() << " pointer " << static_cast<void *>( pointer() ) << ">"; } }