ct_common
1.0.1
Common library for combinatorial testing
|
00001 //===----- ct_common/common/seed_constraint.cpp -----------------*- C++ -*-===// 00002 // 00003 // The ct_common Library 00004 // 00005 // This file is distributed under the MIT license. See LICENSE for details. 00006 // 00007 //===----------------------------------------------------------------------===// 00008 // 00009 // This file contains the function definitions of class Seed_Constraint 00010 // 00011 //===----------------------------------------------------------------------===// 00012 00013 #include <ct_common/common/seed_constraint.h> 00014 00015 using namespace ct::common; 00016 00017 Seed_Constraint::Seed_Constraint(void) 00018 : constraint_() { 00019 } 00020 00021 Seed_Constraint::Seed_Constraint(const Seed_Constraint &from) 00022 : constraint_(from.constraint_) { 00023 } 00024 00025 Seed_Constraint::~Seed_Constraint(void) { 00026 } 00027 00028 Seed_Constraint &Seed_Constraint::operator =(const ct::common::Seed_Constraint &right) { 00029 this->constraint_ = right.constraint_; 00030 return *this; 00031 } 00032 00033 EvalType_Bool Seed_Constraint::IsMatch(const Assignment &assignment, const std::vector<boost::shared_ptr<ParamSpec> > ¶mspecs) { 00034 return this->constraint_->Evaluate(paramspecs, assignment); 00035 }