Overture  Version 25
Public Member Functions | List of all members
DBase::SpecializedEntry< T > Class Template Reference

the actual container class that hold data in the database More...

#include <DBase.hh>

Inheritance diagram for DBase::SpecializedEntry< T >:
Inheritance graph
[legend]
Collaboration diagram for DBase::SpecializedEntry< T >:
Collaboration graph
[legend]

Public Member Functions

EXPLICIT SpecializedEntry (const T &e, void(*dd)(T &)=0)
 create a new entry with data and a name
 
EXPLICIT SpecializedEntry (void(*dd)(T &))
 
EXPLICIT SpecializedEntry ()
 
virtual ~SpecializedEntry ()
 clean up this instance, calling the entry's destructor callback if present
 
T & operator* ()
 return a reference to the data
 
const T & operator* () const
 return a const reference to the data
 
- Public Member Functions inherited from DBase::Entry
 Entry ()
 create a new entry with name name, no traits are assigned
 
virtual ~Entry ()
 clean up the entry (nothing is done in the base class)
 

Additional Inherited Members

- Public Attributes inherited from DBase::Entry
unsigned int traits
 traits for a given entry
 

Detailed Description

template<typename T>
class DBase::SpecializedEntry< T >

the actual container class that hold data in the database

Constructor & Destructor Documentation

template<typename T>
EXPLICIT DBase::SpecializedEntry< T >::SpecializedEntry ( const T &  e,
void(*)(T &)  dd = 0 
)
inline

create a new entry with data and a name

Parameters
ea COPY of this data will be stored in the database
ddan optional callback to destroy the data upon deletion of this entry
template<typename T>
EXPLICIT DBase::SpecializedEntry< T >::SpecializedEntry ( void(*)(T &)  dd)
inline
template<typename T>
EXPLICIT DBase::SpecializedEntry< T >::SpecializedEntry ( )
inline
template<typename T>
virtual DBase::SpecializedEntry< T >::~SpecializedEntry ( )
inlinevirtual

clean up this instance, calling the entry's destructor callback if present

Member Function Documentation

template<typename T>
T& DBase::SpecializedEntry< T >::operator* ( )
inline

return a reference to the data

template<typename T>
const T& DBase::SpecializedEntry< T >::operator* ( ) const
inline

return a const reference to the data


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