Loading...
Searching...
No Matches
object.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_CONCEPT_OBJECT_H
#define BALL_CONCEPT_OBJECT_H
#ifndef BALL_CONCEPT_AUTODELETABLE_H
# include <BALL/CONCEPT/autoDeletable.h>
#endif
#ifndef BALL_COMMON_RTTI_H
# include <BALL/COMMON/rtti.h>
#endif
#ifndef BALL_CONCEPT_BIDIRECTIONALITERATOR_H
# include <BALL/CONCEPT/bidirectionalIterator.h>
#endif
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
namespace BALL
{
class BALL_EXPORT Object
: public AutoDeletable
{
public:
BALL_CREATE(Object)
//@{
Object()
;
Object(const Object& object)
;
virtual ~Object()
;
virtual void clear()
;
const Object& operator = (const Object& /* object */)
;
Handle getHandle() const
;
static Handle getNextHandle()
;
static Handle getNewHandle()
;
bool operator == (const Object& object) const
;
bool operator != (const Object& object) const
;
bool operator < (const Object& object) const
;
bool operator <= (const Object& object) const
;
bool operator >= (const Object& object) const
;
bool operator > (const Object& object) const
;
int compare(const Object& object) const
;
virtual bool isValid() const
;
virtual void dump(::std::ostream& s = std::cout, Size depth = 0) const
;
private:
//_ The handle of this instance
Handle handle_;
//_ The global handle
static Handle global_handle_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/CONCEPT/object.iC>
# endif
} // namespace BALL
#endif // BALL_CONCEPT_OBJECT_H
global.h
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
autoDeletable.h
bidirectionalIterator.h
BALL::AutoDeletable::AutoDeletable
AutoDeletable()
BALL::Object::Object
Object()
Default constructor.
BALL::Object::compare
int compare(const Object &object) const
BALL::Object::getNextHandle
static Handle getNextHandle()
BALL::Object::isValid
virtual bool isValid() const
BALL::Object::clear
virtual void clear()
Clear function of the OCI, doing nothing here.
BALL::Object::dump
virtual void dump(::std::ostream &s=std::cout, Size depth=0) const
BALL::Object::getHandle
Handle getHandle() const
BALL::Object::getNewHandle
static Handle getNewHandle()
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::Handle
BALL_SIZE_TYPE Handle
Definition COMMON/global.h:96
std
STL namespace.
rtti.h