| 
    IMP Reference Guide
    2.23.0
    
   The Integrative Modeling Platform 
   | 
 
Macros to help with objects that can be printed to a stream. More...
 Include dependency graph for showable_macros.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Showable | |
Declare the methods needed by an object that can be printed, both from C++ and Python. Each value-type class should have an IMP_SHOWABLE() call internal to it and an IMP_OUTPUT_OPERATOR() call external to it. The suffixes are the number of template arguments that the object has (eg _1 means one template argument). _D means one integer template argument.  | |
| #define | IMP_SHOWABLE(Name) void show(std::ostream &out = std::cout) const | 
| #define | IMP_SHOWABLE_INLINE(Name, how_to_show) void show(std::ostream &out = std::cout) const | 
| Declare the methods needed by an object that can be printed.  More... | |
Macros to help with objects that can be printed to a stream.
Copyright 2007-2022 IMP Inventors. All rights reserved.
Definition in file showable_macros.h.
| #define IMP_SHOWABLE | ( | Name | ) | void show(std::ostream &out = std::cout) const | 
This macro declares the method
The ostream and sstream headers must be included.
Do not use with IMP::Object objects as they have their own show mechanism.
Definition at line 41 of file showable_macros.h.
| #define IMP_SHOWABLE_INLINE | ( | Name, | |
| how_to_show | |||
| ) | void show(std::ostream &out = std::cout) const | 
Declare the methods needed by an object that can be printed.
This macro declares the method
void show(std::ostream &out) const It also makes it so that the object can be printed in Python.The ostream and sstream headers must be included. 
Definition at line 51 of file showable_macros.h.