tipc
A TIP to LLVM compiler
ConstraintCollector.h
Go to the documentation of this file.
1 #pragma once
2 #include "ConstraintHandler.h"
3 #include "TypeConstraint.h"
4 
5 #include <vector>
6 
22 public:
23  void handle(std::shared_ptr<TipType> t1,
24  std::shared_ptr<TipType> t2) override;
25  std::vector<TypeConstraint> &getCollectedConstraints();
26 
27 private:
28  std::vector<TypeConstraint> collected;
29 };
A constraint handler to collect constraints.
Definition: ConstraintCollector.h:21
void handle(std::shared_ptr< TipType > t1, std::shared_ptr< TipType > t2) override
Definition: ConstraintCollector.cpp:7
std::vector< TypeConstraint > & getCollectedConstraints()
Definition: ConstraintCollector.cpp:13
Abstract class for handling type constraints as they are generated.
Definition: ConstraintHandler.h:11