Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
manual_index_pts Class Reference

#include <points.h>

Inheritance diagram for manual_index_pts:
Collaboration diagram for manual_index_pts:

Public Member Functions

 manual_index_pts ()
 
 ~manual_index_pts ()
 
 manual_index_pts (const manual_index_pts &mip)
 
manual_index_ptsoperator= (const manual_index_pts &mip)
 
virtual manual_index_ptsclone ()
 
void set_layout (std::vector< int > index_layout)
 
void set_index (int point_num, std::vector< int > loc)
 
- Public Member Functions inherited from indexed_points
 indexed_points ()
 
virtual ~indexed_points ()
 
 indexed_points (const indexed_points &ip)
 
indexed_pointsoperator= (const indexed_points &ip)
 
virtual void sort ()
 
pnt get_indexed_point (std::vector< int > loc)
 
virtual int get_closest (long double *coord)
 
virtual std::vector< int > get_connected_points (int point_num)
 
virtual std::vector< int > get_dim ()
 
- Public Member Functions inherited from points
 points ()
 
 points (int num_points)
 
 points (const points &p)
 
pointsoperator= (const points &p)
 
virtual ~points ()
 
void set_num_points (int n)
 
void set_num_vars (int n)
 
void set_num_indep_vars (int indep_vars)
 
int get_num_points ()
 
int get_num_vars ()
 
int get_num_indep_vars ()
 
void set_point_val (int point_number, int var, long double val)
 
void clear_dep_vars (int point_number)
 
pnt get_point (int n)
 
long double largest_val (int dim)
 
long double smallest_val (int dim)
 

Additional Inherited Members

- Static Public Member Functions inherited from points
static void delete_all (std::vector< points * > points_vector)
 
static bool contains_null (std::vector< points * > points_vector)
 
- Protected Attributes inherited from indexed_points
VariableDimensionArray index
 
bool index_set
 
std::vector< int > index_layout
 
- Protected Attributes inherited from points
int num_points
 
int num_vars
 
int num_indep_vars
 
pnt ** pt_str
 
bitmap pt_set
 

Detailed Description

Definition at line 183 of file points.h.

Constructor & Destructor Documentation

Definition at line 520 of file points.cpp.

Referenced by clone().

520  {
521  return;
522 }

Here is the caller graph for this function:

Definition at line 524 of file points.cpp.

524  {
525  return;
526 }

Definition at line 528 of file points.cpp.

528  : indexed_points(mip) {
529  return;
530 }

Member Function Documentation

manual_index_pts * clone ( )
virtual

Reimplemented from indexed_points.

Definition at line 537 of file points.cpp.

References manual_index_pts().

537  {
538  return new manual_index_pts(*this);
539 }

Here is the call graph for this function:

manual_index_pts & operator= ( const manual_index_pts mip)

Definition at line 532 of file points.cpp.

References indexed_points::operator=().

532  {
534  return *this;
535 }
indexed_points & operator=(const indexed_points &ip)
Definition: points.cpp:410

Here is the call graph for this function:

void set_index ( int  point_num,
std::vector< int >  loc 
)

Definition at line 555 of file points.cpp.

References indexed_points::index, and VariableDimensionArray::setValue().

Referenced by tpz_ordered::build_point_index().

555  {
556  index.setValue(loc, point_num);
557 }
void setValue(std::vector< int > rLoc, int rVal)
Set the value at the given coordinates.
Definition: datatypedef.h:286
VariableDimensionArray index
Definition: points.h:175

Here is the call graph for this function:

Here is the caller graph for this function:

void set_layout ( std::vector< int >  index_layout)

Definition at line 541 of file points.cpp.

References i, indexed_points::index, indexed_points::index_set, and VariableDimensionArray::initArray().

Referenced by tpz_ordered::build_point_index().

541  {
542 
543  this->index_layout.erase(this->index_layout.begin(), this->index_layout.end());
544 
545  for(int i=0; i<index_layout.size(); i++){
546  this->index_layout.push_back(index_layout[i]);
547  }
548 
549  index.initArray(index_layout);
550 
551  index_set = true;
552 
553 }
bool index_set
Definition: points.h:176
blockLoc i
Definition: read.cpp:79
VariableDimensionArray index
Definition: points.h:175
void initArray(std::vector< int > dim_sizes)
Initialize the array with the specified dimensions.
Definition: datatypedef.h:194

Here is the call graph for this function:

Here is the caller graph for this function:


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