IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::Flag< T, ENABLED > Class Template Reference

#include <IMP/Flag.h>

Detailed Description

template<class T, bool ENABLED = true>
class IMP::Flag< T, ENABLED >

Use this to add a flag to the program. It is convertible to the passed type and so can be used as the value itself.

The ENABLED template argument is to allow the preprocessor to turn it on or off (eg pass IMP_HAS_XXX).

The Flag can be used like an instance of type T.

Examples
flags.cpp.

Definition at line 36 of file Flag.h.

Public Member Functions

 Flag (std::string name, std::string description, T default_value=T())
Flag< T, ENABLED > & operator= (const T &o)

Constructor & Destructor Documentation

◆ Flag()

template<class T, bool ENABLED = true>
IMP::Flag< T, ENABLED >::Flag ( std::string name,
std::string description,
T default_value = T() )

Definition at line 38 of file Flag.h.

Member Function Documentation

◆ operator=()

template<class T, bool ENABLED = true>
Flag< T, ENABLED > & IMP::Flag< T, ENABLED >::operator= ( const T & o)

Definition at line 41 of file Flag.h.


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