ADMB Documentation  11.1x.2738
 All Classes Files Functions Variables Typedefs Friends Defines
model36.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: model36.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 #include <admodel.h>
00008 
00009 void named_adstring::allocate(const char * s1,const char * _s)
00010 {
00011   model_name_tag::allocate(_s);
00012   (*this)=s1;
00013 }
00014 
00015 void named_adstring::operator = (const char * _s)
00016 {
00017   adstring::operator = (_s);
00018 }
00019 
00020 void named_adstring::operator = (const adstring& _s)
00021 {
00022   adstring::operator = (_s);
00023 }
00024 
00025 void dll_named_adstring::operator = (const char * _s)
00026 {
00027   adstring::operator = (_s);
00028 }
00029 
00030 void dll_named_adstring::operator = (const adstring& _s)
00031 {
00032   adstring::operator = (_s);
00033 }
00034 
00035 void dll_named_adstring::allocate(char ** ps1,const char * _s)
00036 {
00037   named_adstring::allocate(*ps1,_s);
00038 }
00039 
00040 dll_named_adstring::~dll_named_adstring()
00041 {
00042   strcpy(*d,(char*)(*this));
00043 }