Public Types | Public Member Functions | List of all members
ClonerBase< T > Struct Template Referenceabstract

#include <Cloner.h>

Inheritance diagram for ClonerBase< T >:
Inheritance graph
[legend]

Public Types

typedef size_t index_t
 Each cloned entry has an index. More...
 
typedef std::pair< index_t, T * > entry_t
 

Public Member Functions

virtual T & getCloned () const =0
 
virtual entry_t getClonerEntry () const =0
 
virtual T & getCloned (index_t i) const =0
 Returns an instance at index i. More...
 
virtual const T & getSource () const =0
 Returns a reference to an instance (possibly a static one?).
 
virtual T & getSource ()=0
 Returns a reference to an instance.
 
virtual size_t count () const =0
 
virtual bool drop (index_t i) const =0
 Remove cloned entry (experimental) More...
 

Detailed Description

template<class T>
struct drain::ClonerBase< T >

Template Parameters
T- base class (ie not to be used for derived class)

Member Typedef Documentation

◆ index_t

typedef size_t index_t

Each cloned entry has an index.

User of the cloned object can use it for deleting the object before the automatical destruction takes place

Member Function Documentation

◆ drop()

virtual bool drop ( index_t  i) const
pure virtual

Remove cloned entry (experimental)

Returns
- true, if intance was found and succesfully deleted, false otherwise.

Implemented in Cloner< B, S >, and Cloner< ImageOp, T >.

◆ getCloned()

virtual T& getCloned ( index_t  i) const
pure virtual

Returns an instance at index i.

Returns an instance at index i.

Implemented in Cloner< B, S >, and Cloner< ImageOp, T >.


The documentation for this struct was generated from the following file: