1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_Expression.cpp
5 // Author: Sergey POKHODENKO
7 #include "ModelAPI_Expression.h"
9 ModelAPI_Expression::ModelAPI_Expression()
14 ModelAPI_Expression::~ModelAPI_Expression()
19 bool ModelAPI_Expression::isInitialized()
21 return myIsInitialized;
24 void ModelAPI_Expression::setInitialized()
26 myIsInitialized = true;
29 ModelAPI_ExpressionDouble::ModelAPI_ExpressionDouble()
34 ModelAPI_ExpressionInteger::ModelAPI_ExpressionInteger()
39 bool ModelAPI_Expression::isVariable(const std::string& theString)
41 if (theString.empty())
43 std::string::const_iterator it = theString.begin();
44 if (!(isalpha(*it) || (*it) == '_') || it == theString.end())
47 for ( ; it != theString.end(); ++it ) {
48 if(!(isalnum(*it) || (*it) == '_')) {