IMP  2.2.1
The Integrative Modeling Platform
base/value_macros.h File Reference

Various general useful macros for IMP. More...

#include <IMP/base/base_config.h>
#include "Vector.h"
+ Include dependency graph for base/value_macros.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IMP_BUILTIN_VALUES(Name, PluralName)
 
#define IMP_VALUES(Name, PluralName)   /** Pass or store a set of Name. */ typedef IMP::base::Vector<Name> PluralName
 Define the type for storing sets of values. More...
 

Detailed Description

Copyright 2007-2014 IMP Inventors. All rights reserved.

Definition in file base/value_macros.h.

Macro Definition Documentation

#define IMP_BUILTIN_VALUES (   Name,
  PluralName 
)
Value:
IMP_VALUES(Name, PluralName); \
IMP_VALUES(PluralName, PluralName##s)
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.

To be used with native types.

Definition at line 28 of file base/value_macros.h.

#define IMP_VALUES (   Name,
  PluralName 
)    /** Pass or store a set of Name. */ typedef IMP::base::Vector<Name> PluralName

The macro defines the type Names. PluralName should be Names unless the English spelling is different. This macro also defines the output operator for the type.

See Value and Objects for a description of what it means to be an object vs a value in IMP.

Definition at line 24 of file base/value_macros.h.