Required Base Class Member Functions
Keywords: required base class member functions notation default constructor double copy unary operators assignment binary bool example

| Prev | Next |  |  |  |  |  | base_member |

Required Base Class Member Functions
Notation

Symbol | Meaning
`Base` | The base type corresponding to `AD<Base>`
`b` | An object of type `bool`
`d` | An object of type `double`
`x` | An object of type `const Base&`
`y` | An object of type `const Base&`
`z` | An object of type `Base`

Default Constructor
`Base z`
Double Constructor
`Base z(d)`
Copy Constructor
`Base z(x)`
Unary Operators
For `op` equal to `+`, `-` the following operation must be supported: `
z = op x`
Assignment Operators
For `op` equal to `=` , `+=`, `-=`, `*=`, and `/=` the following operation must be supported: `
z op x`
Binary Operators
For `op` equal to `+`, `-`, `*`, and `/` the following operation must be supported: `
z = x op y`
Bool Operators
For `op` equal to `==`, `!=`, `<=`, the following operation must be supported: `
b = x op y`
Example
See the heading Class Definition in base_alloc .

Input File: omh/base_require/base_member.omh