IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::Showable Class Reference

Helper class to aid in output of IMP classes to streams. More...

#include <IMP/Showable.h>

Detailed Description

Helper class to aid in output of IMP classes to streams.

To support output to streams, a class can use the IMP_SHOWABLE macros to define an implicit conversion to Showable.

Definition at line 25 of file Showable.h.

Public Member Functions

 Showable (const char *str)
 Showable (const Showable &)=default
template<class T, class TT>
 Showable (const std::pair< T, TT > &p)
 Showable (const std::string &str)
template<class T>
 Showable (const T &t)
template<class T>
 Showable (const T *o)
template<class T>
 Showable (T *o)
std::string get_string () const
Showable & operator= (const Showable &)=default

Constructor & Destructor Documentation

◆ Showable() [1/6]

template<class T>
IMP::Showable::Showable ( const T & t)
explicit

Definition at line 40 of file Showable.h.

◆ Showable() [2/6]

template<class T>
IMP::Showable::Showable ( const T * o)
explicit

Definition at line 46 of file Showable.h.

◆ Showable() [3/6]

template<class T>
IMP::Showable::Showable ( T * o)
explicit

Definition at line 50 of file Showable.h.

◆ Showable() [4/6]

IMP::Showable::Showable ( const std::string & str)

Definition at line 54 of file Showable.h.

◆ Showable() [5/6]

IMP::Showable::Showable ( const char * str)

Definition at line 55 of file Showable.h.

◆ Showable() [6/6]

template<class T, class TT>
IMP::Showable::Showable ( const std::pair< T, TT > & p)

Definition at line 57 of file Showable.h.

Member Function Documentation

◆ get_string()

std::string IMP::Showable::get_string ( ) const

Definition at line 62 of file Showable.h.


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