Xyce
6.1
|
Class Entry<T> defines the parameter member variable access for parameter member variable of type T. More...
#include <N_DEV_Pars.h>
Public Member Functions | |
Entry (T ParameterBase::*member_value_ptr, const T &default_value=T()) | |
Constructs an Entry. More... | |
virtual | ~Entry () |
Destroys the entry. More... | |
virtual const std::type_info & | type () const |
Returns type_info of this entry. More... | |
T ParameterBase::* | getMemberPtr () const |
Return the member pointer to the data member variable that holds the value associated with this parameter. More... | |
const T & | getValue (const ParameterBase &entity) const |
Return the value of the entity's parameter. More... | |
T & | getValue (ParameterBase &entity) const |
Return the value of the entity's parameter. More... | |
void | setValue (ParameterBase &entity, const T &value) const |
Sets the value of the entity's parameter. More... | |
const T & | getDefaultValue () const |
Return the default value of the parameter. More... | |
void | setDefaultValue (const T &value) |
Sets the parameter's default value. More... | |
Private Member Functions | |
Entry (const Entry &) | |
No copying. More... | |
Entry & | operator= (const Entry &) |
No assignment. More... | |
virtual std::ostream & | doPrint (std::ostream &os) const |
Prints the value of the entry to the output stream. More... | |
Private Attributes | |
T | defaultValue_ |
Default value of parameter. More... | |
T ParameterBase::* | memberValuePtr_ |
Member pointer containing value. More... | |
Class Entry<T> defines the parameter member variable access for parameter member variable of type T.
The pointer to the parameter member variable and the default value to set are contained in this class.
Definition at line 217 of file N_DEV_Pars.h.
|
inline |
Constructs an Entry.
Initializes the parameter member variable pointer of type T. Note the member variable pointer are actually offsets into an object where the data for the member exists. So, by storing this pointer the value of any object of type can be retrieved.
The default value ot type T is also contained here.
member_value_ptr | parameter member variable pointer |
default_value | Default value of parameter |
Definition at line 333 of file N_DEV_Pars.h.
|
inlinevirtual |
|
private |
No copying.
|
inlineprivatevirtual |
Prints the value of the entry to the output stream.
os | output stream to write to |
Definition at line 373 of file N_DEV_Pars.h.
|
inline |
Return the default value of the parameter.
All parameters provide a default value when created. The parameter is set to this value and the given flag is cleared on construction. If the value is provided by the net list, the parameter's value is set accordingly and given flag is set to true.
Definition at line 451 of file N_DEV_Pars.h.
|
inline |
Return the member pointer to the data member variable that holds the value associated with this parameter.
Definition at line 388 of file N_DEV_Pars.h.
|
inline |
Return the value of the entity's parameter.
entity | device class or device instance |
Definition at line 403 of file N_DEV_Pars.h.
|
inline |
Return the value of the entity's parameter.
entity | device class or device instance |
Definition at line 418 of file N_DEV_Pars.h.
|
private |
No assignment.
|
inline |
Sets the parameter's default value.
All parameters provide a default value when created. The parameter is set to this value and the given flag is cleared on construction. If the value is provided by the net list, the parameter's value is set accordingly and given flag is set to true.
value | default value of the parameter |
Definition at line 470 of file N_DEV_Pars.h.
|
inline |
Sets the value of the entity's parameter.
entity | device class or device instance |
value | value to set the entity's parameter to |
Definition at line 432 of file N_DEV_Pars.h.
|
inlinevirtual |
Returns type_info of this entry.
Definition at line 357 of file N_DEV_Pars.h.
|
private |
Default value of parameter.
Definition at line 476 of file N_DEV_Pars.h.
|
private |
Member pointer containing value.
Definition at line 477 of file N_DEV_Pars.h.