Unverified Commit 45126153 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Switch aliases to classes (#550)

parent 333e2dc4
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
namespace ngraph namespace ngraph
{ {
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief A set of axes. /// \brief A set of axes.
class AxisSet : public std::set<size_t> class AxisSet : public std::set<size_t>
{ {
...@@ -54,8 +53,4 @@ namespace ngraph ...@@ -54,8 +53,4 @@ namespace ngraph
return *this; return *this;
} }
}; };
#else
// Deprecated definition
using AxisSet = std::set<size_t>;
#endif
} }
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
namespace ngraph namespace ngraph
{ {
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief A vector of axes. /// \brief A vector of axes.
class AxisVector : public std::vector<size_t> class AxisVector : public std::vector<size_t>
{ {
...@@ -64,8 +63,4 @@ namespace ngraph ...@@ -64,8 +63,4 @@ namespace ngraph
return *this; return *this;
} }
}; };
#else
// Deprecated definition
using AxisVector = std::vector<size_t>;
#endif
} }
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
namespace ngraph namespace ngraph
{ {
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief Coordinates for a tensor element /// \brief Coordinates for a tensor element
class Coordinate : public std::vector<size_t> class Coordinate : public std::vector<size_t>
{ {
...@@ -73,10 +72,6 @@ namespace ngraph ...@@ -73,10 +72,6 @@ namespace ngraph
return *this; return *this;
} }
}; };
#else
// Deprecated definition
using Coordinate = std::vector<size_t>;
#endif
// Removes some values from a vector of axis values // Removes some values from a vector of axis values
template <typename AXIS_VALUES> template <typename AXIS_VALUES>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
namespace ngraph namespace ngraph
{ {
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief A difference (signed) of tensor element coordinates. /// \brief A difference (signed) of tensor element coordinates.
class CoordinateDiff : public std::vector<std::ptrdiff_t> class CoordinateDiff : public std::vector<std::ptrdiff_t>
{ {
...@@ -64,8 +63,4 @@ namespace ngraph ...@@ -64,8 +63,4 @@ namespace ngraph
return *this; return *this;
} }
}; };
#else
// Deprecated definition
using CoordinateDiff = std::vector<std::ptrdiff_t>;
#endif
} }
...@@ -23,8 +23,6 @@ namespace ngraph ...@@ -23,8 +23,6 @@ namespace ngraph
{ {
class Node; class Node;
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief Zero or more nodes. /// \brief Zero or more nodes.
class NodeVector : public std::vector<std::shared_ptr<Node>> class NodeVector : public std::vector<std::shared_ptr<Node>>
{ {
...@@ -46,10 +44,4 @@ namespace ngraph ...@@ -46,10 +44,4 @@ namespace ngraph
NodeVector() {} NodeVector() {}
}; };
#else
// Deprecated definitions
using NodeVector = std::vector<std::shared_ptr<Node>>;
using Nodes = NodeVector;
#endif
} }
...@@ -24,8 +24,6 @@ namespace ngraph ...@@ -24,8 +24,6 @@ namespace ngraph
{ {
class Parameter; class Parameter;
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief Zero or more nodes. /// \brief Zero or more nodes.
class ParameterVector : public std::vector<std::shared_ptr<op::Parameter>> class ParameterVector : public std::vector<std::shared_ptr<op::Parameter>>
{ {
...@@ -47,11 +45,5 @@ namespace ngraph ...@@ -47,11 +45,5 @@ namespace ngraph
ParameterVector() {} ParameterVector() {}
}; };
#else
// Deprecated definitions
using ParameterVector = std::vector<std::shared_ptr<op::Parameter>>;
using Parameters = ParameterVector;
#endif
} }
} }
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
namespace ngraph namespace ngraph
{ {
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief Shape for a tensor. /// \brief Shape for a tensor.
class Shape : public std::vector<size_t> class Shape : public std::vector<size_t>
{ {
...@@ -68,10 +67,6 @@ namespace ngraph ...@@ -68,10 +67,6 @@ namespace ngraph
return *this; return *this;
} }
}; };
#else
// Deprecated definition
using Shape = std::vector<size_t>;
#endif
/// Number of elements in spanned by a shape /// Number of elements in spanned by a shape
size_t shape_size(const Shape& shape); size_t shape_size(const Shape& shape);
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
namespace ngraph namespace ngraph
{ {
#ifdef NO_GLOBAL_TYPE_ALIASES
/// \brief Strides for a tensor. /// \brief Strides for a tensor.
class Strides : public std::vector<size_t> class Strides : public std::vector<size_t>
{ {
...@@ -63,8 +62,4 @@ namespace ngraph ...@@ -63,8 +62,4 @@ namespace ngraph
return *this; return *this;
} }
}; };
#else
// Deprecated definition
using Strides = std::vector<size_t>;
#endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment