OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
ArgumentExtractor.h
Go to the documentation of this file.
1#ifndef MSLANG_ARGUMENTEXTRACTOR_H
2#define MSLANG_ARGUMENTEXTRACTOR_H
3
4#include <string>
5#include <vector>
6#include <utility>
7
8namespace mslang {
10 ArgumentExtractor(const std::string &input);
11
12 std::string get(unsigned int i) const;
13 unsigned int getLengthConsumed() const;
14 unsigned int getNumArguments() const;
15
16 std::vector<std::pair<unsigned int, unsigned int>> argumentBoundaries_m;
17 std::string inputArguments_m;
18 unsigned int lengthConsumed_m;
19 };
20}
21#endif
std::vector< std::pair< unsigned int, unsigned int > > argumentBoundaries_m
ArgumentExtractor(const std::string &input)
unsigned int getNumArguments() const
std::string get(unsigned int i) const
unsigned int getLengthConsumed() const