IMP  2.2.0
The Integrative Modeling Platform
base/showable_macros.h File Reference

Various general useful macros for IMP. More...

#include <IMP/base/base_config.h>
#include "Showable.h"
#include "warning_macros.h"
+ Include dependency graph for base/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 suffixs 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...
 

Detailed Description

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file base/showable_macros.h.

Macro Definition Documentation

#define IMP_SHOWABLE (   Name)    void show(std::ostream &out = std::cout) const

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.

See also IMP_SHOWABLE_INLINE().

Do not use with IMP::Object objects as they have their own show mechanism.

Definition at line 40 of file base/showable_macros.h.

#define IMP_SHOWABLE_INLINE (   Name,
  how_to_show 
)    void show(std::ostream &out = std::cout) const

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.

See also IMP_SHOWABLE_INLINE()

Definition at line 52 of file base/showable_macros.h.