hp2FEM  0.1
include/model/Node.h
00001 #ifndef _NODE_H_
00002 #define _NODE_H_
00003 // ---------------------------------------------
00004 // company   : 
00005 // user      : 
00006 // date      : 22 Mar 2015 17:25
00007 // file      : Node.h
00008 // markers   : Full
00009 // language  : C++
00010 // generator : Metamill 6.0
00011 // ---------------------------------------------
00012 
00013 //#UBLK-BEG-HEADERH
00014 //==============================================================
00015 // Description : 
00016 //--------------------------------------------------------------
00017 // Author      : Gilberto Luis
00018 // Created     : 23 May 2011
00019 //--------------------------------------------------------------
00020 // Change history : 
00021 //   23 May 2011 (Gilberto Luis) Initial version generated
00022 //
00023 //==============================================================
00024 //#UBLK-END-HEADERH
00025 
00026 /*=================================================================================================
00027 =                                                                                                 =
00028 =       Copyright 2010-2015  Marco Lucio Bittencourt / Fabiano Fernandes Bargos                       =
00029 =                        Gilberto Luis Valente / Jorge Luis Suzuki / Allan Patrick Cordeiro Dias  =
00030 =                                                                                                 =
00031 =       Licensed under the Apache License, Version 2.0 (the "License");                               =
00032 =       you may not use this file except in compliance with the License.                              =
00033 =       You may obtain a copy of the License at                                                       =
00034 =                                                                                                 =
00035 =               http://www.apache.org/licenses/LICENSE-2.0                                                =
00036 =                                                                                                 =
00037 =       Unless required by applicable law or agreed to in writing, software                           =
00038 =       distributed under the License is distributed on an "AS IS" BASIS,                             =
00039 =       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.                      =
00040 =       See the License for the specific language governing permissions and                           =
00041 =       limitations under the License.                                                                =
00042 =                                                                                                 =
00043 =================================================================================================*/
00044 
00045 
00046 #include <cstdio>
00047 #include "ds/BuiltInArray.h"
00048 
00049 
00059 class Node
00060 {
00061 //#UBLK-BEG-CLASSDEF mm:4527a731-f997-11df-9ddc-963be5e4332b
00062 //#UBLK-END-CLASSDEF
00063 
00064  public:
00065 
00066    // METHOD=mm:1a4a13e3-020d-11e0-9503-bdd33c3b382f
00067    Node();
00068 
00069    // METHOD=mm:6b3e2b4f-0307-11e0-843e-b9717acb62a7
00070    Node(Node& Instance);
00071 
00072    // METHOD=mm:6b3e327f-0307-11e0-843e-b9717acb62a7
00073    ~Node();
00074 
00075    // METHOD=mm:4caf16e0-6a9f-11e0-97a7-e035795630c1
00076    Node& operator=(Node& Instance);
00077 
00078    // METHOD=mm:3c36c5c9-f997-11df-9ddc-963be5e4332b
00079    unsigned long GetNumberCoordinates();
00080 
00081    // METHOD=mm:3c36c5cd-f997-11df-9ddc-963be5e4332b
00082    double* GetCoordinates();
00083 
00084    // METHOD=mm:3c36c5c8-f997-11df-9ddc-963be5e4332b
00085    void SetNumberCoordinates(unsigned long NumberCoords);
00086 
00087    // METHOD=mm:3c36c5cc-f997-11df-9ddc-963be5e4332b
00088    void SetCoordinates(BuiltInArray<double>& Coordinates);
00089 
00090    // METHOD=mm:3c36c537-f997-11df-9ddc-963be5e4332b
00091    void Save(FILE* File);
00092 
00093    // METHOD=mm:3c36c538-f997-11df-9ddc-963be5e4332b
00094    void Restore(FILE* File);
00095 
00096    // METHOD=mm:3c36c539-f997-11df-9ddc-963be5e4332b
00097    void Print(FILE* File, char* Message = "");
00098 
00099    // METHOD=mm:3c36c53a-f997-11df-9ddc-963be5e4332b
00100    void Free();
00101 
00102 
00106    // attr=mm:3c36c534-f997-11df-9ddc-963be5e4332b
00107    unsigned long NodeNumber;
00108 
00112    // attr=mm:3c36c535-f997-11df-9ddc-963be5e4332b
00113    BuiltInArray<double> Coords;
00114 
00115 
00116  protected:
00117 
00118  private:
00119 
00120 //#UBLK-BEG-CLASSMEMB mm:4527a731-f997-11df-9ddc-963be5e4332b
00121 //#UBLK-END-CLASSMEMB
00122 };
00123 
00124 //#UBLK-BEG-GLOBALH
00125 //#UBLK-END-GLOBALH
00126 
00127 
00128 #endif // _NODE_H_
 All Classes Files Functions Variables Typedefs Friends Defines