ABY Framework  1.0
Arithmetic Bool Yao Framework
 All Classes Files Functions Variables Enumerations Enumerator Macros
Classes | Enumerations | Functions
parse_options.h File Reference

Parse Options Implementation. More...

#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <stdint.h>
#include <vector>
Include dependency graph for parse_options.h:
This graph shows which files directly or indirectly include this file:

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")
 

Detailed Description

Parse Options Implementation.

Author
micha.nosp@m.el.z.nosp@m.ohner.nosp@m.@ec-.nosp@m.sprid.nosp@m.e.de

Function Documentation

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

Parameters
strthe string to tokenize
tokensthe result vector of wire id