Minsky
minsky::TrackedIntrusiveMap< K, V > Struct Template Reference

#include <intrusiveMap.h>

Inheritance diagram for minsky::TrackedIntrusiveMap< K, V >:
Inheritance graph
Collaboration diagram for minsky::TrackedIntrusiveMap< K, V >:
Collaboration graph

Public Member Functions

const std::set< K > & accessLog () const
 
void clearAccessLog ()
 
bool hasBeenAccessed (K x)
 
template<class... A>
 TrackedIntrusiveMap (A... a)
 
- Public Member Functions inherited from minsky::IntrusiveMap< K, V >
 IntrusiveMap (A... a)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
iterator find (const K &k)
 
const_iterator find (const K &k) const
 
size_t count (const K &k) const
 
std::pair< iterator, bool > insert (const value_type &x)
 
void insert (I1 i1, I2 i2)
 
void insert (const K &k, const V &v)
 
value_typeoperator[] (const K &k)
 
value_type operator[] (const K &k) const
 
void swap (IntrusiveMap &x)
 
std::set< K > keys () const
 

Additional Inherited Members

- Public Types inherited from minsky::IntrusiveMap< K, V >
typedef Super::const_iterator const_iterator
 
typedef Super::value_type value_type
 
typedef K key_type
 
typedef V mapped_type
 
- Public Attributes inherited from minsky::IntrusiveMap< K, V >
std::set< K > updateAccess
 track writeable access into this Map More...
 

Detailed Description

template<class K, class V>
struct minsky::TrackedIntrusiveMap< K, V >

Definition at line 167 of file intrusiveMap.h.

Constructor & Destructor Documentation

◆ TrackedIntrusiveMap()

template<class K , class V >
template<class... A>
minsky::TrackedIntrusiveMap< K, V >::TrackedIntrusiveMap ( A...  a)
inline

Definition at line 173 of file intrusiveMap.h.

173  :
174  IntrusiveMap<K,V>(std::forward<A>(a)...) {}

Member Function Documentation

◆ accessLog()

template<class K , class V >
const std::set<K>& minsky::TrackedIntrusiveMap< K, V >::accessLog ( ) const
inline

Definition at line 169 of file intrusiveMap.h.

References minsky::IntrusiveMap< K, V >::updateAccess.

169 {return this->updateAccess;}
std::set< K > updateAccess
track writeable access into this Map
Definition: intrusiveMap.h:92

◆ clearAccessLog()

template<class K , class V >
void minsky::TrackedIntrusiveMap< K, V >::clearAccessLog ( )
inline

Definition at line 170 of file intrusiveMap.h.

References minsky::IntrusiveMap< K, V >::updateAccess.

170 {this->updateAccess.clear();}
std::set< K > updateAccess
track writeable access into this Map
Definition: intrusiveMap.h:92

◆ hasBeenAccessed()

template<class K , class V >
bool minsky::TrackedIntrusiveMap< K, V >::hasBeenAccessed ( x)
inline

Definition at line 172 of file intrusiveMap.h.

References minsky::IntrusiveMap< K, V >::updateAccess.

172 {return this->updateAccess.count(x);}
std::set< K > updateAccess
track writeable access into this Map
Definition: intrusiveMap.h:92

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