Loading...
Searching...
No Matches
fragment.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_KERNEL_FRAGMENT_H
#define BALL_KERNEL_FRAGMENT_H
#ifndef BALL_KERNEL_ATOMCONTAINER_H
# include <BALL/KERNEL/atomContainer.h>
#endif
namespace BALL
{
class BALL_EXPORT Fragment
: public AtomContainer
{
public:
BALL_CREATE_DEEP(Fragment)
enum Property
{
NUMBER_OF_PROPERTIES = AtomContainer::NUMBER_OF_PROPERTIES
};
Fragment();
Fragment(const Fragment& fragment, bool deep = true);
Fragment(const String& name);
virtual ~Fragment();
void persistentWrite(PersistenceManager& pm, const char* name = 0) const;
void persistentRead(PersistenceManager& pm);
Fragment& operator = (const Fragment& fragment);
bool operator == (const Fragment& fragment) const;
bool operator != (const Fragment& fragment) const;
virtual bool isFragment() const { return true; }
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
};
// required for visual studio
#ifdef BALL_COMPILER_MSVC
template class BALL_EXPORT UnaryProcessor<Fragment>;
#endif
} // namespace BALL
#endif // BALL_KERNEL_FRAGMENT_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
atomContainer.h
BALL::AtomContainer::AtomContainer
AtomContainer()
BALL::AtomContainer::NUMBER_OF_PROPERTIES
@ NUMBER_OF_PROPERTIES
Definition atomContainer.h:45
BALL::Fragment::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::Fragment::persistentWrite
void persistentWrite(PersistenceManager &pm, const char *name=0) const
BALL::Fragment::Fragment
Fragment(const String &name)
BALL::Fragment::Fragment
Fragment(const Fragment &fragment, bool deep=true)
BALL::Fragment::~Fragment
virtual ~Fragment()
BALL::Fragment::Fragment
Fragment()
BALL::Fragment::persistentRead
void persistentRead(PersistenceManager &pm)
BALL::Fragment::isFragment
virtual bool isFragment() const
Definition fragment.h:101
BALL::Fragment::Property
Property
Definition fragment.h:33
BALL::Fragment::NUMBER_OF_PROPERTIES
@ NUMBER_OF_PROPERTIES
Definition fragment.h:35
BALL::PersistenceManager
Definition persistenceManager.h:73
BALL::String
Definition string.h:57
BALL::UnaryProcessor
Definition processor.h:60
BALL_CREATE_DEEP
#define BALL_CREATE_DEEP(name)
Definition create.h:26
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114