Browse Source

Changed getter for child nodes to reference style

tempestpy_adaptions
Lanchid 12 years ago
parent
commit
6b4945e55c
  1. 2
      src/formula/AP.h
  2. 8
      src/formula/And.h
  3. 8
      src/formula/BoundedUntil.h
  4. 4
      src/formula/Next.h
  5. 4
      src/formula/Not.h
  6. 8
      src/formula/Or.h
  7. 8
      src/formula/ProbabilisticOperator.h
  8. 8
      src/formula/Until.h

2
src/formula/AP.h

@ -59,7 +59,7 @@ public:
/*! /*!
* @returns the name of the atomic proposition * @returns the name of the atomic proposition
*/ */
std::string getAP() {
const std::string& getAP() {
return ap; return ap;
} }

8
src/formula/And.h

@ -91,15 +91,15 @@ public:
/*! /*!
* @returns a pointer to the left child node * @returns a pointer to the left child node
*/ */
PCTLStateFormula<T>* getLeft() {
return left;
PCTLStateFormula<T>& getLeft() {
return *left;
} }
/*! /*!
* @returns a pointer to the right child node * @returns a pointer to the right child node
*/ */
PCTLStateFormula<T>* getRight() {
return right;
PCTLStateFormula<T>& getRight() {
return *right;
} }
/*! /*!

8
src/formula/BoundedUntil.h

@ -97,15 +97,15 @@ public:
/*! /*!
* @returns a pointer to the left child node * @returns a pointer to the left child node
*/ */
PCTLStateFormula<T>* getLeft() {
return left;
PCTLStateFormula<T>& getLeft() {
return *left;
} }
/*! /*!
* @returns a pointer to the right child node * @returns a pointer to the right child node
*/ */
PCTLStateFormula<T>* getRight() {
return right;
PCTLStateFormula<T>& getRight() {
return *right;
} }
/*! /*!

4
src/formula/Next.h

@ -65,8 +65,8 @@ public:
/*! /*!
* @returns the child node * @returns the child node
*/ */
PCTLStateFormula<T>* getChild() {
return child;
PCTLStateFormula<T>& getChild() {
return *child;
} }
/*! /*!

4
src/formula/Not.h

@ -60,8 +60,8 @@ public:
/*! /*!
* @returns The child node * @returns The child node
*/ */
PCTLStateFormula<T>* getChild() {
return child;
PCTLStateFormula<T>& getChild() {
return *child;
} }
/*! /*!

8
src/formula/Or.h

@ -90,15 +90,15 @@ public:
/*! /*!
* @returns a pointer to the left child node * @returns a pointer to the left child node
*/ */
PCTLStateFormula<T>* getLeft() {
return left;
PCTLStateFormula<T>& getLeft() {
return *left;
} }
/*! /*!
* @returns a pointer to the right child node * @returns a pointer to the right child node
*/ */
PCTLStateFormula<T>* getRight() {
return right;
PCTLStateFormula<T>& getRight() {
return *right;
} }
/*! /*!

8
src/formula/ProbabilisticOperator.h

@ -73,21 +73,21 @@ public:
/*! /*!
* @returns the child node (representation of a PCTL path formula) * @returns the child node (representation of a PCTL path formula)
*/ */
PCTLPathFormula<T>* getPathFormula () {
return pathFormula;
PCTLPathFormula<T>& getPathFormula () {
return *pathFormula;
} }
/*! /*!
* @returns the lower bound for the probability * @returns the lower bound for the probability
*/ */
T getLowerBound() {
const T& getLowerBound() {
return lower; return lower;
} }
/*! /*!
* @returns the upper bound for the probability * @returns the upper bound for the probability
*/ */
T getUpperBound() {
const T& getUpperBound() {
return upper; return upper;
} }

8
src/formula/Until.h

@ -90,15 +90,15 @@ public:
/*! /*!
* @returns a pointer to the left child node * @returns a pointer to the left child node
*/ */
PCTLStateFormula<T>* getLeft() {
return left;
PCTLStateFormula<T>& getLeft() {
return *left;
} }
/*! /*!
* @returns a pointer to the right child node * @returns a pointer to the right child node
*/ */
PCTLStateFormula<T>* getRight() {
return right;
PCTLStateFormula<T>& getRight() {
return *right;
} }
/*! /*!

Loading…
Cancel
Save