Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change Algorithm::GetBankIndex to a public method #299

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/iguana/algorithms/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ namespace iguana {
/// @param name the directory name
void SetConfigDirectory(std::string const& name);

protected: // methods

/// Parse YAML configuration files. Sets `m_yaml_config`.
void ParseYAMLConfig();

/// Get the index of a bank in a `hipo::banklist`; throws an exception if the bank is not found
/// @param banks the list of banks this algorithm will use
/// @param bank_name the name of the bank
/// returns the `hipo::banklist` index of the bank
hipo::banklist::size_type GetBankIndex(hipo::banklist& banks, std::string const& bank_name) const noexcept(false);

protected: // methods

/// Parse YAML configuration files. Sets `m_yaml_config`.
void ParseYAMLConfig();

/// Get the reference to a bank from a `hipo::banklist`; optionally checks if the bank name matches the expectation
/// @param banks the `hipo::banklist` from which to get the specified bank
/// @param idx the index of `banks` of the specified bank
Expand Down
Loading