|
Features
|
Classes | |
| struct | systems_difference_t |
| struct | system_feature_difference_t |
| class | combination_t |
| class | feature_location_t |
| class | feature_location_isolation_t |
| class | feature_location_differences_t |
| class | feature_location_calculation_t |
Typedefs | |
| using | feature_id_t = unsigned short int |
| using | model_id_t = unsigned short int |
| using | maxnat_t = uintmax_t |
| using | feature_expression_t = std::vector< std::pair< std::string, maxnat_t > > |
| using | expression_feature_t = std::map< maxnat_t, std::string > |
| using | feature_names_t = std::vector< std::string > |
| using | system_t = feature_names_t |
| using | systems_t = std::vector< system_t > |
| using | features_isolation_t = std::map< std::string, systems_difference_t > |
| using | differences_t = std::vector< system_feature_difference_t > |
This namespace contains all types and functions that are related to feature location.
| using features::expression_feature_t = typedef std::map<maxnat_t,std::string> |
Type alias for mapping a set difference ID to a feature name.
| using features::feature_expression_t = typedef std::vector<std::pair<std::string,maxnat_t> > |
Type alias for collection of feature names and associated set difference IDs.
| using features::feature_id_t = typedef unsigned short int |
Type alias for a feature ID.
| using features::feature_names_t = typedef std::vector<std::string> |
Type alias for a collection of feature names.
| using features::maxnat_t = typedef uintmax_t |
Type alias for largest natural number type.
| using features::model_id_t = typedef unsigned short int |
Type alias for a model ID.
| using features::system_t = typedef feature_names_t |
Type alias for the feature names that define a system.
| using features::systems_t = typedef std::vector<system_t> |
Type alias for a collection of systems that are defined by their feature names.
| std::string features::and_feature_name | ( | const std::vector< feature_id_t > & | ids | ) |
Returns name for and-feature of feature ids.

| maxnat_t features::and_feature_value | ( | const std::vector< feature_id_t > & | ids, |
| const feature_expression_t & | idf | ||
| ) |
Returns value of and-feature for ids and feature expression idf.

| std::string features::and_not_feature_name | ( | const std::vector< feature_id_t > & | ids | ) |
Returns name for and-not-feature of feature ids.

| maxnat_t features::and_not_feature_value | ( | const std::vector< feature_id_t > & | ids, |
| const feature_expression_t & | nf, | ||
| const maxnat_t & | bitmask | ||
| ) |
Returns value of and-not-feature for ids and feature expression nf.

Returns number of combinations of n items and sample size k.


| std::vector<T>& features::concat | ( | std::vector< T > & | destination, |
| const std::vector< T > & | v | ||
| ) |
Function template that returns vector destination after appending vector v.

| bool features::contains | ( | const std::vector< T > & | v, |
| const T & | e | ||
| ) |
Function template that returns true if vector v contains element e, and false otherwise.

| std::string features::difference_name | ( | feature_id_t | n | ) |
Returns name for system set difference expression with id n.

Returns factorial of n.


| bool features::hasA | ( | model_id_t | M | ) |
Returns true if model M has and-features and false otherwise.

| bool features::hasAN | ( | model_id_t | M | ) |
Returns true if model M has and-not-features and false otherwise.

| bool features::hasN | ( | model_id_t | M | ) |
Returns true if model M has not-features and false otherwise.

| bool features::hasO | ( | model_id_t | M | ) |
Returns true if model M has or-features and false otherwise.

| bool features::hasON | ( | model_id_t | M | ) |
Returns true if model M has or-not-features and false otherwise.

| std::string features::independent_feature_name | ( | feature_id_t | i | ) |
Returns name for independent feature with id i.

| std::vector<feature_id_t> features::negate | ( | const std::vector< feature_id_t > & | v, |
| feature_id_t | n | ||
| ) |
Function template that returns a vector that results from negating vector v with respect to the range [1,n]. For example: { 1 }, 3 --> { 2, 3 }


| std::string features::not_feature_name | ( | feature_id_t | i | ) |
Returns name for not-feature with id i.

| std::string features::or_feature_name | ( | const std::vector< feature_id_t > & | ids | ) |
Returns name for or-feature of feature ids.

| maxnat_t features::or_feature_value | ( | const std::vector< feature_id_t > & | ids, |
| const feature_expression_t & | idf | ||
| ) |
Returns value of or-feature for ids and feature expression idf.

| std::string features::or_not_feature_name | ( | const std::vector< feature_id_t > & | ids | ) |
Returns name for or-not-feature of feature ids.

| maxnat_t features::or_not_feature_value | ( | const std::vector< feature_id_t > & | ids, |
| const feature_expression_t & | nf | ||
| ) |
Returns value of or-not-feature for ids and feature expression nf.

Returns base to the power of exponent.

Returns 2 to the power of exponent.


Returns product of numbers in the range [from,to].

Returns sum of combinations of n items in the sample range [k,n].

| std::string features::system_name | ( | feature_id_t | n | ) |
Returns name for system with id n.

| std::vector<feature_id_t> features::unsigned2vector | ( | maxnat_t | u | ) |
Returns vector that corresponds to the bit pattern of u.
