Epetra Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
Epetra_CompObject Class Reference

Epetra_CompObject: Functionality and data that is common to all computational classes. More...

#include <Epetra_CompObject.h>

Inheritance diagram for Epetra_CompObject:
Inheritance graph
[legend]

Public Member Functions

Epetra_CompObjectoperator= (const Epetra_CompObject &src)
 

Protected Attributes

Epetra_FlopsFlopCounter_
 

Constructors/Destructor

 Epetra_CompObject ()
 Basic Epetra_CompObject constuctor. More...
 
 Epetra_CompObject (const Epetra_CompObject &Source)
 Epetra_CompObject copy constructor. More...
 
virtual ~Epetra_CompObject ()
 Epetra_CompObject destructor. More...
 

Set/Get counter method

void SetFlopCounter (const Epetra_Flops &FlopCounter_in)
 Set the internal Epetra_Flops() pointer. More...
 
void SetFlopCounter (const Epetra_CompObject &CompObject)
 Set the internal Epetra_Flops() pointer to the flop counter of another Epetra_CompObject. More...
 
void UnsetFlopCounter ()
 Set the internal Epetra_Flops() pointer to 0 (no flops counted). More...
 
Epetra_FlopsGetFlopCounter () const
 Get the pointer to the Epetra_Flops() object associated with this object, returns 0 if none. More...
 

Set flop count methods

void ResetFlops () const
 Resets the number of floating point operations to zero for this multi-vector. More...
 
double Flops () const
 Returns the number of floating point operations with this multi-vector. More...
 

Update flop count methods

void UpdateFlops (int Flops_in) const
 Increment Flop count for this object. More...
 
void UpdateFlops (long int Flops_in) const
 Increment Flop count for this object. More...
 
void UpdateFlops (long long Flops_in) const
 Increment Flop count for this object. More...
 
void UpdateFlops (double Flops_in) const
 Increment Flop count for this object. More...
 
void UpdateFlops (float Flops_in) const
 Increment Flop count for this object. More...
 

Detailed Description

Epetra_CompObject: Functionality and data that is common to all computational classes.

The Epetra_CompObject is a base class for all Epetra computational objects. It provides the basic mechanisms and interface specifications for floating point operations using Epetra_Flops objects.

Definition at line 57 of file Epetra_CompObject.h.

Constructor & Destructor Documentation

Epetra_CompObject::Epetra_CompObject ( )

Basic Epetra_CompObject constuctor.

Definition at line 52 of file Epetra_CompObject.cpp.

Epetra_CompObject::Epetra_CompObject ( const Epetra_CompObject Source)

Epetra_CompObject copy constructor.

Definition at line 61 of file Epetra_CompObject.cpp.

Epetra_CompObject::~Epetra_CompObject ( )
virtual

Epetra_CompObject destructor.

Definition at line 65 of file Epetra_CompObject.cpp.

Member Function Documentation

void Epetra_CompObject::SetFlopCounter ( const Epetra_Flops FlopCounter_in)
inline

Set the internal Epetra_Flops() pointer.

Definition at line 78 of file Epetra_CompObject.h.

void Epetra_CompObject::SetFlopCounter ( const Epetra_CompObject CompObject)
inline

Set the internal Epetra_Flops() pointer to the flop counter of another Epetra_CompObject.

Definition at line 80 of file Epetra_CompObject.h.

void Epetra_CompObject::UnsetFlopCounter ( )
inline

Set the internal Epetra_Flops() pointer to 0 (no flops counted).

Definition at line 82 of file Epetra_CompObject.h.

Epetra_Flops* Epetra_CompObject::GetFlopCounter ( ) const
inline

Get the pointer to the Epetra_Flops() object associated with this object, returns 0 if none.

Definition at line 84 of file Epetra_CompObject.h.

void Epetra_CompObject::ResetFlops ( ) const
inline

Resets the number of floating point operations to zero for this multi-vector.

Definition at line 90 of file Epetra_CompObject.h.

double Epetra_CompObject::Flops ( ) const
inline

Returns the number of floating point operations with this multi-vector.

Definition at line 93 of file Epetra_CompObject.h.

void Epetra_CompObject::UpdateFlops ( int  Flops_in) const
inline

Increment Flop count for this object.

Definition at line 99 of file Epetra_CompObject.h.

void Epetra_CompObject::UpdateFlops ( long int  Flops_in) const
inline

Increment Flop count for this object.

Definition at line 102 of file Epetra_CompObject.h.

void Epetra_CompObject::UpdateFlops ( long long  Flops_in) const
inline

Increment Flop count for this object.

Definition at line 105 of file Epetra_CompObject.h.

void Epetra_CompObject::UpdateFlops ( double  Flops_in) const
inline

Increment Flop count for this object.

Definition at line 108 of file Epetra_CompObject.h.

void Epetra_CompObject::UpdateFlops ( float  Flops_in) const
inline

Increment Flop count for this object.

Definition at line 111 of file Epetra_CompObject.h.

Epetra_CompObject& Epetra_CompObject::operator= ( const Epetra_CompObject src)
inline

Definition at line 114 of file Epetra_CompObject.h.

Member Data Documentation

Epetra_Flops* Epetra_CompObject::FlopCounter_
protected

Definition at line 123 of file Epetra_CompObject.h.


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