yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Minisat::LSet Class Reference

#include <SolverTypes.h>

+ Inheritance diagram for Minisat::LSet:
+ Collaboration diagram for Minisat::LSet:

Public Member Functions

int size (void) const
 
void clear (bool free=false)
 
const vec< Lit > & toVec () const
 
Lit operator[] (int index) const
 
void insert (Litk)
 
bool has (Litk)
 

Detailed Description

Definition at line 84 of file SolverTypes.h.

Member Function Documentation

void Minisat::IntSet< Lit , MkIndexLit >::clear ( bool  free = false)
inlineinherited

Definition at line 67 of file IntMap.h.

67  {
68  if (free)
69  in_set.clear(true);
70  else
71  for (int i = 0; i < xs.size(); i++)
72  in_set[xs[i]] = 0;
73  xs.clear(free);
74  }
void free(void *)
void clear(bool dispose=false)
Definition: IntMap.h:52
Size size(void) const
Definition: Vec.h:64
void clear(bool dealloc=false)
Definition: Vec.h:125
IntMap< Lit, char, MkIndexLit > in_set
Definition: IntMap.h:61

+ Here is the call graph for this function:

bool Minisat::IntSet< Lit , MkIndexLit >::has ( Lit  k)
inlineinherited

Definition at line 85 of file IntMap.h.

85 { in_set.reserve(k, 0); return in_set[k]; }
void reserve(K key, V pad)
Definition: IntMap.h:47
IntMap< Lit, char, MkIndexLit > in_set
Definition: IntMap.h:61

+ Here is the call graph for this function:

void Minisat::IntSet< Lit , MkIndexLit >::insert ( Lit  k)
inlineinherited

Definition at line 84 of file IntMap.h.

84 { in_set.reserve(k, 0); if (!in_set[k]) { in_set[k] = 1; xs.push(k); } }
void reserve(K key, V pad)
Definition: IntMap.h:47
void push(void)
Definition: Vec.h:74
IntMap< Lit, char, MkIndexLit > in_set
Definition: IntMap.h:61

+ Here is the call graph for this function:

Lit Minisat::IntSet< Lit , MkIndexLit >::operator[] ( int  index) const
inlineinherited

Definition at line 81 of file IntMap.h.

81 { return xs[index]; }
int Minisat::IntSet< Lit , MkIndexLit >::size ( void  ) const
inlineinherited

Definition at line 66 of file IntMap.h.

66 { return xs.size(); }
Size size(void) const
Definition: Vec.h:64

+ Here is the call graph for this function:

const vec<Lit >& Minisat::IntSet< Lit , MkIndexLit >::toVec ( ) const
inlineinherited

Definition at line 78 of file IntMap.h.

78 { return xs; }

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