Lines Matching refs:sc_bit

22   sc_bit.h -- Bit class.
38 // $Log: sc_bit.h,v $
51 // Andy Goodrich: enabled deprecation message for sc_bit.
54 // Andy Goodrich: added warnings indicating that sc_bit is deprecated and that
74 class sc_bit;
82 // CLASS : sc_bit
88 class sc_bit
130 sc_bit()
137 explicit sc_bit( tp a ) \
152 explicit sc_bit( const sc_logic& a ); // non-VSIA
158 sc_bit( const sc_bit& a )
166 ~sc_bit()
173 sc_bit& operator = ( const sc_bit& b )
177 sc_bit& operator op( tp b ) \
178 { return ( *this op sc_bit( b ) ); }
190 sc_bit& operator = ( const sc_logic& b ); // non-VSIA
195 sc_bit& operator &= ( const sc_bit& b )
198 sc_bit& operator |= ( const sc_bit& b )
201 sc_bit& operator ^= ( const sc_bit& b )
236 friend bool operator == ( const sc_bit& a, const sc_bit& b );
237 friend bool operator != ( const sc_bit& a, const sc_bit& b );
245 friend const sc_bit operator ~ ( const sc_bit& a );
249 sc_bit& b_not()
254 friend const sc_bit operator | ( const sc_bit& a, const sc_bit& b );
255 friend const sc_bit operator & ( const sc_bit& a, const sc_bit& b );
256 friend const sc_bit operator ^ ( const sc_bit& a, const sc_bit& b );
273 inline ret fun( const sc_bit& a, tp b ) \
274 { return fun(a, sc_bit(b) ); } \
275 inline ret fun( tp b, const sc_bit& a ) \
276 { return fun( sc_bit(a), b ); }
285 inline bool operator == ( const sc_bit& a, const sc_bit& b )
288 inline bool operator != ( const sc_bit& a, const sc_bit& b )
296 inline bool equal( const sc_bit& a, const sc_bit& b )
299 inline bool not_equal( const sc_bit& a, const sc_bit& b )
312 inline const sc_bit operator ~ ( const sc_bit& a )
313 { return sc_bit( ! a.m_val ); }
318 inline const sc_bit b_not( const sc_bit& a )
324 inline void b_not( sc_bit& r, const sc_bit& a )
331 inline const sc_bit operator & ( const sc_bit& a, const sc_bit& b )
332 { return sc_bit( a.m_val && b.m_val ); }
334 inline const sc_bit operator | ( const sc_bit& a, const sc_bit& b )
335 { return sc_bit( a.m_val || b.m_val ); }
337 inline const sc_bit operator ^ ( const sc_bit& a, const sc_bit& b )
338 { return sc_bit( a.m_val != b.m_val ); }
340 DEFN_BIN_FUN(const sc_bit,operator&)
341 DEFN_BIN_FUN(const sc_bit,operator|)
342 DEFN_BIN_FUN(const sc_bit,operator^)
346 inline const sc_bit b_and ( const sc_bit& a, const sc_bit& b )
349 inline const sc_bit b_or ( const sc_bit& a, const sc_bit& b )
352 inline const sc_bit b_xor ( const sc_bit& a, const sc_bit& b )
355 DEFN_BIN_FUN(const sc_bit,b_and)
356 DEFN_BIN_FUN(const sc_bit,b_or)
357 DEFN_BIN_FUN(const sc_bit,b_xor)
362 inline void fun( sc_bit& r, const sc_bit& a, tp b ) \
363 { r = fun( a, sc_bit(b) ); } \
364 inline void fun( sc_bit& r, tp a, const sc_bit& b ) \
365 { r = fun( sc_bit(a), b ); }
368 inline void fun( sc_bit& r, const sc_bit& a, const sc_bit& b ) \
388 operator << ( ::std::ostream& os, const sc_bit& a )
396 operator >> ( ::std::istream& is, sc_bit& a )