Chemical Data Processing Library C++ API - Version 1.2.0
AttributedGrid.hpp
Go to the documentation of this file.
1 /*
2  * AttributedGrid.hpp
3  *
4  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
27 #ifndef CDPL_GRID_ATTRIBUTEDGRID_HPP
28 #define CDPL_GRID_ATTRIBUTEDGRID_HPP
29 
30 #include <cstddef>
31 #include <memory>
32 
34 
35 
36 namespace CDPL
37 {
38 
39  namespace Grid
40  {
41 
46  {
47 
48  public:
49  typedef std::shared_ptr<AttributedGrid> SharedPointer;
50 
51  virtual ~AttributedGrid() {}
52 
53  virtual std::size_t getNumElements() const = 0;
54 
55  virtual bool isEmpty() const = 0;
56 
57  protected:
59  {
61  return *this;
62  }
63  };
64  } // namespace Grid
65 } // namespace CDPL
66 
67 #endif // CDPL_GRID_ATTRIBUTEDGRID_HPP
Definition of the class CDPL::Base::PropertyContainer.
A class providing methods for the storage and lookup of object properties.
Definition: PropertyContainer.hpp:75
PropertyContainer & operator=(const PropertyContainer &cntnr)
Assignment operator.
AttributedGrid.
Definition: AttributedGrid.hpp:46
std::shared_ptr< AttributedGrid > SharedPointer
Definition: AttributedGrid.hpp:49
virtual ~AttributedGrid()
Definition: AttributedGrid.hpp:51
virtual bool isEmpty() const =0
AttributedGrid & operator=(const AttributedGrid &grid)
Definition: AttributedGrid.hpp:58
virtual std::size_t getNumElements() const =0
The namespace of the Chemical Data Processing Library.