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
associated with an integer value.
The items are numbered from 0 though size() - 1 and
the operator[] functions run in constant time
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
public:
......
......@@ -46,6 +46,9 @@ namespace dlib
WHAT THIS OBJECT REPRESENTS
This object represents a 2-Dimensional array of objects of
type T.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
......
......@@ -63,6 +63,9 @@ namespace dlib
this object represents a data dictionary that is built on top of some
kind of binary search tree. It maps objects of type domain to objects
of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTE:
definition of equivalent:
......
......@@ -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
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:
......
......@@ -43,6 +43,9 @@ namespace dlib
WHAT THIS OBJECT REPRESENTS
This object represents an undirected graph which is a set of nodes with undirected
edges connecting various nodes.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
public:
......
......@@ -68,6 +68,9 @@ namespace dlib
This object is similar an array. It maps items of type domain on to
items of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
definition of equivalent:
a is equivalent to b if
a < b == false and
......
......@@ -62,6 +62,9 @@ namespace dlib
This object represents an unaddressed collection
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:
a is equivalent to b if
a < b == false and
......
......@@ -60,6 +60,9 @@ namespace dlib
This object represents a data dictionary that is built on top of some
kind of hash table. The number of buckets in the hash table is
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:
definition of equivalent:
......
......@@ -58,6 +58,9 @@ namespace dlib
This object is similar an array. It maps items of type domain on to
items of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
definition of equivalent:
a is equivalent to b if
a < b == false and
......
......@@ -49,6 +49,9 @@ namespace dlib
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
making the queue {a,b,c,d}
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
public:
......
......@@ -40,6 +40,9 @@ namespace dlib
This object represents a container for an object of type T and
provides reference counting capabilities for the object it contains
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
public:
......
......@@ -47,6 +47,9 @@ namespace dlib
This object represents an ordered sequence of items, each item is
associated with an integer value.
The items are numbered from 0 to size()-1
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
public:
......
......@@ -35,6 +35,9 @@ namespace dlib
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.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTATION
......
......@@ -42,6 +42,9 @@ namespace dlib
if instead of calling rotate_left we call rotate_right(3) instead we would have
"ta!some da"
9876543210
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
public:
......
......@@ -23,6 +23,9 @@ namespace dlib
GENERAL WARNING
Don't call any of these functions or make any of these objects
before main() has been entered.
EXCEPTIONS
Unless specified otherwise, nothing in this file throws exceptions.
!*/
// ----------------------------------------------------------------------------------------
......
......@@ -49,6 +49,9 @@ namespace dlib
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
returning the stack to {b,c,d,e}
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
!*/
public:
......
......@@ -48,6 +48,9 @@ namespace dlib
This object is similar an array. It maps items of type domain on to
items of type range.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTE
definition of equivalent:
a is equivalent to b if
......
......@@ -41,6 +41,9 @@ namespace dlib
This object represents an unaddressed collection of items.
Also note that unless specified otherwise, no member functions
of this object throw exceptions.
NOTE
definition of equivalent:
a is equivalent to b if
......
......@@ -24,6 +24,9 @@ namespace dlib
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.
EXCEPTIONS
Unless specified otherwise, nothing in this file throws exceptions.
!*/
// ----------------------------------------------------------------------------------------
......
......@@ -85,7 +85,7 @@ namespace dlib
!*/
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;
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