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

_scv_ext_rand.h File Reference

#include "scv/_scv_randomization.h"

Include dependency graph for _scv_ext_rand.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  _scv_extension_rand_enum
class  _scv_extension_rand_N
class  scv_extension_rand
class  scv_extension_rand< T * >
class  scv_extension_rand< T[N]>

Defines

#define _SCV_EXT_RAND_FC_EXTRA_D(T, type_id)
#define _SCV_EXT_RAND_FC_D(T, type_id)
#define _SCV_EXT_RAND_FC_1_D(basic_type, type_id)   _SCV_EXT_RAND_FC_D(basic_type,type_id) \
#define _SCV_EXT_RAND_FC_D_D(T, type_id)
#define _SCV_EXT_RAND_FC_N_D(basic_type)
#define _SCV_INTROSPECTION_BASE   scv_extension_rand<T>
#define _SCV_INTROSPECTION_BASE1   scv_extension_rand<T*>
#define _SCV_INTROSPECTION_BASE2   scv_extension_rand<T[N]>
#define _SCV_INTROSPECTION_BASE_ENUM   _scv_extension_rand_enum

Functions

const string & _scv_get_name (scv_constraint_base *)
void _scv_constraint_wrapup (scv_extensions_if *e)
_scv_constraint_data_get_constraint_data_enum (_scv_extension_rand_enum *data)
void _set_mode_enum (_scv_extension_rand_enum *data, _scv_constraint_data::gen_mode m)
scv_shared_ptr< scv_random_get_random_enum (_scv_extension_rand_enum *data)
bool _scv_has_complex_constraint (scv_extensions_if *)
void _scv_set_constraint (scv_extensions_if *s, bool mode)
void _scv_use_constraint (scv_extensions_if *to, scv_extensions_if *e)
scv_extensions_if_scv_get_extension (scv_smart_ptr_if &s)
 _SCV_EXT_RAND_FC_D (bool, bool)
 _SCV_EXT_RAND_FC_D (char, char)
 _SCV_EXT_RAND_FC_D (unsigned char, unsigned_char)
 _SCV_EXT_RAND_FC_D (short, short)
 _SCV_EXT_RAND_FC_D (int, int)
 _SCV_EXT_RAND_FC_D (long, long)
 _SCV_EXT_RAND_FC_D (float, float)
 _SCV_EXT_RAND_FC_D (double, double)
 _SCV_EXT_RAND_FC_N_D (test_uint< N >)


Define Documentation

#define _SCV_EXT_RAND_FC_1_D basic_type,
type_id       _SCV_EXT_RAND_FC_D(basic_type,type_id) \
 

Definition at line 510 of file _scv_ext_rand.h.

#define _SCV_EXT_RAND_FC_D T,
type_id   
 

Definition at line 475 of file _scv_ext_rand.h.

#define _SCV_EXT_RAND_FC_D_D T,
type_id   
 

Definition at line 514 of file _scv_ext_rand.h.

#define _SCV_EXT_RAND_FC_EXTRA_D T,
type_id   
 

Value:

void set_value_mode(_scv_constraint_data::gen_mode m); \
  void keep_only(const T& value); \
  void keep_only(const T& lb, const T& ub); \
  void keep_only(const list<T>& vlist); \
  \
  void keep_out(const T& value); \
  void keep_out(const T& lb, const T& ub); \
  void keep_out(const list<T>& vlist); \
  _scv_distribution<T> * _get_distribution(); \
  void _set_distribution(_scv_distribution<T>*); \
  virtual ~_scv_extension_rand_ ## type_id(); \
  void set_mode(scv_extensions_if::mode_t t); \
  void set_mode(scv_bag<pair<T, T> >& d); \
  void set_mode(scv_bag<T>& d); \
  void reset_distribution(); \
  scv_extensions_if::mode_t get_mode(void); \
protected:  \
  void _reset_bag_distribution(); \
  void _reset_keep_only_distribution(); \

Definition at line 449 of file _scv_ext_rand.h.

#define _SCV_EXT_RAND_FC_N_D basic_type   
 

Value:

template<int N>  \
class scv_extension_rand<basic_type >  \
 : public _scv_extension_rand_N<basic_type > {}; \

Definition at line 776 of file _scv_ext_rand.h.

#define _SCV_INTROSPECTION_BASE   scv_extension_rand<T>
 

Definition at line 830 of file _scv_ext_rand.h.

#define _SCV_INTROSPECTION_BASE1   scv_extension_rand<T*>
 

Definition at line 832 of file _scv_ext_rand.h.

#define _SCV_INTROSPECTION_BASE2   scv_extension_rand<T[N]>
 

Definition at line 834 of file _scv_ext_rand.h.

#define _SCV_INTROSPECTION_BASE_ENUM   _scv_extension_rand_enum
 

Definition at line 837 of file _scv_ext_rand.h.


Function Documentation

_scv_constraint_data* _get_constraint_data_enum _scv_extension_rand_enum   data [inline]
 

Definition at line 101 of file _scv_ext_rand.h.

References _scv_extension_rand_enum::get_constraint_data().

scv_shared_ptr<scv_random> _get_random_enum _scv_extension_rand_enum   data [inline]
 

Definition at line 111 of file _scv_ext_rand.h.

References _scv_extension_rand_enum::get_constraint_data(), and _scv_constraint_data::get_random().

Referenced by _scv_distribution_base< T >::set_mode().

void _scv_constraint_wrapup scv_extensions_if   e
 

Definition at line 3146 of file scv_constraint.cpp.

_SCV_EXT_RAND_FC_D double   ,
double   
 

_SCV_EXT_RAND_FC_D float   ,
float   
 

_SCV_EXT_RAND_FC_D long   ,
long   
 

_SCV_EXT_RAND_FC_D int   ,
int   
 

_SCV_EXT_RAND_FC_D short   ,
short   
 

_SCV_EXT_RAND_FC_D unsigned    char,
unsigned_char   
 

_SCV_EXT_RAND_FC_D char   ,
char   
 

_SCV_EXT_RAND_FC_D bool   ,
bool   
 

_SCV_EXT_RAND_FC_N_D test_uint< N >   
 

scv_extensions_if* _scv_get_extension scv_smart_ptr_if   s
 

Definition at line 3770 of file scv_constraint.cpp.

References scv_smart_ptr_if::get_extensions_ptr().

Referenced by scv_extension_rand< T >::use_constraint(), and _scv_extension_rand_N< T >::use_constraint().

const string& _scv_get_name scv_constraint_base  
 

Definition at line 3213 of file scv_constraint.cpp.

References scv_constraint_base::get_name_string().

Referenced by _scv_use_constraint().

bool _scv_has_complex_constraint scv_extensions_if  
 

void _scv_set_constraint scv_extensions_if   s,
bool    mode
 

Definition at line 3751 of file scv_constraint.cpp.

void _scv_use_constraint scv_extensions_if   to,
scv_extensions_if   e
 

Definition at line 3670 of file scv_constraint.cpp.

References _scv_find_extension(), _scv_get_name(), _scv_new_constraint(), assert, _scv_constraint_data::get_constraint(), _scv_constraint_data::get_extension(), _scv_constraint_data::get_mode(), _scv_constraint_data::is_complex_constraint(), _scv_constraint_data::is_distribution_constraint(), _scv_constraint_data::is_no_constraint(), _scv_constraint_data::is_range_constraint(), _scv_message::message(), _scv_constraint_data::RANGE_CONSTRAINT, scv_out, _scv_constraint_data::set_generator_from(), _scv_constraint_data::set_mode(), and strcmp().

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

void _set_mode_enum _scv_extension_rand_enum   data,
_scv_constraint_data::gen_mode    m
[inline]
 

Definition at line 106 of file _scv_ext_rand.h.

References _scv_constraint_data::gen_mode, and _scv_extension_rand_enum::set_value_mode().

Referenced by _scv_distribution_base< T >::set_mode().


Generated on Sun Dec 12 19:21:01 2004 for SystemC2.0.1(excludingMSLib)(IncludingSCV) by doxygen1.2.18