GraphNet: Discrete element modeling for network connected materials
Applications to polymeric networks
Public Member Functions | Public Attributes | List of all members
Cracklist Class Reference

#include <crack.h>

Inheritance diagram for Cracklist:
Inheritance graph
[legend]
Collaboration diagram for Cracklist:
Collaboration graph
[legend]

Public Member Functions

Crackoperator[] (int)
 Overload dereference operator([]) More...
 
 Cracklist (int)
 Constructor to randomly spawn n ellipses within the bound with random axes lengths and random orientations. More...
 
 Cracklist ()
 
 Cracklist (Crack &)
 Constructor to initialize a list of cracks with just one crack object. More...
 
 ~Cracklist ()
 Default destructor. More...
 
- Public Member Functions inherited from Crack
 Crack ()
 Default constructor for a Crack object. Zero-initializes all data members. More...
 
void setter (float, float, float, float, float, float)
 Sets the value of data members according to: More...
 
void setter (Crack &)
 Sets the value of data members according to the Crack source object Effectively, overloads setter() to implement copy constructor. More...
 
float inside (float *R)
 Checks whether a node lies inside the specified ellipse of not. A negative implies point lies inside while a positive implies outside. More...
 
virtual ~Crack ()
 Destructor. More...
 
 Crack (Crack const &source)
 Copy constructor. More...
 
Crack const & operator= (Crack const &other)
 Assignment(=) overloading. Calls copy constructor. More...
 
void print_info ()
 Prints the data members of Crack object to STDOUT. More...
 

Public Attributes

int n_cracks
 Number of cracks in the Cracklist. More...
 
CracklistofCracks
 
- Public Attributes inherited from Crack
float * c
 Holds the coordinates of the center of the ellipse. More...
 
float * a
 Holds the lengths of the major and minor axes of the ellipse. More...
 
float * trig
 Holds the sine and cosine of the angle the major axis of the ellipse makes with the problem's x axis. More...
 
int dim
 Obsolete. Is generally equal to DIM from params.h. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Crack
void clear ()
 Called by destructor. Clears all variables from memory. More...
 
void copy (Crack const &source)
 Implements copying from source. Called by copy constructor. More...
 

Constructor & Destructor Documentation

Cracklist::Cracklist ( int  n)

Constructor to randomly spawn n ellipses within the bound with random axes lengths and random orientations.

Parameters
n–> Number of random ellipses to be spwaned within object
Cracklist::Cracklist ( )
Cracklist::Cracklist ( Crack a)

Constructor to initialize a list of cracks with just one crack object.

Parameters
a–> Crack object to populate the Cracklist object
Cracklist::~Cracklist ( )

Default destructor.

Member Function Documentation

Crack & Cracklist::operator[] ( int  b)

Overload dereference operator([])

Parameters
b–> Specifies which Crack object to be used from the given Cracklist object.

Member Data Documentation

Crack* Cracklist::listofCracks
int Cracklist::n_cracks

Number of cracks in the Cracklist.


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