Krita Source Code Documentation
Loading...
Searching...
No Matches
lazy_fill_graph_index_map< Graph, Descriptor, Index > Struct Template Reference

#include <kis_lazy_fill_graph.h>

Public Types

typedef readable_property_map_tag category
 
typedef Descriptor key_type
 
typedef reference_type reference
 
typedef Index reference_type
 
typedef Index value_type
 

Public Member Functions

 lazy_fill_graph_index_map ()
 
 lazy_fill_graph_index_map (const Graph &graph)
 
value_type operator[] (key_type key) const
 

Protected Attributes

const Graph * m_graph
 

Friends

Index get (const lazy_fill_graph_index_map< Graph, Descriptor, Index > &index_map, const typename lazy_fill_graph_index_map< Graph, Descriptor, Index >::key_type &key)
 

Detailed Description

template<typename Graph, typename Descriptor, typename Index>
struct lazy_fill_graph_index_map< Graph, Descriptor, Index >

Definition at line 47 of file kis_lazy_fill_graph.h.

Member Typedef Documentation

◆ category

template<typename Graph , typename Descriptor , typename Index >
typedef readable_property_map_tag lazy_fill_graph_index_map< Graph, Descriptor, Index >::category

Definition at line 53 of file kis_lazy_fill_graph.h.

◆ key_type

template<typename Graph , typename Descriptor , typename Index >
typedef Descriptor lazy_fill_graph_index_map< Graph, Descriptor, Index >::key_type

Definition at line 52 of file kis_lazy_fill_graph.h.

◆ reference

template<typename Graph , typename Descriptor , typename Index >
typedef reference_type lazy_fill_graph_index_map< Graph, Descriptor, Index >::reference

Definition at line 51 of file kis_lazy_fill_graph.h.

◆ reference_type

template<typename Graph , typename Descriptor , typename Index >
typedef Index lazy_fill_graph_index_map< Graph, Descriptor, Index >::reference_type

Definition at line 50 of file kis_lazy_fill_graph.h.

◆ value_type

template<typename Graph , typename Descriptor , typename Index >
typedef Index lazy_fill_graph_index_map< Graph, Descriptor, Index >::value_type

Definition at line 49 of file kis_lazy_fill_graph.h.

Constructor & Destructor Documentation

◆ lazy_fill_graph_index_map() [1/2]

template<typename Graph , typename Descriptor , typename Index >
lazy_fill_graph_index_map< Graph, Descriptor, Index >::lazy_fill_graph_index_map ( )
inline

Definition at line 55 of file kis_lazy_fill_graph.h.

55{ }

◆ lazy_fill_graph_index_map() [2/2]

template<typename Graph , typename Descriptor , typename Index >
lazy_fill_graph_index_map< Graph, Descriptor, Index >::lazy_fill_graph_index_map ( const Graph & graph)
inline

Definition at line 57 of file kis_lazy_fill_graph.h.

57 :
58 m_graph(&graph) { }

Member Function Documentation

◆ operator[]()

template<typename Graph , typename Descriptor , typename Index >
value_type lazy_fill_graph_index_map< Graph, Descriptor, Index >::operator[] ( key_type key) const
inline

Definition at line 60 of file kis_lazy_fill_graph.h.

60 {
61 value_type index = m_graph->index_of(key);
62 LF_SANITY_ASSERT(index >= 0);
63 return index;
64 }
#define LF_SANITY_ASSERT(x)

References LF_SANITY_ASSERT, and lazy_fill_graph_index_map< Graph, Descriptor, Index >::m_graph.

Friends And Related Symbol Documentation

◆ get

template<typename Graph , typename Descriptor , typename Index >
Index get ( const lazy_fill_graph_index_map< Graph, Descriptor, Index > & index_map,
const typename lazy_fill_graph_index_map< Graph, Descriptor, Index >::key_type & key )
friend

Definition at line 67 of file kis_lazy_fill_graph.h.

69 {
70 return (index_map[key]);
71 }

Member Data Documentation

◆ m_graph

template<typename Graph , typename Descriptor , typename Index >
const Graph* lazy_fill_graph_index_map< Graph, Descriptor, Index >::m_graph
protected

Definition at line 74 of file kis_lazy_fill_graph.h.


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