Public Member Functions | Private Member Functions | Private Attributes | Friends
FRWGraph< T, width > Class Template Reference
Inheritance diagram for FRWGraph< T, width >:
Inheritance graph
[legend]
Collaboration diagram for FRWGraph< T, width >:
Collaboration graph
[legend]

Public Member Functions

 FRWGraph ()
 Construct null. More...
 
 FRWGraph (const label size)
 Construct given size. More...
 
 FRWGraph (const label size, const T &t)
 Construct to given size and initialize. More...
 
 FRWGraph (const FRWGraph< T, width > &)
 Copy contructor. More...
 
 ~FRWGraph ()
 
label size () const
 Returns the number of rows. More...
 
label sizeOfRow (const label rowI) const
 Returns the size of a given row (obsolete) More...
 
void setSize (const label)
 Reset the number of rows. More...
 
void clear ()
 Clear the graph. More...
 
void appendFixedList (const FixedList< T, width > &l)
 Append a row at the end of the graph. More...
 
void setRow (const label rowI, const FixedList< T, width > &l)
 Set row with the list. More...
 
bool contains (const label rowI, const T &e) const
 check if the element is in the given row (takes linear time) More...
 
label containsAtPosition (const label rowI, const T &e) const
 
const Toperator() (const label i, const label j) const
 get and set operators More...
 
Toperator() (const label i, const label j)
 
void operator= (const FRWGraph< T, width > &)
 Assignment operator. More...
 

Private Member Functions

void checkIndex (const label i, const label j) const
 check index More...
 

Private Attributes

LongList< Tdata_
 list containing the data More...
 
label nRows_
 number of rows More...
 

Friends

Ostreamoperator (Ostream &, const FRWGraph< T, width > &)
 

Detailed Description

template<class T, label width>
class Foam::FRWGraph< T, width >

Definition at line 53 of file FRWGraph.H.

Constructor & Destructor Documentation

◆ FRWGraph() [1/4]

FRWGraph
inline

Construct null.

Definition at line 54 of file FRWGraphI.H.

◆ FRWGraph() [2/4]

FRWGraph ( const label  size)
inlineexplicit

Construct given size.

Definition at line 63 of file FRWGraphI.H.

◆ FRWGraph() [3/4]

FRWGraph ( const label  size,
const T t 
)
inlineexplicit

Construct to given size and initialize.

Construct given size.

Definition at line 75 of file FRWGraphI.H.

◆ FRWGraph() [4/4]

FRWGraph ( const FRWGraph< T, width > &  ol)
inline

Copy contructor.

Definition at line 86 of file FRWGraphI.H.

◆ ~FRWGraph()

~FRWGraph
inline

Definition at line 95 of file FRWGraphI.H.

Member Function Documentation

◆ checkIndex()

void checkIndex ( const label  i,
const label  j 
) const
private

check index

Definition at line 27 of file FRWGraphI.H.

◆ size()

Foam::label size
inline

Returns the number of rows.

Definition at line 102 of file FRWGraphI.H.

Referenced by meshOctreeAddressing::calcGlobalPointLabels(), and tetCreatorOctree::createFaceCentreLabels().

Here is the caller graph for this function:

◆ sizeOfRow()

Foam::label sizeOfRow ( const label  rowI) const
inline

Returns the size of a given row (obsolete)

Definition at line 108 of file FRWGraphI.H.

◆ setSize()

void setSize ( const label  i)
inline

Reset the number of rows.

Definition at line 114 of file FRWGraphI.H.

Referenced by triSurfaceCurvatureEstimator::calculateSurfaceCurvatures().

Here is the caller graph for this function:

◆ clear()

void clear
inline

Clear the graph.

Allocated size does not change

Definition at line 121 of file FRWGraphI.H.

◆ appendFixedList()

void appendFixedList ( const FixedList< T, width > &  l)
inline

Append a row at the end of the graph.

Definition at line 129 of file FRWGraphI.H.

◆ setRow()

void setRow ( const label  rowI,
const FixedList< T, width > &  l 
)
inline

Set row with the list.

Definition at line 140 of file FRWGraphI.H.

Referenced by meshOctreeAddressing::createNodeLeaves().

Here is the caller graph for this function:

◆ contains()

bool contains ( const label  rowI,
const T e 
) const
inline

check if the element is in the given row (takes linear time)

Definition at line 152 of file FRWGraphI.H.

◆ containsAtPosition()

Foam::label containsAtPosition ( const label  rowI,
const T e 
) const
inline

Definition at line 168 of file FRWGraphI.H.

◆ operator()() [1/2]

const T & operator() ( const label  i,
const label  j 
) const
inline

get and set operators

Definition at line 185 of file FRWGraphI.H.

◆ operator()() [2/2]

T & operator() ( const label  i,
const label  j 
)
inline

Definition at line 199 of file FRWGraphI.H.

◆ operator=()

void operator= ( const FRWGraph< T, width > &  l)
inline

Assignment operator.

Definition at line 212 of file FRWGraphI.H.

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream ,
const FRWGraph< T, width > &   
)
friend

Field Documentation

◆ data_

LongList<T> data_
private

list containing the data

Definition at line 77 of file FRWGraph.H.

◆ nRows_

label nRows_
private

number of rows

Definition at line 80 of file FRWGraph.H.


The documentation for this class was generated from the following files: