#include <BALL/CONCEPT/object.h>
Public Member Functions | |
Construction and Destruction | |
Object () | |
Default constructor. | |
Object (const Object &object) | |
Copy constructor. | |
virtual | ~Object () |
Destructor. | |
virtual void | clear () |
Clear function of the OCI, doing nothing here. | |
Assignment | |
const Object & | operator= (const Object &) |
Comparison operators | |
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 |
Debugging and Diagnostics | |
virtual bool | isValid () const |
virtual void | dump (::std::ostream &s=std::cout, Size depth=0) const |
Private Attributes | |
Handle | handle_ |
Static Private Attributes | |
static Handle | global_handle_ |
Handle Management | |
Handle | getHandle () const |
static Handle | getNextHandle () |
static Handle | getNewHandle () |
Generic object class. This class provides unique handles for every object that is an instance of a derived class of object. Together with the BALL object manager this class also provides a double linked list of all objects.
BALL::Object::Object | ( | ) |
Default constructor.
BALL::Object::Object | ( | const Object & | object | ) |
Copy constructor.
virtual BALL::Object::~Object | ( | ) | [virtual] |
Destructor.
virtual void BALL::Object::clear | ( | ) | [virtual] |
Clear function of the OCI, doing nothing here.
Reimplemented in BALL::Composite, BALL::NamedProperty, BALL::Atom, BALL::AtomContainer, BALL::Bond, BALL::NucleicAcid, BALL::Nucleotide, BALL::PDBAtom, BALL::Protein, BALL::Residue, BALL::SecondaryStructure, BALL::TVector2< T >, BALL::VIEW::RepresentationManager, BALL::VIEW::GLRenderer, BALL::VIEW::POVRenderer, BALL::VIEW::Renderer, BALL::VIEW::STLRenderer, BALL::VIEW::VRMLRenderer, and BALL::TVector2< float >.
int BALL::Object::compare | ( | const Object & | object | ) | const |
Compare the handle of this object with the handle of another.
object | an Object |
object
's handle is greater and 1 if this's handle is greater. virtual void BALL::Object::dump | ( | ::std::ostream & | s = std::cout , |
|
Size | depth = 0 | |||
) | const [virtual] |
Handle BALL::Object::getHandle | ( | ) | const |
Return the global handle of this object.
static Handle BALL::Object::getNewHandle | ( | ) | [static] |
Return the next available handle and increase the global handle counter.
static Handle BALL::Object::getNextHandle | ( | ) | [static] |
Return the next available handle without changing the global handle counter.
virtual bool BALL::Object::isValid | ( | ) | const [virtual] |
Less than operator. This method checks whether the handle of this object is less than the handle of object
object | an Object |
object
Less than or equal operator. This method checks whether the handle of this object is less than or equal to the handle of object
object | an Object |
object
Assignment operator. This method does not assign anything! Implemented just for the OCI.
object | an object |
Greater than operator. This method checks whether the handle of this object is greater than the handle of object
object | an Object |
object
Greater than or equal operator. This method checks whether the handle of this object is greater than or equal to the handle of object
object | an Object |
object
Handle BALL::Object::global_handle_ [static, private] |
Handle BALL::Object::handle_ [private] |