Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

_scv_constraint_data Class Reference

#include <_scv_randomization.h>

Collaboration diagram for _scv_constraint_data:

Collaboration graph
[legend]
List of all members.

Public Types

enum  gen_mode {
  NO_CONSTRAINT, RANGE_CONSTRAINT, CONSTRAINT, EXTENSION,
  DISTRIBUTION, DISTRIBUTION_RANGE
}
enum  gen_type {
  IGEN, ILGEN, IBGEN, UGEN,
  ULGEN, UBGEN, DGEN, EMPTY
}

Public Methods

 _scv_constraint_data ()
 _scv_constraint_data (const _scv_constraint_data &rhs)
 ~_scv_constraint_data ()
scv_extensions_ifget_extension ()
scv_constraint_baseget_constraint ()
void set_generator_from (scv_extensions_if *to, scv_extensions_if *from)
scv_shared_ptr< scv_randomget_random (scv_extensions_if *e)
gen_mode get_mode ()
scv_extensions_if::mode_t get_ext_mode ()
void set_extension (scv_extensions_if *e)
void set_constraint (scv_constraint_base *c)
void set_random (scv_shared_ptr< scv_random > g)
void set_mode (gen_mode m)
void set_gen_type (gen_type t)
void reset_distribution (scv_extensions_if *s)
gen_type get_gen_type ()
void set_ext_mode (scv_extensions_if::mode_t m, int lb=0, int ub=0)
_scv_constraint_range_generator_unsignedget_unsigned_generator (scv_extensions_if *s)
_scv_constraint_range_generator_unsigned_llget_unsigned_ll_generator (scv_extensions_if *s)
_scv_constraint_range_generator_intget_int_generator (scv_extensions_if *s)
_scv_constraint_range_generator_int_llget_int_ll_generator (scv_extensions_if *s)
_scv_constraint_range_generator_unsigned_bigget_unsigned_big_generator (scv_extensions_if *s)
_scv_constraint_range_generator_signed_bigget_signed_big_generator (scv_extensions_if *s)
_scv_constraint_range_generator_doubleget_double_generator (scv_extensions_if *s)
bool is_complex_constraint ()
bool is_range_constraint ()
bool is_no_constraint ()
bool is_distribution_constraint ()
bool is_random_mode ()
bool is_scan_mode ()
bool is_avoid_duplicate_mode ()

Public Attributes

union {
   int   int_
   unsigned int   unsigned_
   double   double_
prev_val_
int lb_scan_
int ub_scan_

Member Enumeration Documentation

enum _scv_constraint_data::gen_mode
 

Enumeration values:
NO_CONSTRAINT 
RANGE_CONSTRAINT 
CONSTRAINT 
EXTENSION 
DISTRIBUTION 
DISTRIBUTION_RANGE 

Definition at line 71 of file _scv_randomization.h.

Referenced by _set_mode_enum(), _scv_constraint_manager::assignRandomValue(), get_mode(), set_mode(), _scv_extension_rand_enum::set_value_mode(), and _scv_extension_rand_N< T >::set_value_mode().

enum _scv_constraint_data::gen_type
 

Enumeration values:
IGEN 
ILGEN 
IBGEN 
UGEN 
ULGEN 
UBGEN 
DGEN 
EMPTY 

Definition at line 94 of file _scv_randomization.h.

Referenced by get_gen_type(), and set_gen_type().


Constructor & Destructor Documentation

_scv_constraint_data::_scv_constraint_data  
 

Definition at line 3376 of file scv_constraint.cpp.

References EMPTY, and prev_val_.

_scv_constraint_data::_scv_constraint_data const _scv_constraint_data &    rhs
 

Definition at line 3384 of file scv_constraint.cpp.

References _gen_type, constr_, ext_mode_, extv_, gen_, lb_scan_, mode_, prev_val_, and ub_scan_.

_scv_constraint_data::~_scv_constraint_data  
 

Definition at line 3396 of file scv_constraint.cpp.

References DGEN, EMPTY, IBGEN, IGEN, ILGEN, UBGEN, UGEN, and ULGEN.


Member Function Documentation

scv_constraint_base* _scv_constraint_data::get_constraint   [inline]
 

Definition at line 112 of file _scv_randomization.h.

Referenced by _scv_use_constraint(), _scv_constraint_manager::assignRandomValue(), check_mode(), and reset_distribution().

_scv_constraint_range_generator_double * _scv_constraint_data::get_double_generator scv_extensions_if   s
 

Definition at line 3657 of file scv_constraint.cpp.

References _scv_constraint_range_generator_double, DGEN, get_random(), and set_gen_type().

Referenced by generate_value_range_constraint(), and reset_distribution().

scv_extensions_if::mode_t _scv_constraint_data::get_ext_mode   [inline]
 

Definition at line 116 of file _scv_randomization.h.

Referenced by generate_value_range_constraint(), and _scv_extension_rand_N< T >::get_mode().

scv_extensions_if* _scv_constraint_data::get_extension   [inline]
 

Definition at line 111 of file _scv_randomization.h.

Referenced by _scv_use_constraint(), check_mode(), generate_value_extension(), reset_distribution(), _scv_extension_rand_enum::uninitialize(), _scv_extension_rand_N< T >::uninitialize(), and scv_extension_rand< T >::uninitialize().

gen_type _scv_constraint_data::get_gen_type   [inline]
 

Definition at line 123 of file _scv_randomization.h.

References gen_type.

Referenced by check_mode(), generate_value_range_constraint(), _scv_extension_rand_enum::get_generator(), _scv_extension_rand_N< T >::get_generator(), and reset_distribution().

_scv_constraint_range_generator_int * _scv_constraint_data::get_int_generator scv_extensions_if   s
 

Definition at line 3601 of file scv_constraint.cpp.

References _scv_constraint_range_generator_int, get_random(), IGEN, and set_gen_type().

Referenced by generate_value_range_constraint(), and reset_distribution().

_scv_constraint_range_generator_int_ll * _scv_constraint_data::get_int_ll_generator scv_extensions_if   s
 

Definition at line 3613 of file scv_constraint.cpp.

References _scv_constraint_range_generator_int_ll, get_random(), ILGEN, and set_gen_type().

Referenced by generate_value_range_constraint(), and reset_distribution().

gen_mode _scv_constraint_data::get_mode void    [inline]
 

Definition at line 115 of file _scv_randomization.h.

References gen_mode.

Referenced by _scv_use_constraint(), _scv_distribution< T >::generate_value_(), _scv_extension_rand_enum::uninitialize(), _scv_extension_rand_N< T >::uninitialize(), and scv_extension_rand< T >::uninitialize().

scv_shared_ptr< scv_random > _scv_constraint_data::get_random scv_extensions_if   e
 

Definition at line 3426 of file scv_constraint.cpp.

References scv_shared_ptr< scv_random >::isNull().

Referenced by _get_random_enum(), _scv_assign_enum_value(), _scv_constraint_manager::assignRandomValue(), generate_value_distribution_range(), generate_value_distribution_range_bigvalue(), generate_value_extension(), get_double_generator(), get_int_generator(), get_int_ll_generator(), _scv_extension_rand_enum::get_random(), _scv_extension_rand_N< T >::get_random(), scv_extension_rand< T * >::get_random(), scv_extension_rand< T[N]>::get_random(), scv_extension_rand< T >::get_random(), get_signed_big_generator(), get_unsigned_big_generator(), get_unsigned_generator(), get_unsigned_ll_generator(), and _scv_distribution_base< T >::set_mode().

_scv_constraint_range_generator_signed_big * _scv_constraint_data::get_signed_big_generator scv_extensions_if   s
 

Definition at line 3642 of file scv_constraint.cpp.

References _scv_constraint_range_generator_signed_big, get_random(), IBGEN, and set_gen_type().

Referenced by generate_value_range_constraint(), and reset_distribution().

_scv_constraint_range_generator_unsigned_big * _scv_constraint_data::get_unsigned_big_generator scv_extensions_if   s
 

Definition at line 3625 of file scv_constraint.cpp.

References _scv_constraint_range_generator_unsigned_big, get_random(), set_gen_type(), and UBGEN.

Referenced by generate_value_range_constraint(), and reset_distribution().

_scv_constraint_range_generator_unsigned * _scv_constraint_data::get_unsigned_generator scv_extensions_if   s
 

Definition at line 3563 of file scv_constraint.cpp.

References _scv_constraint_range_generator_unsigned, get_random(), set_gen_type(), and UGEN.

Referenced by generate_value_range_constraint(), _scv_extension_rand_enum::get_generator(), and reset_distribution().

_scv_constraint_range_generator_unsigned_ll * _scv_constraint_data::get_unsigned_ll_generator scv_extensions_if   s
 

Definition at line 3582 of file scv_constraint.cpp.

References _scv_constraint_range_generator_unsigned_ll, get_random(), set_gen_type(), and ULGEN.

Referenced by generate_value_range_constraint(), and reset_distribution().

bool _scv_constraint_data::is_avoid_duplicate_mode   [inline]
 

Definition at line 140 of file _scv_randomization.h.

Referenced by _scv_constraint_manager::assignRandomValue().

bool _scv_constraint_data::is_complex_constraint   [inline]
 

Definition at line 132 of file _scv_randomization.h.

References CONSTRAINT.

Referenced by _scv_use_constraint().

bool _scv_constraint_data::is_distribution_constraint   [inline]
 

Definition at line 135 of file _scv_randomization.h.

References DISTRIBUTION, and DISTRIBUTION_RANGE.

Referenced by _scv_set_constraint(), _scv_use_constraint(), and reset_distribution().

bool _scv_constraint_data::is_no_constraint   [inline]
 

Definition at line 134 of file _scv_randomization.h.

References NO_CONSTRAINT.

Referenced by _scv_use_constraint().

bool _scv_constraint_data::is_random_mode   [inline]
 

Definition at line 138 of file _scv_randomization.h.

bool _scv_constraint_data::is_range_constraint   [inline]
 

Definition at line 133 of file _scv_randomization.h.

References RANGE_CONSTRAINT.

Referenced by _scv_set_constraint(), _scv_use_constraint(), and reset_distribution().

bool _scv_constraint_data::is_scan_mode   [inline]
 

Definition at line 139 of file _scv_randomization.h.

Referenced by _scv_constraint_manager::assignRandomValue().

void _scv_constraint_data::reset_distribution scv_extensions_if   s
 

Definition at line 3517 of file scv_constraint.cpp.

References _SCV_REMOVE_GEN, CONSTRAINT, DGEN, EMPTY, get_constraint(), get_double_generator(), get_extension(), get_gen_type(), get_int_generator(), get_int_ll_generator(), get_signed_big_generator(), get_unsigned_big_generator(), get_unsigned_generator(), get_unsigned_ll_generator(), IBGEN, IGEN, ILGEN, is_distribution_constraint(), is_range_constraint(), NO_CONSTRAINT, set_ext_mode(), set_mode(), UBGEN, UGEN, and ULGEN.

Referenced by _scv_extension_rand_enum::_reset_keep_only_distribution(), and _scv_extension_rand_N< T >::_reset_keep_only_distribution().

void _scv_constraint_data::set_constraint scv_constraint_base   c [inline]
 

Definition at line 118 of file _scv_randomization.h.

Referenced by _scv_extension_rand_enum::set_constraint(), _scv_extension_rand_N< T >::set_constraint(), scv_extension_rand< T[N]>::set_constraint(), and scv_extension_rand< T >::set_constraint().

void _scv_constraint_data::set_ext_mode scv_extensions_if::mode_t    m,
int    lb = 0,
int    ub = 0
 

Definition at line 3506 of file scv_constraint.cpp.

References lb_scan_, and ub_scan_.

Referenced by reset_distribution(), _scv_distribution_base< T >::set_mode(), _scv_extension_rand_N< T >::set_mode(), and _scv_extension_rand_N< T >::set_value_mode().

void _scv_constraint_data::set_extension scv_extensions_if   e [inline]
 

Definition at line 117 of file _scv_randomization.h.

Referenced by _scv_extension_rand_enum::set_extension(), _scv_extension_rand_N< T >::set_extension(), scv_extension_rand< T[N]>::set_extension(), and scv_extension_rand< T >::set_extension().

void _scv_constraint_data::set_gen_type gen_type    t [inline]
 

Definition at line 121 of file _scv_randomization.h.

References gen_type.

Referenced by get_double_generator(), get_int_generator(), get_int_ll_generator(), get_signed_big_generator(), get_unsigned_big_generator(), get_unsigned_generator(), get_unsigned_ll_generator(), and set_generator_from().

void _scv_constraint_data::set_generator_from scv_extensions_if   to,
scv_extensions_if   from
 

Definition at line 3446 of file scv_constraint.cpp.

References _scv_constraint_range_generator_double, _scv_constraint_range_generator_int, _scv_constraint_range_generator_int_ll, _scv_constraint_range_generator_signed_big, _scv_constraint_range_generator_unsigned, _scv_constraint_range_generator_unsigned_big, _scv_constraint_range_generator_unsigned_ll, _SCV_REMOVE_GEN, DGEN, EMPTY, IBGEN, IGEN, ILGEN, set_gen_type(), UBGEN, UGEN, and ULGEN.

Referenced by _scv_use_constraint().

void _scv_constraint_data::set_mode gen_mode    m [inline]
 

Definition at line 120 of file _scv_randomization.h.

References gen_mode.

Referenced by _scv_set_constraint(), _scv_use_constraint(), check_mode(), _scv_extension_rand_enum::get_generator(), _scv_extension_rand_N< T >::get_generator(), reset_distribution(), _scv_extension_rand_enum::set_extension(), _scv_extension_rand_N< T >::set_extension(), scv_extension_rand< T[N]>::set_extension(), scv_extension_rand< T >::set_extension(), _scv_distribution_base< T >::set_mode(), _scv_extension_rand_enum::set_value_mode(), and _scv_extension_rand_N< T >::set_value_mode().

void _scv_constraint_data::set_random scv_shared_ptr< scv_random   g [inline]
 

Definition at line 119 of file _scv_randomization.h.

Referenced by _scv_extension_rand_enum::set_random(), _scv_extension_rand_N< T >::set_random(), scv_extension_rand< T * >::set_random(), scv_extension_rand< T[N]>::set_random(), and scv_extension_rand< T >::set_random().


Member Data Documentation

double _scv_constraint_data::double_
 

Definition at line 89 of file _scv_randomization.h.

int _scv_constraint_data::int_
 

Definition at line 87 of file _scv_randomization.h.

int _scv_constraint_data::lb_scan_
 

Definition at line 91 of file _scv_randomization.h.

Referenced by _scv_constraint_data(), _scv_constraint_manager::assignRandomValue(), and set_ext_mode().

union { ... } _scv_constraint_data::prev_val_
 

Referenced by _scv_constraint_data(), and _scv_constraint_manager::assignRandomValue().

int _scv_constraint_data::ub_scan_
 

Definition at line 92 of file _scv_randomization.h.

Referenced by _scv_constraint_data(), and set_ext_mode().

unsigned int _scv_constraint_data::unsigned_
 

Definition at line 88 of file _scv_randomization.h.


The documentation for this class was generated from the following files:
Generated on Sun Dec 12 19:22:34 2004 for SystemC2.0.1(excludingMSLib)(IncludingSCV) by doxygen1.2.18