1 #ifndef CPPAD_CG_CG_INCLUDED 2 #define CPPAD_CG_CG_INCLUDED 40 std::unique_ptr<Base> value_;
80 inline CG(
const Base& val);
129 inline const Base&
getValue()
const;
137 inline void setValue(
const Base& val);
139 inline bool isIdenticalZero()
const;
140 inline bool isIdenticalOne()
const;
149 inline CG<Base>& operator+=(
const Base& right);
150 inline CG<Base>& operator-=(
const Base& right);
151 inline CG<Base>& operator*=(
const Base& right);
152 inline CG<Base>& operator/=(
const Base& right);
155 inline CG<Base>& operator+=(
const T &right);
157 inline CG<Base>& operator-=(
const T &right);
159 inline CG<Base>& operator/=(
const T &right);
161 inline CG<Base>& operator*=(
const T &right);
176 inline void makeParameter(
const Base& b);
181 std::unique_ptr<Base>& value);
192 friend class Loop<Base>;
206 friend bool GreaterThanZero <Base> (
const CG<Base>& x);
207 friend bool GreaterThanOrZero <Base> (
const CG<Base>& x);
208 friend bool LessThanZero <Base> (
const CG<Base>& x);
209 friend bool LessThanOrZero <Base> (
const CG<Base>& x);
216 friend bool NearEqual <Base> (
const CG<Base>& x,
const CG<Base>& y,
const Base& r,
const Base& a);
217 friend bool NearEqual <Base> (
const Base& x,
const CG<Base>& y,
const Base& r,
const Base& a);
218 friend bool NearEqual <Base> (
const CG<Base>& x,
const Base& y,
const Base& r,
const Base& a);
221 friend CG<Base> CondExp<Base>(CGOpCode op,
226 bool (*compare)(
const Base&,
const Base&));
249 #if CPPAD_USE_CPLUSPLUS_2011 273 static std::function<std::ostream& (std::ostream&, const CG<Base>&)>& FUNC () {
274 static thread_local std::function<std::ostream& (std::ostream&, const CG<Base>&)> FUNC_OBJ =
nullptr;
284 inline std::ostream& operator<<(
295 os << *v.getOperationNode();
304 inline std::ostringstream& operator<<(
305 std::ostringstream& os,
311 os << *v.getOperationNode();
320 inline std::istream& operator>>(
332 template <
class Base>
337 CppAD::ErrorHandler::Call(
false, __LINE__, __FILE__,
"Integer()",
"No value defined");
const Base & getValue() const
void setValue(const Base &val)
bool isValueDefined() const
CodeHandler< Base > * getCodeHandler() const
CG & operator=(const CG< Base > &rhs)