rasdaman base DBMS
inlineminterval.hh
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 */
23 #ifndef _INLINEMINTERVAL_HH_
24 #define _INLINEMINTERVAL_HH_
25 
26 class InlineMinterval;
27 
28 template<class T> class DBRef;
29 
30 #include "raslib/minterval.hh"
31 
32 //@ManMemo: Module: {\bf relcatalogif}.
33 
34 /*@Doc:
35 InlineMinterval is a subclass of r_Minterval which stores and
36 instantiates itself in char[].
37 This class is used by the index data structures to store their
38 domain data fast and efficiently.
39 */
40 
44 class InlineMinterval : public r_Minterval
45 {
46 public:
48 
49  InlineMinterval(r_Dimension dim);
50 
51  InlineMinterval(r_Dimension dim, r_Range* lowerbound, r_Range* upperbound, char* lowerfixed, char* upperfixed);
52  /*@Doc:
53  construct a InlineMinterval with dimension dim from the
54  arrays lowerbound, upperbound, lowerfixed, upperfixed.
55  */
56 
57  InlineMinterval(const r_Minterval& old);
58 
59  InlineMinterval(const InlineMinterval& old);
60 
61  virtual ~InlineMinterval();
62 
63  //replaces only the r_Minterval part of the object
64  virtual InlineMinterval& operator=(const InlineMinterval& old);
65 
66  //replaces only the r_Minterval part of the object
67  virtual InlineMinterval& operator=(const r_Minterval& old);
68 
69  virtual void insertInDb(r_Range* lowerbound, r_Range* upperbound, char* lowerfixed, char* upperfixed) const;
70  /*@Doc:
71  stores the attributes of the InlineMinterval into the four
72  supplied arrays. the arrays must be large enough.
73  */
74 };
75 
76 #endif
Definition: inlineminterval.hh:44
virtual InlineMinterval & operator=(const InlineMinterval &old)
virtual ~InlineMinterval()
virtual void insertInDb(r_Range *lowerbound, r_Range *upperbound, char *lowerfixed, char *upperfixed) const
Definition: dbobject.hh:29