walberla::pe::ccd::SimpleCCD Class Reference

#include <SimpleCCD.h>

+ Inheritance diagram for walberla::pe::ccd::SimpleCCD:

Public Member Functions

 SimpleCCD (BodyStorage &globalStorage, Storage &storage)
 
 ~SimpleCCD ()
 
virtual PossibleContactsgeneratePossibleContacts (WcTimingTree *tt=NULL)
 Generates a list of possible contact pairs. More...
 
int getObservedBodyCount () const
 
- Public Member Functions inherited from walberla::pe::ccd::ICCD
virtual ~ICCD ()
 
PossibleContactsgetPossibleContacts ()
 
virtual void reloadBodies ()
 

Add/remove functions

std::string identifier_
 
BodyStorageglobalStorage_
 
Storagestorage_
 
std::vector< BodyIDbodies_
 
void add (BodyID body)
 
void remove (BodyID body)
 

Additional Inherited Members

- Protected Attributes inherited from walberla::pe::ccd::ICCD
PossibleContacts contacts_
 

Constructor & Destructor Documentation

◆ SimpleCCD()

walberla::pe::ccd::SimpleCCD::SimpleCCD ( BodyStorage globalStorage,
Storage storage 
)
explicit

◆ ~SimpleCCD()

walberla::pe::ccd::SimpleCCD::~SimpleCCD ( )

Member Function Documentation

◆ add()

void walberla::pe::ccd::SimpleCCD::add ( BodyID  body)
private

◆ generatePossibleContacts()

PossibleContacts & walberla::pe::ccd::SimpleCCD::generatePossibleContacts ( WcTimingTree tt = NULL)
virtual

Generates a list of possible contact pairs.

This list is also stored in the member variable contacts_ for reuse lateron.

Implements walberla::pe::ccd::ICCD.

◆ getObservedBodyCount()

int walberla::pe::ccd::SimpleCCD::getObservedBodyCount ( ) const
virtual

◆ remove()

void walberla::pe::ccd::SimpleCCD::remove ( BodyID  body)
private

Member Data Documentation

◆ bodies_

std::vector<BodyID> walberla::pe::ccd::SimpleCCD::bodies_
private

◆ globalStorage_

BodyStorage& walberla::pe::ccd::SimpleCCD::globalStorage_
private

◆ identifier_

std::string walberla::pe::ccd::SimpleCCD::identifier_
private

◆ storage_

Storage& walberla::pe::ccd::SimpleCCD::storage_
private

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