Commit 1e8698bc authored by Mark Olesen's avatar Mark Olesen

STYLE: relocate some graphRow typedefs to VRWGraph

parent d894273a
......@@ -105,7 +105,7 @@ public:
//- Destructor
inline ~FRWGraph();
~FRWGraph() = default;
// Member Functions
......
......@@ -86,11 +86,6 @@ inline Foam::FRWGraph<T, width>::FRWGraph
{}
template<class T, Foam::label width>
inline Foam::FRWGraph<T, width>::~FRWGraph()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class T, Foam::label width>
......
......@@ -26,7 +26,7 @@ Class
Description
This class is an implementation of a graph with variable column width.
The imoplementation is memory efficient.
The implementation is memory efficient.
SourceFiles
VRWGraphI.H
......@@ -48,7 +48,7 @@ SourceFiles
namespace Foam
{
class VRWGraphModifier;
class VRWGraph;
class rowElement
{
......@@ -80,8 +80,7 @@ public:
//- Destructor
inline ~rowElement()
{}
~rowElement() = default;
// Member functions
......@@ -108,6 +107,11 @@ public:
};
// Useful typedefs
typedef const graphRow<const VRWGraph> constRow;
typedef graphRow<VRWGraph> row;
/*---------------------------------------------------------------------------*\
Class VRWGraph Declaration
\*---------------------------------------------------------------------------*/
......@@ -175,7 +179,7 @@ public:
//- Destructor
inline ~VRWGraph();
~VRWGraph() = default;
// Member Functions
......
......@@ -111,10 +111,6 @@ inline Foam::VRWGraph::VRWGraph
{}
inline Foam::VRWGraph::~VRWGraph()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline Foam::label Foam::VRWGraph::size() const
......
......@@ -43,10 +43,6 @@ VRWGraphSMPModifier::VRWGraphSMPModifier(VRWGraph& graph)
{}
VRWGraphSMPModifier::~VRWGraphSMPModifier()
{}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
void VRWGraphSMPModifier::mergeGraphs(const List<VRWGraph>& graphParts)
......
......@@ -22,11 +22,11 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::VRWGraphModifier
Foam::VRWGraphSMPModifier
Description
This class is a modifier for VRWGraph which allows for multi - threaded
execution of most time-consuimg functions
This class is a modifier for VRWGraph which allows for multi-threaded
execution of the most time-consuimg functions
SourceFiles
VRWGraphSMPModifier.H
......@@ -74,7 +74,7 @@ public:
VRWGraphSMPModifier(VRWGraph&);
//- Destructor
~VRWGraphSMPModifier();
~VRWGraphSMPModifier() = default;
// Member Functions
......
......@@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::raphRow
Foam::graphRow
Description
This class provides access to a row of a graph
......@@ -44,8 +44,6 @@ SourceFiles
namespace Foam
{
class VRWGraph;
template<class graphType>
class graphRow;
......@@ -79,25 +77,25 @@ public:
// Constructors
//- Construct from graph and row number
inline graphRow(graphType&, const label);
inline graphRow(graphType& g, const label i);
//- Copy contructor
inline graphRow(const graphRow<graphType>&);
//- Destructor
inline ~graphRow();
~graphRow() = default;
// Member Functions
//- Returns the number of rows
//- Returns the number of elements in the row
inline label size() const;
//- Reset the number of rows
inline void setSize(const label size);
//- Reset the number of elements in the row
inline void setSize(const label s);
//- Clear the graph
//- Clear the row
inline void clear();
......@@ -134,21 +132,9 @@ public:
const graphRow<graphType>&
);
//- Read from Istream, discarding contents of existing graphRow.
/* friend Istream& operator>> <T, width>
(
Istream&,
graphRow<T, width>&
);
*/
};
typedef const graphRow<const VRWGraph> constRow;
typedef graphRow<VRWGraph> row;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
......
......@@ -60,11 +60,6 @@ inline Foam::graphRow<graphType>::graphRow
{}
template<class graphType>
inline Foam::graphRow<graphType>::~graphRow()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class graphType>
......
......@@ -88,7 +88,7 @@ public:
//- Destructor
inline ~subGraph();
~subGraph() = default;
// Member Functions
......
......@@ -67,11 +67,6 @@ inline Foam::subGraph<graphType>::subGraph
{}
template<class graphType>
inline Foam::subGraph<graphType>::~subGraph()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class graphType>
......@@ -179,7 +174,7 @@ Foam::subGraph<graphType>::operator[]
template<class graphType>
inline Foam::graphRow <graphType>
inline Foam::graphRow<graphType>
Foam::subGraph<graphType>::operator[](const label i)
{
return data_[start_ + i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment