rasdaman client API  10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
marraytype.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 
24 #ifndef _D_MARRAY_TYPE_
25 #define _D_MARRAY_TYPE_
26 
27 #include "raslib/type.hh"
28 
29 class r_Base_Type;
30 
31 //@ManMemo: Module: {\bf raslib}
40 class r_Marray_Type : public r_Type
41 {
42 public:
44  explicit r_Marray_Type(const r_Base_Type &);
45 
50 
52  ~r_Marray_Type() override;
53 
57  const r_Marray_Type &operator=(const r_Marray_Type &);
58 
59  bool isMarrayType() const override;
60 
62  const r_Base_Type &base_type() const;
63 
65  r_Type *clone() const override;
66 
68  r_Type::r_Type_Id type_id() const override;
69 
71  void convertToLittleEndian(char *cells, r_Area noCells) const override;
72 
74  void convertToBigEndian(char *cells, r_Area noCells) const override;
75 
77  void print_status(std::ostream &s) const override;
78 
79 protected:
82  r_Marray_Type();
83 
86 };
87 
88 //@Doc: write the status of a marray type to a stream
89 extern std::ostream &operator<<(std::ostream &str, const r_Marray_Type &type);
90 
91 #endif
r_Marray_Type::~r_Marray_Type
~r_Marray_Type() override
destructor
r_Marray_Type::base_type
const r_Base_Type & base_type() const
get base type
r_Marray_Type
This class represents the marray type in the ODMG conformant representation of the RasDaMan type syst...
Definition: marraytype.hh:40
r_Marray_Type::type_id
r_Type::r_Type_Id type_id() const override
retrieve id of the type.
r_Base_Type
This class is the superclass of the types r_Structure_Type and r_Primitive_Type in the representation...
Definition: basetype.hh:39
r_Marray_Type::convertToBigEndian
void convertToBigEndian(char *cells, r_Area noCells) const override
converts array of cells from Unix byte order to NT byte order.
r_Type
This class the superclass for all types in the ODMG conformant representation of the RasDaMan type sy...
Definition: type.hh:50
r_Marray_Type::operator=
const r_Marray_Type & operator=(const r_Marray_Type &)
assignment operator if base type is NULL an exception will be raised.
r_Marray_Type::clone
r_Type * clone() const override
clone operation
r_Marray_Type::r_Marray_Type
r_Marray_Type()
default constructor should be used by noone
r_Type::r_Type_Id
r_Type_Id
typedef for the enum specifying a primitive type, structure type, marray type, interval type,...
Definition: type.hh:55
type.hh
r_Marray_Type::print_status
void print_status(std::ostream &s) const override
writes state of object to specified stream
r_Marray_Type::convertToLittleEndian
void convertToLittleEndian(char *cells, r_Area noCells) const override
converts array of cells from NT byte order to Unix byte order.
operator<<
std::ostream & operator<<(std::ostream &str, const r_Marray_Type &type)
r_Area
std::uint64_t r_Area
number of cells in an mdd object or tile.
Definition: mddtypes.hh:49
r_Marray_Type::isMarrayType
bool isMarrayType() const override
check, if type is a marray type.
r_Marray_Type::baseType
r_Base_Type * baseType
base type
Definition: marraytype.hh:85