Commit 7239be49 authored by Davis King's avatar Davis King

Added comments to clarify when exceptions are thrown since I just changed

the definition of a missing throws block in the library introduction.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402666
parent 4cfc9457
...@@ -47,6 +47,9 @@ namespace dlib ...@@ -47,6 +47,9 @@ namespace dlib
associated with an integer value. associated with an integer value.
The items are numbered from 0 though size() - 1 and The items are numbered from 0 though size() - 1 and
the operator[] functions run in constant time the operator[] functions run in constant time
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -46,6 +46,9 @@ namespace dlib ...@@ -46,6 +46,9 @@ namespace dlib
WHAT THIS OBJECT REPRESENTS WHAT THIS OBJECT REPRESENTS
This object represents a 2-Dimensional array of objects of This object represents a 2-Dimensional array of objects of
type T. type T.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
......
...@@ -64,6 +64,9 @@ namespace dlib ...@@ -64,6 +64,9 @@ namespace dlib
kind of binary search tree. It maps objects of type domain to objects kind of binary search tree. It maps objects of type domain to objects
of type range. of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTE: NOTE:
definition of equivalent: definition of equivalent:
a is equivalent to b if a is equivalent to b if
......
...@@ -46,6 +46,9 @@ namespace dlib ...@@ -46,6 +46,9 @@ namespace dlib
In this object if there is a directed edge from a node A to a node B then I say In this object if there is a directed edge from a node A to a node B then I say
that A is the parent of B and B is the child of A. that A is the parent of B and B is the child of A.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -43,6 +43,9 @@ namespace dlib ...@@ -43,6 +43,9 @@ namespace dlib
WHAT THIS OBJECT REPRESENTS WHAT THIS OBJECT REPRESENTS
This object represents an undirected graph which is a set of nodes with undirected This object represents an undirected graph which is a set of nodes with undirected
edges connecting various nodes. edges connecting various nodes.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -68,6 +68,9 @@ namespace dlib ...@@ -68,6 +68,9 @@ namespace dlib
This object is similar an array. It maps items of type domain on to This object is similar an array. It maps items of type domain on to
items of type range. items of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
definition of equivalent: definition of equivalent:
a is equivalent to b if a is equivalent to b if
a < b == false and a < b == false and
......
...@@ -62,6 +62,9 @@ namespace dlib ...@@ -62,6 +62,9 @@ namespace dlib
This object represents an unaddressed collection This object represents an unaddressed collection
of items. Every element in a hash_set is unique. of items. Every element in a hash_set is unique.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
definition of equivalent: definition of equivalent:
a is equivalent to b if a is equivalent to b if
a < b == false and a < b == false and
......
...@@ -61,6 +61,9 @@ namespace dlib ...@@ -61,6 +61,9 @@ namespace dlib
kind of hash table. The number of buckets in the hash table is kind of hash table. The number of buckets in the hash table is
defined by the constructor argument and is some power of 2. defined by the constructor argument and is some power of 2.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTE: NOTE:
definition of equivalent: definition of equivalent:
a is equivalent to b if a is equivalent to b if
......
...@@ -58,6 +58,9 @@ namespace dlib ...@@ -58,6 +58,9 @@ namespace dlib
This object is similar an array. It maps items of type domain on to This object is similar an array. It maps items of type domain on to
items of type range. items of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
definition of equivalent: definition of equivalent:
a is equivalent to b if a is equivalent to b if
a < b == false and a < b == false and
......
...@@ -49,6 +49,9 @@ namespace dlib ...@@ -49,6 +49,9 @@ namespace dlib
e.g. if the queue is {b,c,d,e} and then 'a' is enqueued e.g. if the queue is {b,c,d,e} and then 'a' is enqueued
the queue becomes {a,b,c,d,e} and then calling dequeue takes e out the queue becomes {a,b,c,d,e} and then calling dequeue takes e out
making the queue {a,b,c,d} making the queue {a,b,c,d}
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -40,6 +40,9 @@ namespace dlib ...@@ -40,6 +40,9 @@ namespace dlib
This object represents a container for an object of type T and This object represents a container for an object of type T and
provides reference counting capabilities for the object it contains provides reference counting capabilities for the object it contains
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -47,6 +47,9 @@ namespace dlib ...@@ -47,6 +47,9 @@ namespace dlib
This object represents an ordered sequence of items, each item is This object represents an ordered sequence of items, each item is
associated with an integer value. associated with an integer value.
The items are numbered from 0 to size()-1 The items are numbered from 0 to size()-1
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -36,6 +36,9 @@ namespace dlib ...@@ -36,6 +36,9 @@ namespace dlib
Also note that it is the case that for any two sets a and b Also note that it is the case that for any two sets a and b
if (a<b) == false and (b<a) == false then a == b. if (a<b) == false and (b<a) == false then a == b.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTATION NOTATION
For the purposes of defining what these operators do I will For the purposes of defining what these operators do I will
......
...@@ -42,6 +42,9 @@ namespace dlib ...@@ -42,6 +42,9 @@ namespace dlib
if instead of calling rotate_left we call rotate_right(3) instead we would have if instead of calling rotate_left we call rotate_right(3) instead we would have
"ta!some da" "ta!some da"
9876543210 9876543210
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -23,6 +23,9 @@ namespace dlib ...@@ -23,6 +23,9 @@ namespace dlib
GENERAL WARNING GENERAL WARNING
Don't call any of these functions or make any of these objects Don't call any of these functions or make any of these objects
before main() has been entered. before main() has been entered.
EXCEPTIONS
Unless specified otherwise, nothing in this file throws exceptions.
!*/ !*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -49,6 +49,9 @@ namespace dlib ...@@ -49,6 +49,9 @@ namespace dlib
e.g. if the stack is {b,c,d,e} then a is put in e.g. if the stack is {b,c,d,e} then a is put in
the stack becomes {a,b,c,d,e} and then pop takes a back out the stack becomes {a,b,c,d,e} and then pop takes a back out
returning the stack to {b,c,d,e} returning the stack to {b,c,d,e}
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/ !*/
public: public:
......
...@@ -48,6 +48,9 @@ namespace dlib ...@@ -48,6 +48,9 @@ namespace dlib
This object is similar an array. It maps items of type domain on to This object is similar an array. It maps items of type domain on to
items of type range. items of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTE NOTE
definition of equivalent: definition of equivalent:
a is equivalent to b if a is equivalent to b if
......
...@@ -41,6 +41,9 @@ namespace dlib ...@@ -41,6 +41,9 @@ namespace dlib
This object represents an unaddressed collection of items. This object represents an unaddressed collection of items.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTE NOTE
definition of equivalent: definition of equivalent:
a is equivalent to b if a is equivalent to b if
......
...@@ -24,6 +24,9 @@ namespace dlib ...@@ -24,6 +24,9 @@ namespace dlib
If you want to change the timeout to a different value you can #define If you want to change the timeout to a different value you can #define
DLIB_THREAD_POOL_TIMEOUT to whatever value (in milliseconds) that you like. DLIB_THREAD_POOL_TIMEOUT to whatever value (in milliseconds) that you like.
EXCEPTIONS
Unless specified otherwise, nothing in this file throws exceptions.
!*/ !*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -85,7 +85,7 @@ namespace dlib ...@@ -85,7 +85,7 @@ namespace dlib
!*/ !*/
public: public:
// the maximum number of items this tuple tepmlate can contain // the maximum number of items this tuple template can contain
const static long max_fields = 32; const static long max_fields = 32;
template <long index> template <long index>
......
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