TypedById< Item, Id > Class Template Reference

#include <ById.h>

Static Public Member Functions

static Id add (std::shared_ptr< Item > item)
 
static void release (Id id)
 
static void release (std::shared_ptr< Item > item)
 
template<typename Derived >
static bool isa (Id id)
 
template<typename Derived >
static std::shared_ptr< Derived > getAs (Id id)
 
static std::shared_ptr< Item > get (Id id)
 
static int getExportId (Id id)
 If the Item type is an XmlExportable, return the export ID of the given item ID. More...
 

Detailed Description

template<typename Item, typename Id>
class TypedById< Item, Id >

Definition at line 225 of file ById.h.

Member Function Documentation

template<typename Item , typename Id >
static void TypedById< Item, Id >::release ( Id  id)
inlinestatic

Definition at line 234 of file ById.h.

References AnyById::release().

template<typename Item , typename Id >
static void TypedById< Item, Id >::release ( std::shared_ptr< Item >  item)
inlinestatic

Definition at line 237 of file ById.h.

template<typename Item , typename Id >
template<typename Derived >
static bool TypedById< Item, Id >::isa ( Id  id)
inlinestatic

Definition at line 242 of file ById.h.

template<typename Item , typename Id >
template<typename Derived >
static std::shared_ptr<Derived> TypedById< Item, Id >::getAs ( Id  id)
inlinestatic

Definition at line 247 of file ById.h.

Referenced by FeatureExtractionModelTransformer::addFeature().

template<typename Item , typename Id >
static int TypedById< Item, Id >::getExportId ( Id  id)
inlinestatic

If the Item type is an XmlExportable, return the export ID of the given item ID.

A call to this function will fail to compile if the Item is not an XmlExportable.

The export ID is a simple int, and is only allocated when first requested, so objects that are never exported don't get one.

Definition at line 263 of file ById.h.

References XmlExportable::NO_ID.

Referenced by AlignmentModel::toXml().


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