9 #ifndef RMF_DECORATORS_ALTERNATIVES_H
10 #define RMF_DECORATORS_ALTERNATIVES_H
12 #include <RMF/config.h>
33 :
Decorator(nh), types_key_(types_key), roots_key_(roots_key) {}
40 double resolution)
const;
46 return get_representation_type(
id.get_id());
55 static std::string get_decorator_type_name() {
return "AlternativesConst"; }
68 static std::string get_decorator_type_name() {
return "Alternatives"; }
90 bool get_is(
NodeConstHandle nh)
const {
return nh.get_has_value(types_key_); }
92 return nh.get_has_value(types_key_);
100 AlternativesConstFactory(
FileHandle fh) : AlternativesFactory(fh) {}
113 double accuracy = 0);
Mostly empty base classes for decorators and factories.
A handle for a particular node in the hierarchy.
double get_resolution(NodeConstHandle root)
The base class for decorators.
Enum< RepresentationTypeTag > RepresentationType
A handle for a particular node in a read-only hierarchy.
const RepresentationType PARTICLE
A handle for a read-only RMF file.
Declaration of RMF::Enum.
A handle for an RMF file.
The base class for Factories.
Floats get_resolutions(NodeConstHandle root, RepresentationType type=PARTICLE, double accuracy=0)
Declaration for RMF::FileHandle.
Declaration of NodeHandle.
A strong enum with an associated string name for each value.
std::vector< NodeConstHandle > NodeConstHandles
Pass a list of them.
std::vector< Float > Floats
Various general useful macros for IMP.
std::vector< NodeID > NodeIDs