OOFEM 3.0
Loading...
Searching...
No Matches
sloangraphnode.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef sloangraphnode_h
36#define sloangraphnode_h
37
38#include <list>
39
40#include "oofemenv.h"
41
42namespace oofem {
43class SloanGraph;
44
53{
54public:
57
58private:
68 int Degree;
74 std :: list< int >neighborList;
75
76public:
78 SloanGraphNode(SloanGraph * graph, int numOld);
81
87 void addNeighbor(int neighbor);
88
90 int giveNewNumber() { return NumberNew; }
92 int giveOldNumber() { return NumberOld; }
96 int giveDegree() { return Degree; }
98 int giveDistance() { return Distance; }
100 int givePriority() { return Priority; }
102 std :: list< int > &giveNeighborList() { return neighborList; }
105
107 void setDistance(int d) { Distance = d; }
109 void setPriority(int p) { Priority = p; }
113 void setNewNumber(int n) { NumberNew = n; }
115 void increasePriorityBy(int p) { Priority += p; }
120 int computeProfileHeight();
121};
122} // end namespace oofem
123#endif // sloangraphnode_h
SloanGraphNode_StatusType
Status type definition.
std ::list< int > & giveNeighborList()
Returns the neighbor list of receiver.
int giveDegree()
Return the receiver's degree.
int Priority
Node priority.
int givePriority()
Returns priority of receiver.
SloanGraphNode_StatusType giveStatus()
Returns receiver status.
void assignOldNumber()
sets new number equal to old one.
int giveDistance()
Returns distance of receiver.
SloanGraph * graph
Associated graph structure, to which node belongs.
int giveOldNumber()
Returns old number of receiver.
SloanGraphNode_StatusType nodeStatus
Status of node.
int NumberOld
Old (original) number.
int giveNewNumber()
Returns new number of receiver.
void addNeighbor(int neighbor)
int Degree
Node degree (number of adjacent edges).
int NumberNew
New (optimized) number.
void increasePriorityBy(int p)
Increases the priority of receiver by given value.
std ::list< int > neighborList
List of neighbouring nodes (represent graph edges).
void setNewNumber(int n)
Sets the new number of receiver.
SloanGraphNode(SloanGraph *graph, int numOld)
Creates node belonging to given graph with given old number.
int Distance
Node distance.
void setPriority(int p)
Sets the receiver priority to given value.
void setDistance(int d)
Sets the receiver distance to given number.
void setStatus(SloanGraphNode_StatusType s)
Sets the status of receiver to given value.
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011