Class ComparisonResult

Class Documentation

class ComparisonResult

Public Types

using mask = std::size_t

Public Functions

ComparisonResult(const std::vector<std::size_t> db_indices, const std::map<std::string, mask> reachability_mask_map)
std::vector<std::string> getReachability(const std::vector<std::size_t> &dbs) const

Returns the IDs of the reach study targets that are reachable in all input reach studies.

std::vector<std::size_t> getReachability(const std::string &target) const

Returns the names of the studies in which the input reach study target was reachable.

std::string getReachabilityDescriptor(const std::string &target) const

Returns a single string descriptor of the databases in which the input reach study target was reachable.

Protected Attributes

const std::vector<std::size_t> db_indices_

List of reach study database names.

const std::map<std::string, mask> reachability_mask_map_

Map of reach study target ID names to a bit mask corresponding to the indices of the reach studies in which the target was reachable.

const std::map<mask, std::string> mask_names_

Map of reachability bit masks to descriptive string names (e.g. 5 = 101 -> db0_AND_db1)