Files
secondo/Algebras/GeneralTree/GTree/GTree_LeafEntry.h
2026-01-23 17:03:45 +08:00

101 lines
2.3 KiB
C++

/*
\newpage
----
This file is part of SECONDO.
Copyright (C) 2004, University in Hagen, Department of Computer Science,
Database Systems for New Applications.
SECONDO is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
SECONDO is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SECONDO; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
----
//[_] [\_]
//characters [1] verbatim: [$] [$]
//characters [2] formula: [$] [$]
//characters [3] capital: [\textsc{] [}]
//characters [4] teletype: [\texttt{] [}]
1.1 Headerfile "GTree[_]LeafEntry.h"[4]
January-May 2008, Mirko Dibbert
*/
#ifndef __GTREE_LEAF_ENTRY_H__
#define __GTREE_LEAF_ENTRY_H__
#include "GTree_EntryBase.h"
namespace gtree
{
/********************************************************************
Class ~LeafEntry~
This class should be used as base class for all leaf entries. The derived classes must overwrite the "read"[4], "write"[4] and "size"[4] method and call the resp. methods of the base class (these methods have currently no affect in this case, but nevertheless they should be called for the case of future extensions).
********************************************************************/
class LeafEntry
: public EntryBase
{
public:
/*
Default constructor.
*/
inline LeafEntry()
{}
/*
Default copy constructor.
*/
inline LeafEntry(const LeafEntry &e)
{}
/*
Destructor.
*/
inline ~LeafEntry()
{}
/*
Writes the entry object to buffer and increses offset.
*/
inline void write(char *const buffer, int &offset) const
{}
/*
Reads the entry object from buffer and increses offset.
*/
inline void read(const char *const buffer, int &offset)
{}
/*
Returns the size of the entry on disc.
*/
inline size_t size()
{ return 0; }
};
} // namespace gtree
#endif // #define __GTREE_LEAF_ENTRY_H__