クラス sc_dt::sc_fxnum_fast_subref

#include <sc_fxnum.h>

すべてのメンバ一覧

Public メソッド

 sc_fxnum_fast_subref (const sc_fxnum_fast_subref &)
 ~sc_fxnum_fast_subref ()
bool and_reduce () const
bool nand_reduce () const
bool or_reduce () const
bool nor_reduce () const
bool xor_reduce () const
bool xnor_reduce () const
int length () const
int to_int () const
unsigned int to_uint () const
long to_long () const
unsigned long to_ulong () const
int64 to_int64 () const
uint64 to_uint64 () const
const std::string to_string () const
const std::string to_string (sc_numrep) const
const std::string to_string (sc_numrep, bool) const
 operator sc_bv_base () const
void print (::std::ostream &=::std::cout) const
void scan (::std::istream &=::std::cin)
void dump (::std::ostream &=::std::cout) const

Private メソッド

bool get () const
bool set ()
 sc_fxnum_fast_subref (sc_fxnum_fast &, int, int)
 sc_fxnum_fast_subref ()

Private 変数

sc_fxnum_fastm_num
int m_from
int m_to
sc_bv_basem_bv

フレンド

class sc_fxnum_fast
class sc_fxnum_subref


説明

sc_fxnum.h387 行で定義されています。


コンストラクタとデストラクタ

sc_dt::sc_fxnum_fast_subref::sc_fxnum_fast_subref ( sc_fxnum_fast num_,
int  from_,
int  to_ 
) [inline, private]

sc_fxnum.h2188 行で定義されています。

02190     : m_num( num_ ), m_from( from_ ), m_to( to_ ),
02191       m_bv( *new sc_bv_base( sc_max( m_from, m_to ) -
02192                              sc_min( m_from, m_to ) + 1 ) )
02193 {}

sc_dt::sc_fxnum_fast_subref::sc_fxnum_fast_subref ( const sc_fxnum_fast_subref a  )  [inline]

sc_fxnum.h2199 行で定義されています。

02200     : m_num( a.m_num ), m_from( a.m_from ), m_to( a.m_to ),
02201       m_bv( *new sc_bv_base( a.m_bv ) )
02202 {}

sc_dt::sc_fxnum_fast_subref::~sc_fxnum_fast_subref (  )  [inline]

sc_fxnum.h2208 行で定義されています。

02209 {
02210     delete &m_bv;
02211 }

sc_dt::sc_fxnum_fast_subref::sc_fxnum_fast_subref (  )  [private]


関数

bool sc_dt::sc_fxnum_fast_subref::get (  )  const [private]

sc_fxnum.cpp205 行で定義されています。

00206 {
00207     return m_num.get_slice( m_from, m_to, m_bv );
00208 }

bool sc_dt::sc_fxnum_fast_subref::set (  )  [private]

sc_fxnum.cpp211 行で定義されています。

00212 {
00213     return m_num.set_slice( m_from, m_to, m_bv );
00214 }

bool sc_dt::sc_fxnum_fast_subref::and_reduce (  )  const

bool sc_dt::sc_fxnum_fast_subref::nand_reduce (  )  const

bool sc_dt::sc_fxnum_fast_subref::or_reduce (  )  const

bool sc_dt::sc_fxnum_fast_subref::nor_reduce (  )  const

bool sc_dt::sc_fxnum_fast_subref::xor_reduce (  )  const

bool sc_dt::sc_fxnum_fast_subref::xnor_reduce (  )  const

int sc_dt::sc_fxnum_fast_subref::length (  )  const [inline]

sc_fxnum.h2394 行で定義されています。

02395 {
02396     return m_bv.length();
02397 }

int sc_dt::sc_fxnum_fast_subref::to_int (  )  const [inline]

sc_fxnum.h2404 行で定義されています。

02405 {
02406     SC_FXNUM_FAST_OBSERVER_READ_( m_num )
02407     get();
02408     return m_bv.to_int();
02409 }

unsigned int sc_dt::sc_fxnum_fast_subref::to_uint (  )  const [inline]

sc_fxnum.h2422 行で定義されています。

02423 {
02424     SC_FXNUM_FAST_OBSERVER_READ_( m_num )
02425     get();
02426     return m_bv.to_uint();
02427 }

long sc_dt::sc_fxnum_fast_subref::to_long (  )  const [inline]

sc_fxnum.h2440 行で定義されています。

02441 {
02442     SC_FXNUM_FAST_OBSERVER_READ_( m_num )
02443     get();
02444     return m_bv.to_long();
02445 }

unsigned long sc_dt::sc_fxnum_fast_subref::to_ulong (  )  const [inline]

sc_fxnum.h2449 行で定義されています。

02450 {
02451     SC_FXNUM_FAST_OBSERVER_READ_( m_num )
02452     get();
02453     return m_bv.to_ulong();
02454 }

int64 sc_dt::sc_fxnum_fast_subref::to_int64 (  )  const [inline]

sc_fxnum.h2413 行で定義されています。

02414 {
02415     SC_FXNUM_FAST_OBSERVER_READ_( m_num )
02416     get();
02417     return m_bv.to_int64();
02418 }

uint64 sc_dt::sc_fxnum_fast_subref::to_uint64 (  )  const [inline]

sc_fxnum.h2431 行で定義されています。

02432 {
02433     SC_FXNUM_FAST_OBSERVER_READ_( m_num )
02434     get();
02435     return m_bv.to_uint64();
02436 }

const std::string sc_dt::sc_fxnum_fast_subref::to_string (  )  const [inline]

sc_fxnum.h2478 行で定義されています。

02479 {
02480     get();
02481     return m_bv.to_string();
02482 }

const std::string sc_dt::sc_fxnum_fast_subref::to_string ( sc_numrep  numrep  )  const [inline]

sc_fxnum.h2486 行で定義されています。

02487 {
02488     get();
02489     return m_bv.to_string( numrep );
02490 }

const std::string sc_dt::sc_fxnum_fast_subref::to_string ( sc_numrep  numrep,
bool  w_prefix 
) const [inline]

sc_fxnum.h2494 行で定義されています。

02495 {
02496     get();
02497     return m_bv.to_string( numrep, w_prefix );
02498 }

sc_dt::sc_fxnum_fast_subref::operator sc_bv_base (  )  const [inline]

sc_fxnum.h2504 行で定義されています。

02505 {
02506     SC_FXNUM_FAST_OBSERVER_READ_( m_num )
02507     get();
02508     return m_bv;
02509 }

void sc_dt::sc_fxnum_fast_subref::print ( ::std::ostream &  os = ::std::cout  )  const

sc_fxnum.cpp220 行で定義されています。

00221 {
00222     get();
00223     m_bv.print( os );
00224 }

void sc_dt::sc_fxnum_fast_subref::scan ( ::std::istream &  is = ::std::cin  ) 

sc_fxnum.cpp227 行で定義されています。

00228 {
00229     m_bv.scan( is );
00230     set();
00231 }

void sc_dt::sc_fxnum_fast_subref::dump ( ::std::ostream &  os = ::std::cout  )  const

sc_fxnum.cpp234 行で定義されています。

00235 {
00236     os << "sc_fxnum_fast_subref" << ::std::endl;
00237     os << "(" << ::std::endl;
00238     os << "num  = ";
00239     m_num.dump( os );
00240     os << "from = " << m_from << ::std::endl;
00241     os << "to   = " << m_to << ::std::endl;
00242     os << ")" << ::std::endl;
00243 }


フレンドと関連する関数

friend class sc_fxnum_fast [friend]

sc_fxnum.h389 行で定義されています。

friend class sc_fxnum_subref [friend]

sc_fxnum.h390 行で定義されています。


変数

sc_fxnum.h530 行で定義されています。

sc_fxnum.h531 行で定義されています。

sc_fxnum.h532 行で定義されています。

sc_fxnum.h534 行で定義されています。


このクラスの説明は次のファイルから生成されました:

SystemCに対してFri Jun 6 20:12:42 2008に生成されました。  doxygen 1.5.6