hp2FEM  0.1
Public Member Functions | Public Attributes
Node Class Reference

#include <Node.h>

Collaboration diagram for Node:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Node ()
 Empty constructor.
 Node (Node &Instance)
 Copy constructor. Copies the data from Instance to the current object.
 ~Node ()
 Destructor.
Nodeoperator= (Node &Instance)
 Copies the data from Instance to the current object.
unsigned long GetNumberCoordinates ()
 Returns the number of coordinates of the node (size of the array Coords)
double * GetCoordinates ()
 Returns the nodal coordinates.
void SetNumberCoordinates (unsigned long NumberCoords)
 Sets the number of coordinates: sets the size of the array Coords.
void SetCoordinates (BuiltInArray< double > &Coordinates)
 Sets the nodal coordinates.
void Save (FILE *File)
 Writes class information to a binary file.
void Restore (FILE *File)
 Restores class data (written using Save()) from a binary file@.
void Print (FILE *File, char *Message="")
 Prints class information to an ASCII file.
void Free ()
 Releases the physical memory allocated for the class.

Public Attributes

unsigned long NodeNumber
 Identification number of the node.
BuiltInArray< double > Coords
 Vector with nodal coordinates.

Detailed Description

Class for one node of the discrete model

Note:
The set of nodes of a discrete model is described by the class Nodes, This class is used for auxiliary tasks that require an individual node to be selected and manipulated
Author:
Marco Lcio Bittencourt/Fabiano Fernandes Bargos
Date:
April/19/2011

Constructor & Destructor Documentation

Node::Node ( Node Instance)

Copy constructor. Copies the data from Instance to the current object.

Parameters:
[in]Instance- instance of the Node class.

Reference to the current object.


Member Function Documentation

double * Node::GetCoordinates ( )

Returns the nodal coordinates.

Returns:
a double pointer to nodal coordinates.
unsigned long Node::GetNumberCoordinates ( )

Returns the number of coordinates of the node (size of the array Coords)

Returns:
Number of nodal coordinates.
Node & Node::operator= ( Node Instance)

Copies the data from Instance to the current object.

Parameters:
[in]Instance- instance of the Node class.

Reference to the current object.

void Node::Print ( FILE *  File,
char *  Message = "" 
)

Prints class information to an ASCII file.

Parameters:
[in]File,:pointer to the ASCII file.
[in]Message,:optional message
void Node::Save ( FILE *  File)

Writes class information to a binary file.

Note:
The current object state can be completely recovered when applying the Restore() operation.
Parameters:
[in]File- pointer to the binary file.
void Node::SetCoordinates ( BuiltInArray< double > &  Coordinates)

Sets the nodal coordinates.

Parameters:
[in]Coordinates- nodal coordinates.
void Node::SetNumberCoordinates ( unsigned long  NumberCoords)

Sets the number of coordinates: sets the size of the array Coords.

Parameters:
[in]NumberCoords- number of nodal coordinates.

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines