avida-ed-library-build/docs/C++notes.txt

54 lines
922 B
Plaintext
Executable File

2017 Aug 16
onstructor
Copy constructor
assignment onstructor (=)
destructor
———————
Implementing an Action
- - write constructor
- - implement GetDescription (. . .)
- - implement Process (. . .)
- - if needed destructor
in avida cfg file
u 0 [_____________}
0 is an update number
[__________] is the name of a cAction
u start:interval:end [_______] [args]
args = usually copied to a new string typically called Largs in constructor)
called m_args internally (class member internal to that class)
class member by convention indicated by m_
———
for web interface we have cWebAction
cAction (virtual)
|
v
cWebAction (virtual)
|
v
cWebActionSomething (implemented) where something is the name.
allows us to use
- json args
- feedback option for data
- packaging data utility
———————————
Organism
<— phnotype
<- genotype
<- hardware