BTK  0.3dev.0
Open-source library to visualize/process biomechanical data
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
btk::Object Class Reference

Base for all objects which need to keep track of modified time. More...

#include <btkObject.h>

Inheritance diagram for btk::Object:
Inheritance graph
[legend]

Public Types

typedef btkSharedPtr< const
Object
ConstPointer
 
typedef btkSharedPtr< ObjectPointer
 

Public Member Functions

unsigned long int GetTimestamp () const
 
virtual void Modified ()
 

Protected Member Functions

 Object ()
 
 Object (const Object &toCopy)
 
virtual ~Object ()
 

Protected Attributes

unsigned long int m_Timestamp
 

Detailed Description

Base for all objects which need to keep track of modified time.

Member Typedef Documentation

Smart pointer associated with a const Object object.

Smart pointer associated with a Object object.

Constructor & Destructor Documentation

btk::Object::Object ( )
inlineprotected

Constructor.

btk::Object::Object ( const Object toCopy)
inlineprotected

Copy constructor.

btk::Object::~Object ( )
inlineprotectedvirtual

Destructor.

Member Function Documentation

long btk::Object::GetTimestamp ( ) const
inline

Returns the timestamp of the object.

void btk::Object::Modified ( )
virtual

Sets the object as modified (its timestamp is updated and the flag 'modified' is set to true). It is important to use this method each time a component of the process is modified.

Reimplemented in btk::ProcessObject, and btk::DataObject.

Member Data Documentation

btk::Object::m_Timestamp
protected

Time in microseconds to indicate the last modification of the object.