Commit ef0ebd0c authored by Ugo Jardonnet's avatar Ugo Jardonnet
Browse files

Remove a std::size_t.

	In my opinion nelements must not return size_t.
	* milena/mln/core/site_set/p_image.hh,
	* milena/mln/core/image/image3d.hh: Here.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008@2767 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent a9df7f6c
2008-11-03 Ugo Jardonnet <ugo.jardonnet@lrde.epita.fr>
Remove a std::size_t.
In my opinion nelements must not return size_t.
* milena/mln/core/site_set/p_image.hh,
* milena/mln/core/image/image3d.hh: Here.
2008-10-31 Thierry Geraud <thierry.geraud@lrde.epita.fr>
Clean-up from_to, add some new overloads, and fix (c).
......
......@@ -184,7 +184,7 @@ namespace mln
unsigned border() const;
/// Give the number of cells (points including border ones).
std::size_t nelements() const;
unsigned nelements() const;
/// Read-only access to the image value located at point \p p.
const T& operator()(const point3d& p) const;
......@@ -426,7 +426,7 @@ namespace mln
template <typename T>
inline
std::size_t
unsigned
image3d<T>::nelements() const
{
mln_precondition(this->has_data());
......
......@@ -115,7 +115,7 @@ namespace mln
bool is_valid() const;
/// Give the number of sites.
std::size_t nsites() const;
unsigned nsites() const;
/// Insertion element associated type.
......@@ -149,7 +149,7 @@ namespace mln
private:
I ima_;
std::size_t nsites_;
unsigned nsites_;
};
......@@ -198,7 +198,7 @@ namespace mln
template <typename I>
inline
std::size_t
unsigned
p_image<I>::nsites() const
{
return nsites_;
......
Supports Markdown
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