matador::identifiable_holder Class Referenceabstract

#include <identifiable_holder.hpp>

Inherited by matador::object_holder.

Public Member Functions

virtual void reset (const identifier &id)=0
 
virtual bool has_primary_key () const =0
 
virtual const identifierprimary_key () const =0
 
virtual identifierprimary_key ()=0
 
virtual identifier create_identifier () const =0
 

Detailed Description

Base class for all pointer object which can contain an identifiable

Member Function Documentation

◆ create_identifier()

virtual identifier matador::identifiable_holder::create_identifier ( ) const
pure virtual

Creates a new identifier object.

Returns
Returns a new identifier object.

Implemented in matador::object_ptr< T >.

◆ has_primary_key()

virtual bool matador::identifiable_holder::has_primary_key ( ) const
pure virtual

Returns true if serializable has a primary key

Returns
true if serializable has a primary key

Implemented in matador::object_holder.

◆ primary_key()

virtual const identifier & matador::identifiable_holder::primary_key ( ) const
pure virtual

Gets the primary key of the foreign serializable

Returns
The primary key of the foreign serializable

Implemented in matador::object_holder.

◆ reset()

virtual void matador::identifiable_holder::reset ( const identifier id)
pure virtual

Resets the object_holder with the given identifier. If the type of identifier differs from internal type an exception is thrown

Parameters
idThe identifier to set

Implemented in matador::object_holder.


The documentation for this class was generated from the following file:
  • matador/utils/identifiable_holder.hpp