We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BALL offers a class NamedProperty for assigning properties to objects (atoms, bonds, ...)
The following types are supported and can be accessed with
#include <BALL/CONCEPT/property.h> Atom* atom; float my_fancy_property = 4.2; // assign your property atom-> setProperty("myProperty", my_fancy_property) // query your property if (atom->hasProperty("myProperty")) { cout << atom->getProperty("myProperty").getFloat()) << endl; }
#!python from BALL import * a = Atom() # assign your property a.setProperty("myProperty", 3.25) # query your property if (a.hasProperty("myProperty")): print a.getProperty("myProperty").getFloat()