Browse Source

experimented with custom style checker, fixed a few minor issues

tempestpy_adaptions
gereon 12 years ago
parent
commit
facec2b040
  1. 8
      src/storage/BitVector.h
  2. 11
      src/storage/SparseMatrix.h
  3. 4
      src/utility/Settings.h

8
src/storage/BitVector.h

@ -69,13 +69,17 @@ public:
* Returns the index of the current bit that is set to true.
* @return The index of the current bit that is set to true.
*/
uint_fast64_t operator*() const { return currentIndex; }
uint_fast64_t operator*() const {
return currentIndex;
}
/*!
* Compares the iterator with another iterator to determine whether
* the iteration process has reached the end.
*/
bool operator!=(const constIndexIterator& rhs) const { return currentIndex != rhs.currentIndex; }
bool operator!=(const constIndexIterator& rhs) const {
return currentIndex != rhs.currentIndex;
}
private:
/*! The bit vector to search for set bits. */

11
src/storage/SparseMatrix.h

@ -25,10 +25,13 @@
extern log4cplus::Logger logger;
// Forward declaration for adapter classes.
namespace storm { namespace adapters{ class GmmxxAdapter; } }
namespace storm {
namespace adapters{
class GmmxxAdapter;
}
}
namespace storm {
namespace storage {
/*!
@ -91,7 +94,8 @@ public:
* Constructs a square sparse matrix object with the given number rows
* @param size The number of rows and cols in the matrix
*/
SparseMatrix(uint_fast64_t size) : rowCount(size), colCount(size), nonZeroEntryCount(0),
SparseMatrix(uint_fast64_t size)
: rowCount(size), colCount(size), nonZeroEntryCount(0),
internalStatus(MatrixStatus::UnInitialized), currentSize(0), lastRow(0) { }
//! Copy Constructor
@ -318,7 +322,6 @@ public:
throw storm::exceptions::OutOfRangeException("Trying to add a value at illegal position.");
}
// If we switched to another row, we have to adjust the missing
// entries in the row_indications array.
if (row != lastRow) {

4
src/utility/Settings.h

@ -57,14 +57,14 @@ namespace settings {
}
/*!
* @brief Get value of string option
* @brief Get value of string option.
*/
inline const std::string& getString(std::string const & name) const {
return this->get<std::string>(name);
}
/*!
* @brief Check if an option is set
* @brief Check if an option is set.
*/
inline const bool isSet(std::string const & name) const {
return this->vm.count(name) > 0;

Loading…
Cancel
Save