From da59c4a1215be359ed28fd9d99a8084e206e74a1 Mon Sep 17 00:00:00 2001 From: Xpol Wan Date: Tue, 14 Jun 2016 17:24:24 +0800 Subject: [PATCH] Remove doc comments in index_types.cpp. They are duplicated with comments in index_types.hpp. --- source/cell/index_types.cpp | 126 ------------------------------------ 1 file changed, 126 deletions(-) diff --git a/source/cell/index_types.cpp b/source/cell/index_types.cpp index 4b789a51..28931c19 100644 --- a/source/cell/index_types.cpp +++ b/source/cell/index_types.cpp @@ -92,164 +92,68 @@ std::string column_t::column_string_from_index(column_t::index_t column_index) } -/// -/// Default column_t is the first (left-most) column. -/// column_t::column_t() : index(1) {} -/// -/// Construct a column from a number. -/// column_t::column_t(index_t column_index) : index(column_index) {} -/// -/// Construct a column from a string. -/// column_t::column_t(const std::string &column_string) : index(column_index_from_string(column_string)) {} -/// -/// Construct a column from a string. -/// column_t::column_t(const char *column_string) : column_t(std::string(column_string)) {} -/// -/// Copy constructor -/// column_t::column_t(const column_t &other) : column_t(other.index) {} -/// -/// Move constructor -/// column_t::column_t(column_t &&other) { swap(*this, other); } -/// -/// Return a string representation of this column index. -/// std::string column_t::column_string() const { return column_string_from_index(index); } -/// -/// Set this column to be the same as rhs's and return reference to self. -/// column_t &column_t::operator=(column_t rhs) { swap(*this, rhs); return *this; } -/// -/// Set this column to be equal to rhs and return reference to self. -/// column_t &column_t::operator=(const std::string &rhs) { return *this = column_t(rhs); } -/// -/// Set this column to be equal to rhs and return reference to self. -/// column_t &column_t::operator=(const char *rhs) { return *this = column_t(rhs); } -/// -/// Return true if this column refers to the same column as other. -/// bool column_t::operator==(const column_t &other) const { return index == other.index; } -/// -/// Return true if this column doesn't refer to the same column as other. -/// bool column_t::operator!=(const column_t &other) const { return !(*this == other); } -/// -/// Return true if this column refers to the same column as other. -/// bool column_t::operator==(int other) const { return *this == column_t(other); } -/// -/// Return true if this column refers to the same column as other. -/// bool column_t::operator==(index_t other) const { return *this == column_t(other); } -/// -/// Return true if this column refers to the same column as other. -/// bool column_t::operator==(const std::string &other) const { return *this == column_t(other); } -/// -/// Return true if this column refers to the same column as other. -/// bool column_t::operator==(const char *other) const { return *this == column_t(other); } -/// -/// Return true if this column doesn't refer to the same column as other. -/// bool column_t::operator!=(int other) const { return !(*this == other); } -/// -/// Return true if this column doesn't refer to the same column as other. -/// bool column_t::operator!=(index_t other) const { return !(*this == other); } -/// -/// Return true if this column doesn't refer to the same column as other. -/// bool column_t::operator!=(const std::string &other) const { return !(*this == other); } -/// -/// Return true if this column doesn't refer to the same column as other. -/// bool column_t::operator!=(const char *other) const { return !(*this == other); } -/// -/// Return true if other is to the right of this column. -/// bool column_t::operator>(const column_t &other) const { return index > other.index; } -/// -/// Return true if other is to the right of or equal to this column. -/// bool column_t::operator>=(const column_t &other) const { return index >= other.index; } -/// -/// Return true if other is to the left of this column. -/// bool column_t::operator<(const column_t &other) const { return index < other.index; } -/// -/// Return true if other is to the left of or equal to this column. -/// bool column_t::operator<=(const column_t &other) const { return index <= other.index; } -/// -/// Return true if other is to the right of this column. -/// bool column_t::operator>(const column_t::index_t &other) const { return index > other; } -/// -/// Return true if other is to the right of or equal to this column. -/// bool column_t::operator>=(const column_t::index_t &other) const { return index >= other; } -/// -/// Return true if other is to the left of this column. -/// bool column_t::operator<(const column_t::index_t &other) const { return index < other; } -/// -/// Return true if other is to the left of or equal to this column. -/// bool column_t::operator<=(const column_t::index_t &other) const { return index <= other; } -/// -/// Pre-increment this column, making it point to the column one to the right. -/// column_t &column_t::operator++() { index++; return *this; } -/// -/// Pre-deccrement this column, making it point to the column one to the left. -/// column_t &column_t::operator--() { index--; return *this; } -/// -/// Post-increment this column, making it point to the column one to the right and returning the old column. -/// column_t column_t::operator++(int) { column_t copy(index); ++(*this); return copy; } -/// -/// Post-decrement this column, making it point to the column one to the left and returning the old column. -/// column_t column_t::operator--(int) { column_t copy(index); --(*this); return copy; } column_t operator+(column_t lhs, const column_t& rhs) { lhs += rhs; return lhs; } @@ -262,54 +166,24 @@ column_t operator/(column_t lhs, const column_t& rhs) { lhs /= rhs; return lhs; column_t operator%(column_t lhs, const column_t& rhs) { lhs %= rhs; return lhs; } -/// -/// Add rhs to this column and return a reference to this column. -/// column_t &column_t::operator+=(const column_t &rhs) { return *this = (*this + rhs); } -/// -/// Subtrac rhs from this column and return a reference to this column. -/// column_t &column_t::operator-=(const column_t &rhs) { return *this = (*this - rhs); } -/// -/// Multiply this column by rhs and return a reference to this column. -/// column_t &column_t::operator*=(const column_t &rhs) { return *this = (*this * rhs); } -/// -/// Divide this column by rhs and return a reference to this column. -/// column_t &column_t::operator/=(const column_t &rhs) { return *this = (*this / rhs); } -/// -/// Mod this column by rhs and return a reference to this column. -/// column_t &column_t::operator%=(const column_t &rhs) { return *this = (*this % rhs); } -/// -/// Return true if other is to the right of this column. -/// bool operator>(const column_t::index_t &left, const column_t &right) { return column_t(left) > right; } -/// -/// Return true if other is to the right of or equal to this column. -/// bool operator>=(const column_t::index_t &left, const column_t &right) { return column_t(left) >= right; } -/// -/// Return true if other is to the left of this column. -/// bool operator<(const column_t::index_t &left, const column_t &right) { return column_t(left) < right; } -/// -/// Return true if other is to the left of or equal to this column. -/// bool operator<=(const column_t::index_t &left, const column_t &right) { return column_t(left) <= right; } -/// -/// Swap the columns that left and right refer to. -/// void swap(column_t &left, column_t &right) { using std::swap;