casacore
Loading...
Searching...
No Matches
Utilities.h
Go to the documentation of this file.
1// # Utilities.h: Bag of unrelated classes and groups for general use.
2// # Copyright (C) 1995,1996,1997,2000,2001
3// # Associated Universities, Inc. Washington DC, USA.
4// #
5// # This library is free software; you can redistribute it and/or modify it
6// # under the terms of the GNU Library General Public License as published by
7// # the Free Software Foundation; either version 2 of the License, or (at your
8// # option) any later version.
9// #
10// # This library is distributed in the hope that it will be useful, but WITHOUT
11// # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12// # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13// # License for more details.
14// #
15// # You should have received a copy of the GNU Library General Public License
16// # along with this library; if not, write to the Free Software Foundation,
17// # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18// #
19// # Correspondence concerning AIPS++ should be addressed as follows:
20// # Internet email: casa-feedback@nrao.edu.
21// # Postal address: AIPS++ Project Office
22// # National Radio Astronomy Observatory
23// # 520 Edgemont Road
24// # Charlottesville, VA 22903-2475 USA
25
26#ifndef CASA_UTILITIES_H
27#define CASA_UTILITIES_H
28
29#include <casacore/casa/aips.h>
30
31#include <casacore/casa/Utilities/Assert.h>
32#include <casacore/casa/Utilities/BinarySearch.h>
33#include <casacore/casa/Utilities/BitVector.h>
34#include <casacore/casa/Utilities/Compare.h>
35#include <casacore/casa/Utilities/Copy.h>
36#include <casacore/casa/Utilities/DataType.h>
37#include <casacore/casa/Utilities/DynBuffer.h>
38#include <casacore/casa/Utilities/Fallible.h>
39#include <casacore/casa/Utilities/GenSort.h>
40#include <casacore/casa/Utilities/Regex.h>
41#include <casacore/casa/Utilities/Sequence.h>
42#include <casacore/casa/Utilities/Sort.h>
43#include <casacore/casa/Utilities/SortError.h>
44#include <casacore/casa/BasicSL/String.h>
45#include <casacore/casa/Utilities/ValType.h>
46
47namespace casacore { // # NAMESPACE CASACORE - BEGIN
48
49// <module>
50//
51// <summary> Classes and global functions for general use </summary>
52
53// <reviewed reviewer="Friso Olnon" date="1995/03/20" demos="">
54// </reviewed>
55
56// <synopsis>
57//
58// This module is a bag of unrelated mini-modules, classes and
59// global functions. The following functional groups can be recognized:
60// <ul>
61// <li> Object utilities:
62// <ul>
63// <li> <linkto class=ObjCompare>ObjCompare</linkto>
64// objects with each other. A signature for comparison functions
65// is defined (required for comparison functions used in the
66// <linkto class=Sort>Sort</linkto>
67// class), and one such function is provided.
68// <li> <linkto group="Copy.h#copy">objcopy/objmove/objset</linkto>
69// copies objects from one place to another.
70// <li> <linkto class=Fallible>Mark</linkto>
71// objects as valid or invalid.
72// <li> <linkto class=Notice>Notices</linkto>
73// provide basic support for shared access of data by various objects.
74// <li> <linkto class=Sort>Sort</linkto>
75// objects on one or more keys, in ascending or descending order.
76// <linkto class=GenSort>Fast sorting</linkto>
77// is provided for certain types of objects.
78// <li> <linkto group="BinarySearch.h#binarysearch">Binary Search</linkto>
79// templated functions for sorted containers (ascending or descending
80// order) are available.
81// <li> <linkto group="LinearSearch.h#linearsearch">Linear Search</linkto>
82// templated functions for unsorted containers are available.
83// </ul>
84// <li> Logical utilities:
85// <ul>
86// <li> <linkto class=assert_>Assertion</linkto>
87// lets you throw an error when a condition in not fullfilled.
88// <li> <linkto class=BitVector>Bit vectors</linkto>
89// are an efficient method to keep True/False information on a set of
90// items or conditions.
91// </ul>
92// <li> Datatype utilities
93// <ul>
94// <li> <linkto group="DataType.h#DataType">DataType</linkto>
95// enumerates the possible data types in the table system.
96// <li> <linkto class=ValType>ValType</linkto>
97// describes the data types and their undefined values.
98// </ul>
99// <li> Other utilities
100// <ul>
101// <li> <linkto class=DynBuffer>Dynamic buffers</linkto>
102// are used to store data in dynamically allocated buffers.
103// <li> <linkto class=Regex>Regular expressions</linkto>
104// are supported by the class <linkto class=Regex>Regex</linkto>
105// built on top of std::regex.
106// <li> <linkto class=Sequence>Sequences</linkto>
107// of any datatype can be derived from the base class
108// <linkto class=Sequence>Sequence</linkto>.
109// One example is <linkto class=uIntSequence>uIntSequence</linkto>,
110// provided for general use.
111// <li> <linkto class=String>Strings</linkto>.
112// for the C++ preprocessor
113// </ul>
114// </ul>
115//
116// <note role=tip> You may want to look at the individual header files
117// to see whether you might not prefer to include only the header
118// files you really need; it may be more efficient to do so.
119// </note>
120//
121// </synopsis>
122
123// # <todo asof="1995/03/20">
124// # <li>
125// # </todo>
126
127// </module>
128
129} // namespace casacore
130
131#endif
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28