fpmas 1.6
Public Member Functions | List of all members
fpmas::api::graph::Id< IdImpl > Class Template Referenceabstract

#include <id.h>

Public Member Functions

virtual IdImpl & operator++ ()=0
 
virtual bool operator== (const IdImpl &id) const =0
 
virtual std::size_t hash () const =0
 
virtual operator std::string () const =0
 

Detailed Description

template<typename IdImpl>
class fpmas::api::graph::Id< IdImpl >

Generic Id API.

Member Function Documentation

◆ operator++()

template<typename IdImpl >
virtual IdImpl & fpmas::api::graph::Id< IdImpl >::operator++ ( )
pure virtual

Increments the id.

Successive calls to this operator are expected to yield a sequence of unique ids.

Returns
reference to this

◆ operator==()

template<typename IdImpl >
virtual bool fpmas::api::graph::Id< IdImpl >::operator== ( const IdImpl &  id) const
pure virtual

Checks if two ids are equal.

Parameters
idother id to compare
Returns
true iff id is equal to this

◆ hash()

template<typename IdImpl >
virtual std::size_t fpmas::api::graph::Id< IdImpl >::hash ( ) const
pure virtual

Id hash function.

Returns
id hash

◆ operator std::string()

template<typename IdImpl >
virtual fpmas::api::graph::Id< IdImpl >::operator std::string ( ) const
pure virtual

Id string conversion.


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