Public Member Functions | Protected Attributes | List of all members
CRT::detail::Node< BASE, ID > Struct Template Reference

#include <CRTID.h>

Inheritance diagram for CRT::detail::Node< BASE, ID >:
CRT::detail::Node< LayerID, uint8_t > CRT::StripID

Public Member Functions

 Node (const BASE &base, const ID &id)
 
virtual ~Node ()=default
 
bool operator== (const Node< BASE, ID > &other) const
 
bool operator< (const Node< BASE, ID > &other) const
 

Protected Attributes

const ID fID
 

Detailed Description

template<class BASE, class ID>
struct CRT::detail::Node< BASE, ID >

Definition at line 62 of file CRTID.h.

Constructor & Destructor Documentation

template<class BASE, class ID>
CRT::detail::Node< BASE, ID >::Node ( const BASE &  base,
const ID &  id 
)
inlineexplicit

Definition at line 64 of file CRTID.h.

64 : BASE(base), fID(id) {}
const ID fID
Definition: CRTID.h:88
template<class BASE, class ID>
virtual CRT::detail::Node< BASE, ID >::~Node ( )
virtualdefault

Member Function Documentation

template<class BASE, class ID>
bool CRT::detail::Node< BASE, ID >::operator< ( const Node< BASE, ID > &  other) const
inline

Definition at line 80 of file CRTID.h.

81  {
82  //if(this->BASE::operator<(other)) return true;
83  if(!(this->BASE::operator==(other))) return this->BASE::operator<(other);
84  return fID < other.fID;
85  }
bool operator<(ProductInfo const &a, ProductInfo const &b)
Definition: ProductInfo.cc:51
const ID fID
Definition: CRTID.h:88
template<class BASE, class ID>
bool CRT::detail::Node< BASE, ID >::operator== ( const Node< BASE, ID > &  other) const
inline

Definition at line 74 of file CRTID.h.

75  {
76  if(!(this->BASE::operator==(other))) return false;
77  return fID == other.fID;
78  }
const ID fID
Definition: CRTID.h:88

Member Data Documentation

template<class BASE, class ID>
const ID CRT::detail::Node< BASE, ID >::fID
protected

Definition at line 88 of file CRTID.h.


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