PLearn 0.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | Private Types | Private Member Functions
PLearn::MeshGraph Class Reference

#include <MeshGraph.h>

Inheritance diagram for PLearn::MeshGraph:
Inheritance graph
[legend]
Collaboration diagram for PLearn::MeshGraph:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MeshGraph ()
 Default constructor.
virtual ~MeshGraph ()
 Virtual destructor.
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual MeshGraphdeepCopy (CopiesMap &copies) const
virtual void build ()
 Post-constructor.
virtual void makeDeepCopyFromShallowCopy (CopiesMap &copies)
 Transforms a shallow copy into a deep copy.

Static Public Member Functions

static string _classname_ ()
static OptionList_getOptionList_ ()
static RemoteMethodMap_getRemoteMethodMap_ ()
static Object_new_instance_for_typemap_ ()
static bool _isa_ (const Object *o)
static void _static_initialize_ ()
static const PPathdeclaringFile ()
static int compare (const MeshGraph &g, const MeshGraph &h)

Public Attributes

int id
real resolution
real size
TVec< MFacefaces

Static Public Attributes

static StaticInitializer _static_initializer_

Static Protected Member Functions

static void declareOptions (OptionList &ol)
 Declares this class' options.

Private Types

typedef Object inherited

Private Member Functions

void build_ ()
 This does the actual building.

Detailed Description

Definition at line 60 of file MeshGraph.h.


Member Typedef Documentation

Reimplemented from PLearn::Object.

Definition at line 65 of file MeshGraph.h.


Constructor & Destructor Documentation

PLearn::MeshGraph::MeshGraph ( )

Default constructor.

Definition at line 49 of file MeshGraph.cc.

                     :
  id( 0 ),
  resolution( 0 ),
  size( 0 )
{}
virtual PLearn::MeshGraph::~MeshGraph ( ) [inline, virtual]

Virtual destructor.

Definition at line 92 of file MeshGraph.h.

{}

Member Function Documentation

string PLearn::MeshGraph::_classname_ ( ) [static]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

OptionList & PLearn::MeshGraph::_getOptionList_ ( ) [static]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

RemoteMethodMap & PLearn::MeshGraph::_getRemoteMethodMap_ ( ) [static]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

bool PLearn::MeshGraph::_isa_ ( const Object o) [static]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

Object * PLearn::MeshGraph::_new_instance_for_typemap_ ( ) [static]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

StaticInitializer MeshGraph::_static_initializer_ & PLearn::MeshGraph::_static_initialize_ ( ) [static]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

void PLearn::MeshGraph::build ( ) [virtual]

Post-constructor.

The normal implementation should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::Object.

Definition at line 92 of file MeshGraph.cc.

References PLearn::Object::build(), and build_().

Here is the call graph for this function:

void PLearn::MeshGraph::build_ ( ) [private]

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 89 of file MeshGraph.cc.

Referenced by build().

{}

Here is the caller graph for this function:

string PLearn::MeshGraph::classname ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

int PLearn::MeshGraph::compare ( const MeshGraph g,
const MeshGraph h 
) [static]

Definition at line 118 of file MeshGraph.cc.

References id.

{
  return( g.id - h.id );
}
void PLearn::MeshGraph::declareOptions ( OptionList ol) [static, protected]

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 70 of file MeshGraph.cc.

References PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::Object::declareOptions(), faces, id, resolution, and size.

{
  declareOption(ol, "id", &MeshGraph::id, OptionBase::buildoption,
                "Graph identifier");

  declareOption(ol, "resolution", &MeshGraph::resolution,
                OptionBase::buildoption,
                "mesh resolution");

  declareOption(ol, "size", &MeshGraph::size, OptionBase::buildoption,
                "mesh size");

  declareOption(ol, "faces", &MeshGraph::faces, OptionBase::buildoption,
                "MeshFaces of the mesh");

  // Now call the parent class' declareOptions
  inherited::declareOptions(ol);
}

Here is the call graph for this function:

static const PPath& PLearn::MeshGraph::declaringFile ( ) [inline, static]

Reimplemented from PLearn::Object.

Definition at line 108 of file MeshGraph.h.

MeshGraph * PLearn::MeshGraph::deepCopy ( CopiesMap copies) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

OptionList & PLearn::MeshGraph::getOptionList ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

OptionMap & PLearn::MeshGraph::getOptionMap ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

RemoteMethodMap & PLearn::MeshGraph::getRemoteMethodMap ( ) const [virtual]

Reimplemented from PLearn::Object.

Definition at line 68 of file MeshGraph.cc.

void PLearn::MeshGraph::makeDeepCopyFromShallowCopy ( CopiesMap copies) [virtual]

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Object.

Definition at line 98 of file MeshGraph.cc.

References PLearn::deepCopyField(), faces, and PLearn::Object::makeDeepCopyFromShallowCopy().

Here is the call graph for this function:


Member Data Documentation

Reimplemented from PLearn::Object.

Definition at line 108 of file MeshGraph.h.

Definition at line 77 of file MeshGraph.h.

Referenced by declareOptions(), and makeDeepCopyFromShallowCopy().

Definition at line 73 of file MeshGraph.h.

Referenced by compare(), and declareOptions().

Definition at line 74 of file MeshGraph.h.

Referenced by declareOptions().

Definition at line 75 of file MeshGraph.h.

Referenced by declareOptions().


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