Xyce
6.1
|
Class Descriptor describes the parameters stored in the ParametricData parameter map. More...
#include <N_DEV_Pars.h>
Public Member Functions | |
Descriptor (Entry< void > *const entry) | |
Constructs Descriptor. More... | |
virtual | ~Descriptor () |
Destroy Descriptor. More... | |
template<class T > | |
bool | isType () const |
Tests entry data type. More... | |
bool | isComposite () const |
Descriptor & | setOriginalValueStored (bool original_value_flag) |
Sets a boolean marking an original value having been stored. More... | |
bool | hasOriginalValueStored () const |
Returns whether an original value has been stored. More... | |
Descriptor & | setExpressionAccess (ExprAccess expression_access) |
Sets the expression access which describe the usage of the parameter. More... | |
ExprAccess | getExpressionAccess () const |
Gets the expression access which describes the usage of the paramter. More... | |
Descriptor & | setUnit (ParameterUnit unit) |
Sets the units of the parameter, only used to document the parameter. More... | |
ParameterUnit | getUnit () const |
Gets the units of the parameter, only used to document the parameter. More... | |
Descriptor & | setCategory (ParameterCategory category) |
Sets the category of the parameter, only used to document the parameter. More... | |
ParameterCategory | getCategory () const |
Gets the category of the parameter, only used to document the parameter. More... | |
Descriptor & | setDescription (const std::string &description) |
Sets the description of the parameter, only used to document the parameter. More... | |
const std::string & | getDescription () const |
Gets the description of the parameter, only used to document the parameter. More... | |
Descriptor & | setCompositeParametricData (const ParametricData< void > *composite_parametric_data) |
Sets the composite parametric. More... | |
template<class U > | |
const ParametricData< U > * | getCompositeParametricData () const |
Return the composite parameter. More... | |
Descriptor & | setVec (int index) |
sets the vector length of an vectorized parameter More... | |
int | getVec () const |
Gets the vector length of a vectorized parameter. More... | |
const Entry< void > & | getEntry () const |
Gets the entry object of the parameter. More... | |
Entry< void > & | getEntry () |
Gets the entry object of the parameter. More... | |
Descriptor & | setSerialNumber (int serial_number) |
Sets the serial number used to store and retrieve given boolean from the GivenValueMap. More... | |
int | getSerialNumber () const |
Gets the serial number used to store and retireve given boolean fromt he GivenValueMap. More... | |
template<class T > | |
const T & | value (const ParameterBase &entity) const |
Returns the value of the parameter for the entity. More... | |
template<class T > | |
T & | value (ParameterBase &entity) const |
Returns the value of the parameter for the entity. More... | |
template<class T > | |
T ParameterBase::* | getMemberPtr () const |
Returns the parameter member variable pointer of the enrtry. More... | |
bool | hasGivenMember () const |
Tests if parameter has a given data member. More... | |
template<class U > | |
Descriptor & | setGivenMember (bool U::*given) |
Sets the boolean member variable to set if the netlist provides the value. More... | |
bool | getGiven (ParameterBase &entity) const |
Tests if the parameter has been given by the netlist. More... | |
void | setGiven (ParameterBase &entity, bool value) const |
Sets the given state of the parameter to value. More... | |
Private Member Functions | |
Descriptor (const Descriptor &descriptor) | |
Descriptor & | operator= (const Descriptor &descriptor) |
Private Attributes | |
int | serialNumber_ |
Unique identifier of descriptor. More... | |
bool | originalValueFlag_ |
Flag indicating original value was stored. More... | |
int | vec_ |
If > 0 specifies a vector of params.(eg: if = 3 then IC becomes IC1, IC2, IC3) More... | |
ExprAccess | expressionAccess_ |
Flags for parameter attributes, such as whether can be input by user, may depend on time, etc. More... | |
Entry< void > *const | entry_ |
Pointer to entry which contains the value. More... | |
bool | isComposite_ |
ParameterUnit | unit_ |
Unit designator for documentation. More... | |
ParameterCategory | category_ |
Category designator for documentation. More... | |
std::string | description_ |
Description of parameter for documentation. More... | |
const ParametricData< void > * | compositeParametricData_ |
bool ParameterBase::* | given_ |
Pointer to given bool, usually 0. More... | |
Class Descriptor describes the parameters stored in the ParametricData parameter map.
The descriptor contains the Entry for the parameter member variable. Each parameter is assigned a serialNumber_ when it is created and is used by manage the given value map. The parameter may have a given member variable as well. The parameter can be marked to store its original initialized value and the serialNumber_ is used to store this value in the s_originalValueMap.
If the parameter is vectorized, the index to this parameter is in vec_.
The expressionAccess_ is used to indicate the parameter's usage.
The Descriptor also contains the units, catagory and description for documentation generation. serial number, its original value index if the initiazes value needs to be restored, its usage (ExprAccess), units,
Definition at line 509 of file N_DEV_Pars.h.
|
inline |
Constructs Descriptor.
entry | the parameter member variable pointer, type and default value |
Definition at line 520 of file N_DEV_Pars.h.
|
inlinevirtual |
|
private |
|
inline |
Gets the category of the parameter, only used to document the parameter.
Definition at line 674 of file N_DEV_Pars.h.
|
inline |
Return the composite parameter.
A composite parameter is a named aggregation of parameters
Definition at line 736 of file N_DEV_Pars.h.
|
inline |
Gets the description of the parameter, only used to document the parameter.
Definition at line 701 of file N_DEV_Pars.h.
|
inline |
Gets the entry object of the parameter.
Definition at line 776 of file N_DEV_Pars.h.
|
inline |
Gets the entry object of the parameter.
Definition at line 789 of file N_DEV_Pars.h.
|
inline |
Gets the expression access which describes the usage of the paramter.
Definition at line 620 of file N_DEV_Pars.h.
|
inline |
Tests if the parameter has been given by the netlist.
Definition at line 916 of file N_DEV_Pars.h.
|
inline |
Returns the parameter member variable pointer of the enrtry.
Definition at line 867 of file N_DEV_Pars.h.
|
inline |
Gets the serial number used to store and retireve given boolean fromt he GivenValueMap.
Definition at line 816 of file N_DEV_Pars.h.
|
inline |
Gets the units of the parameter, only used to document the parameter.
Definition at line 647 of file N_DEV_Pars.h.
|
inline |
Gets the vector length of a vectorized parameter.
Definition at line 763 of file N_DEV_Pars.h.
|
inline |
Tests if parameter has a given data member.
Parameters may provide a boolean member variable that is set true if the netlist provides the value.
Definition at line 885 of file N_DEV_Pars.h.
|
inline |
Returns whether an original value has been stored.
Definition at line 593 of file N_DEV_Pars.h.
|
inline |
Definition at line 566 of file N_DEV_Pars.h.
|
inline |
Tests entry data type.
Definition at line 558 of file N_DEV_Pars.h.
|
private |
|
inline |
Sets the category of the parameter, only used to document the parameter.
category | category of the parameter |
Definition at line 660 of file N_DEV_Pars.h.
|
inline |
Sets the composite parametric.
A composite parameter is a named aggregation of parameters
composite_parametric_data | composite parameter |
Definition at line 716 of file N_DEV_Pars.h.
|
inline |
Sets the description of the parameter, only used to document the parameter.
description | description of the parameter |
Definition at line 687 of file N_DEV_Pars.h.
|
inline |
Sets the expression access which describe the usage of the parameter.
expression_access | usage of the paraemeter |
Definition at line 606 of file N_DEV_Pars.h.
|
inline |
Sets the given state of the parameter to value.
The parameter's boolean member variable that is set true if exists and the netlist provides the value.
entity | device class or device instance |
value | true if provided by netlist |
Definition at line 938 of file N_DEV_Pars.h.
|
inline |
Sets the boolean member variable to set if the netlist provides the value.
Parameters may provide a boolean member variable that is set true if the netlist provides the value.
given | boolean member variable to be set |
Definition at line 902 of file N_DEV_Pars.h.
|
inline |
Sets a boolean marking an original value having been stored.
original_value_flag |
Definition at line 579 of file N_DEV_Pars.h.
|
inline |
Sets the serial number used to store and retrieve given boolean from the GivenValueMap.
serial_number | serial number of the parameter in the GivenValueMap |
Definition at line 802 of file N_DEV_Pars.h.
|
inline |
Sets the units of the parameter, only used to document the parameter.
unit | units of the parameter |
Definition at line 633 of file N_DEV_Pars.h.
|
inline |
sets the vector length of an vectorized parameter
index |
Definition at line 749 of file N_DEV_Pars.h.
|
inline |
Returns the value of the parameter for the entity.
entity | device class or device instance |
Definition at line 833 of file N_DEV_Pars.h.
|
inline |
Returns the value of the parameter for the entity.
entity | device class or device instance |
Definition at line 851 of file N_DEV_Pars.h.
|
private |
Category designator for documentation.
Definition at line 955 of file N_DEV_Pars.h.
|
private |
Definition at line 957 of file N_DEV_Pars.h.
|
private |
Description of parameter for documentation.
Definition at line 956 of file N_DEV_Pars.h.
|
private |
Pointer to entry which contains the value.
Definition at line 952 of file N_DEV_Pars.h.
|
private |
Flags for parameter attributes, such as whether can be input by user, may depend on time, etc.
Definition at line 950 of file N_DEV_Pars.h.
|
private |
Pointer to given bool, usually 0.
Definition at line 959 of file N_DEV_Pars.h.
|
private |
Definition at line 953 of file N_DEV_Pars.h.
|
private |
Flag indicating original value was stored.
Definition at line 948 of file N_DEV_Pars.h.
|
private |
Unique identifier of descriptor.
Definition at line 947 of file N_DEV_Pars.h.
|
private |
Unit designator for documentation.
Definition at line 954 of file N_DEV_Pars.h.
|
private |
If > 0 specifies a vector of params.(eg: if = 3 then IC becomes IC1, IC2, IC3)
Definition at line 949 of file N_DEV_Pars.h.