The music_details class allows the specification of music via a regular expression to the music class. Although functions are provided to return the score, they are mainly intended for use by the music class itself. It should be noted that the music class takes a copy of the music_details object rather than a pointer.
Creates the object and sets the initial expression to e and the score to use to s. By default the score is 1. If the specified expression is invalid, the class will throw an
music_details::invalid_regex
exception (if they are enabled) or reset the expression to "".
Sets the expression to e and the score to s. It will also reset the counts of rows matched.
Returns the maximum number of possible matches (in one true extent) for the currently specified expression. bells must be specified as the
music_details
class has no knowledge of this under normal circumstances.
Returns the maximum possible score (based on one true extent) for the currently specified expression. bells must be specified as the
music_details
class has no knowledge of this under normal circumstances.
Returns the number of rows matched based on the stroke that is passed in. If eBoth is passed, then the result will be the handstroke count plus the backstroke count.