|
ABY Framework
1.0
Arithmetic Bool Yao Framework
|
Parse Options Implementation. More...
#include <string>#include <stdlib.h>#include <stdio.h>#include <iostream>#include <stdint.h>#include <vector>

Go to the source code of this file.
Classes | |
| struct | parsing_ctx |
Enumerations | |
| enum | etype { T_NUM, T_STR, T_FLAG, T_DOUBLE } |
Functions | |
| int32_t | parse_options (int32_t *argcp, char ***argvp, parsing_ctx *options, uint32_t nops) |
| void | print_usage (std::string progname, parsing_ctx *options, uint32_t nops) |
| void | tokenize (const std::string &str, std::vector< uint32_t > &tokens, const std::string &delimiters="| \t") |
Parse Options Implementation.
| void tokenize | ( | const std::string & | str, |
| std::vector< uint32_t > & | tokens, | ||
| const std::string & | delimiters | ||
| ) |
takes a string in the Format "i|i|i|..." (integers separated by '|') and returns a vector of all integers
| str | the string to tokenize |
| tokens | the result vector of wire id |
1.8.8