yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Minisat::VMap< T > Class Template Reference

#include <SolverTypes.h>

+ Inheritance diagram for Minisat::VMap< T >:
+ Collaboration diagram for Minisat::VMap< T >:

Public Member Functions

bool has (Vark) const
 
const T & operator[] (Vark) const
 
T & operator[] (Vark)
 
const T * begin () const
 
T * begin ()
 
const T * end () const
 
T * end ()
 
void reserve (Varkey, Tpad)
 
void reserve (Varkey)
 
void insert (Varkey, Tval, Tpad)
 
void insert (Varkey, Tval)
 
void clear (bool dispose=false)
 
void moveTo (IntMap &to)
 
void copyTo (IntMap &to) const
 

Detailed Description

template<class T>
class Minisat::VMap< T >

Definition at line 82 of file SolverTypes.h.

Member Function Documentation

const T * Minisat::IntMap< Var , T , MkIndexDefault<Var > >::begin ( ) const
inlineinherited

Definition at line 42 of file IntMap.h.

42 { return &map[0]; }
T * Minisat::IntMap< Var , T , MkIndexDefault<Var > >::begin ( )
inlineinherited

Definition at line 44 of file IntMap.h.

44 { return &map[0]; }
void Minisat::IntMap< Var , T , MkIndexDefault<Var > >::clear ( bool  dispose = false)
inlineinherited

Definition at line 52 of file IntMap.h.

52 { map.clear(dispose); }
void clear(bool dealloc=false)
Definition: Vec.h:125
void Minisat::IntMap< Var , T , MkIndexDefault<Var > >::copyTo ( IntMap< Var, T > &  to) const
inlineinherited

Definition at line 54 of file IntMap.h.

54 { map.copyTo(to.map); to.index = index; }
void copyTo(vec< T > &copy) const
Definition: Vec.h:92
MkIndexDefault< Var > index
Definition: IntMap.h:33
const T * Minisat::IntMap< Var , T , MkIndexDefault<Var > >::end ( ) const
inlineinherited

Definition at line 43 of file IntMap.h.

43 { return &map[map.size()]; }
Size size(void) const
Definition: Vec.h:64
T * Minisat::IntMap< Var , T , MkIndexDefault<Var > >::end ( )
inlineinherited

Definition at line 45 of file IntMap.h.

45 { return &map[map.size()]; }
Size size(void) const
Definition: Vec.h:64
bool Minisat::IntMap< Var , T , MkIndexDefault<Var > >::has ( Var  k) const
inlineinherited

Definition at line 37 of file IntMap.h.

37 { return index(k) < map.size(); }
Size size(void) const
Definition: Vec.h:64
MkIndexDefault< Var > index
Definition: IntMap.h:33
void Minisat::IntMap< Var , T , MkIndexDefault<Var > >::insert ( Var  key,
val,
pad 
)
inlineinherited

Definition at line 49 of file IntMap.h.

49 { reserve(key, pad); operator[](key) = val; }
void reserve(Varkey, Tpad)
Definition: IntMap.h:47
const T & operator[](Vark) const
Definition: IntMap.h:39
void Minisat::IntMap< Var , T , MkIndexDefault<Var > >::insert ( Var  key,
val 
)
inlineinherited

Definition at line 50 of file IntMap.h.

50 { reserve(key); operator[](key) = val; }
void reserve(Varkey, Tpad)
Definition: IntMap.h:47
const T & operator[](Vark) const
Definition: IntMap.h:39
void Minisat::IntMap< Var , T , MkIndexDefault<Var > >::moveTo ( IntMap< Var, T > &  to)
inlineinherited

Definition at line 53 of file IntMap.h.

53 { map.moveTo(to.map); to.index = index; }
void moveTo(vec< T > &dest)
Definition: Vec.h:93
MkIndexDefault< Var > index
Definition: IntMap.h:33
const T & Minisat::IntMap< Var , T , MkIndexDefault<Var > >::operator[] ( Var  k) const
inlineinherited

Definition at line 39 of file IntMap.h.

39 { assert(has(k)); return map[index(k)]; }
bool has(Vark) const
Definition: IntMap.h:37
MkIndexDefault< Var > index
Definition: IntMap.h:33
T & Minisat::IntMap< Var , T , MkIndexDefault<Var > >::operator[] ( Var  k)
inlineinherited

Definition at line 40 of file IntMap.h.

40 { assert(has(k)); return map[index(k)]; }
bool has(Vark) const
Definition: IntMap.h:37
MkIndexDefault< Var > index
Definition: IntMap.h:33
void Minisat::IntMap< Var , T , MkIndexDefault<Var > >::reserve ( Var  key,
pad 
)
inlineinherited

Definition at line 47 of file IntMap.h.

47 { map.growTo(index(key)+1, pad); }
void growTo(Size size)
Definition: Vec.h:117
MkIndexDefault< Var > index
Definition: IntMap.h:33
void Minisat::IntMap< Var , T , MkIndexDefault<Var > >::reserve ( Var  key)
inlineinherited

Definition at line 48 of file IntMap.h.

48 { map.growTo(index(key)+1); }
void growTo(Size size)
Definition: Vec.h:117
MkIndexDefault< Var > index
Definition: IntMap.h:33

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