Compute Library
 22.11
DependencyGraph::SerialIdAllocator Class Reference

A serial Id allocator. More...

#include <DependencyGraph.h>

Public Types

using Id = int
 

Public Member Functions

Id alloc ()
 

Static Public Member Functions

static constexpr Id empty ()
 

Detailed Description

A serial Id allocator.

Definition at line 57 of file DependencyGraph.h.

Member Typedef Documentation

◆ Id

using Id = int

Definition at line 60 of file DependencyGraph.h.

Member Function Documentation

◆ alloc()

Id alloc ( )
inline

Definition at line 61 of file DependencyGraph.h.

Referenced by DependencyGraph::number_of_tensors().

62  {
63  return _counter++;
64  }

◆ empty()

static constexpr Id empty ( )
inlinestatic

Definition at line 65 of file DependencyGraph.h.

Referenced by DependencyGraph::empty_id().

66  {
67  return -1;
68  }

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