Public Types | Public Member Functions | Static Public Member Functions | List of all members
IndexVectorMapTool Class Referenceabstract

#include <IndexVectorMapTool.h>

Inheritance diagram for IndexVectorMapTool:
FclIndexVectorMapTool

Public Types

using Index = unsigned int
 
using IndexVector = std::vector< Index >
 

Public Member Functions

virtual ~IndexVectorMapTool ()=default
 
virtual IndexVector get (Index idx) const =0
 
virtual bool contains (Index idx, Index val)
 

Static Public Member Functions

static Index badIndex ()
 

Detailed Description

Definition at line 15 of file IndexVectorMapTool.h.

Member Typedef Documentation

using IndexVectorMapTool::Index = unsigned int

Definition at line 19 of file IndexVectorMapTool.h.

Definition at line 20 of file IndexVectorMapTool.h.

Constructor & Destructor Documentation

virtual IndexVectorMapTool::~IndexVectorMapTool ( )
virtualdefault

Member Function Documentation

static Index IndexVectorMapTool::badIndex ( )
inlinestatic

Definition at line 22 of file IndexVectorMapTool.h.

22 { return -1; }
virtual bool IndexVectorMapTool::contains ( Index  idx,
Index  val 
)
inlinevirtual

Definition at line 30 of file IndexVectorMapTool.h.

30  {
31  IndexVector vec = get(idx);
32  return find(vec.begin(), vec.end(), val) != vec.end();
33  }
std::vector< Index > IndexVector
virtual IndexVector IndexVectorMapTool::get ( Index  idx) const
pure virtual

Implemented in FclIndexVectorMapTool.


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