Пример #1
0
void CompositeCSU::AddFunctionField(Field *field, Field *base,
                                    Variable *function)
{
  if (m_function_fields == NULL)
    m_function_fields = new Vector<FunctionField>();
  m_function_fields->PushBack(FunctionField(field, base, function));
}
Пример #2
0
void CompositeCSU::AddFunctionField(Field *field, Field *base,
                                    Variable *function)
{
  if (m_function_fields == NULL)
    m_function_fields = new Vector<FunctionField>();

  field->MoveRef(NULL, this);
  if (base)
    base->MoveRef(NULL, this);
  if (function)
    function->MoveRef(NULL, this);
  m_function_fields->PushBack(FunctionField(field, base, function));
}