Document::InsertRemoveIdentifier< Identifier, Object > Class Template Reference

Base class that adds or removes an object with a fixed identity. More...

#include <InsertRemoveIdentifier.h>

List of all members.

Public Member Functions

 InsertRemoveIdentifier (Object object)
 Create keeping the identifier from an object.
 InsertRemoveIdentifier (Identifier identifier)
 Create keeping an explicitly found identifier.
virtual ~InsertRemoveIdentifier ()
virtual void insert (Track::Track &track, Object object) const =0
 Insert an object into a Track::Track.
virtual Object remove (Track::Track &track) const =0
 Remove an object from a Track::Track.

Protected Attributes

Identifier identifier
 Associated object identity.


Detailed Description

template<class Identifier, class Object>
class Document::InsertRemoveIdentifier< Identifier, Object >

Base class that adds or removes an object with a fixed identity.

Identifier class describing the identity of the object. ObjectType the class that is added or removed.

Definition at line 25 of file InsertRemoveIdentifier.h.


Constructor & Destructor Documentation

template<class Identifier, class Object>
Document::InsertRemoveIdentifier< Identifier, Object >::InsertRemoveIdentifier ( Object  object  )  [inline]

Create keeping the identifier from an object.

Definition at line 29 of file InsertRemoveIdentifier.h.

template<class Identifier, class Object>
Document::InsertRemoveIdentifier< Identifier, Object >::InsertRemoveIdentifier ( Identifier  identifier  )  [inline]

Create keeping an explicitly found identifier.

Definition at line 34 of file InsertRemoveIdentifier.h.

template<class Identifier, class Object>
virtual Document::InsertRemoveIdentifier< Identifier, Object >::~InsertRemoveIdentifier (  )  [inline, virtual]

Definition at line 39 of file InsertRemoveIdentifier.h.


Member Function Documentation

template<class Identifier, class Object>
virtual void Document::InsertRemoveIdentifier< Identifier, Object >::insert ( Track::Track track,
Object  object 
) const [pure virtual]

Insert an object into a Track::Track.

Implemented in Document::InsertRemoveEdgeIdentifier, Document::InsertRemoveTrackAttachmentIdentifier, and Document::InsertRemoveVertexIdentifier.

template<class Identifier, class Object>
virtual Object Document::InsertRemoveIdentifier< Identifier, Object >::remove ( Track::Track track  )  const [pure virtual]

Remove an object from a Track::Track.

Implemented in Document::InsertRemoveEdgeIdentifier, Document::InsertRemoveTrackAttachmentIdentifier, and Document::InsertRemoveVertexIdentifier.


Member Data Documentation

template<class Identifier, class Object>
Identifier Document::InsertRemoveIdentifier< Identifier, Object >::identifier [protected]

Associated object identity.

Definition at line 51 of file InsertRemoveIdentifier.h.


The documentation for this class was generated from the following file:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:16 2010 by Doxygen version 1.4.7 for Racer version svn335.