OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <DataConnect.h>
Public Types | |
typedef std::vector< DataSource * > | container_t |
typedef container_t::iterator | iterator |
typedef container_t::const_iterator | const_iterator |
Public Member Functions | |
DataConnect (const char *nm, const char *id, int dtm=DataSource::OUTPUT, int n=0) | |
virtual | ~DataConnect () |
const char * | DSID () const |
int | getDefaultTransferMethod () const |
void | setDefaultTransferMethod (int m) |
int | getNodes () const |
bool | onConnectNode () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
unsigned int | size () const |
unsigned int | numDataSources () const |
bool | empty () const |
virtual bool | connected () const |
virtual DataConnect * | connect (const char *, DataSource *, int=DataSource::DEFAULT) |
virtual DataConnect * | connect (const char *, DataSource &, int=DataSource::DEFAULT) |
virtual bool | connect (DataSourceObject *) |
virtual void | updateConnections (DataConnect *=0) |
virtual void | disconnectConnections () |
virtual void | interact (const char *=0, DataConnect *=0) |
virtual void | ready () |
Public Member Functions inherited from NamedObj | |
NamedObj (const char *nm=0) | |
virtual | ~NamedObj () |
const char * | name () const |
const char * | setName (const char *nm=0) |
Private Member Functions | |
bool | checkin (DataSource *) |
bool | checkout (DataSource *, bool=true) |
Private Attributes | |
std::string | MyID |
container_t | SourceList |
int | nodes |
int | DefTransMethod |
Friends | |
class | DataSource |
Definition at line 32 of file DataConnect.h.
typedef container_t::const_iterator DataConnect::const_iterator |
Definition at line 38 of file DataConnect.h.
typedef std::vector<DataSource *> DataConnect::container_t |
Definition at line 36 of file DataConnect.h.
typedef container_t::iterator DataConnect::iterator |
Definition at line 37 of file DataConnect.h.
DataConnect::DataConnect | ( | const char * | nm, |
const char * | id, | ||
int | dtm = DataSource::OUTPUT , |
||
int | n = 0 |
||
) |
Definition at line 37 of file DataConnect.cpp.
References DataConnectCreator::getDefaultNodes(), Hypervolume::n, and nodes.
|
virtual |
Definition at line 47 of file DataConnect.cpp.
References disconnectConnections().
|
inline |
Definition at line 71 of file DataConnect.h.
References SourceList.
Referenced by checkin(), checkout(), FileFieldDataSource< T, Dim, M, C >::FileFieldDataSource(), interact(), and updateConnections().
|
inline |
Definition at line 74 of file DataConnect.h.
References SourceList.
|
private |
Definition at line 130 of file DataConnect.cpp.
References a, begin(), end(), and SourceList.
Referenced by DataSource::connect().
|
private |
Definition at line 147 of file DataConnect.cpp.
References a, begin(), DataSource::disconnect(), end(), and SourceList.
Referenced by DataSource::disconnect(), and disconnectConnections().
|
virtual |
Definition at line 81 of file DataConnect.cpp.
References connect().
|
virtual |
Definition at line 74 of file DataConnect.cpp.
References DataSource::connect(), and connected().
Referenced by connect().
|
virtual |
Definition at line 90 of file DataConnect.cpp.
References DataSource::connect(), DataSourceObject::getConnection(), and DataSourceObject::getSource().
|
virtual |
Reimplemented in FileDataConnect.
Definition at line 63 of file DataConnect.cpp.
Referenced by connect().
|
virtual |
Definition at line 113 of file DataConnect.cpp.
References checkout(), and SourceList.
Referenced by ~DataConnect().
|
inline |
Definition at line 55 of file DataConnect.h.
References MyID.
Referenced by FileFieldDataSource< T, Dim, M, C >::FileFieldDataSource(), FileIpplParticleBaseDataSource< T >::FileIpplParticleBaseDataSource(), FileParticleAttribDataSource< T >::FileParticleAttribDataSource(), and make_DataSourceObject().
|
inline |
Definition at line 84 of file DataConnect.h.
References SourceList.
|
inline |
Definition at line 72 of file DataConnect.h.
References SourceList.
Referenced by checkin(), checkout(), interact(), and updateConnections().
|
inline |
Definition at line 75 of file DataConnect.h.
References SourceList.
|
inline |
Definition at line 58 of file DataConnect.h.
References DefTransMethod.
Referenced by DataSource::connect().
|
inline |
|
virtual |
Definition at line 122 of file DataConnect.cpp.
References a, begin(), and end().
|
inline |
Definition at line 83 of file DataConnect.h.
References SourceList.
bool DataConnect::onConnectNode | ( | ) | const |
Definition at line 55 of file DataConnect.cpp.
References getNodes(), and IpplInfo::myNode().
|
virtual |
Definition at line 177 of file DataConnect.cpp.
|
inline |
Definition at line 59 of file DataConnect.h.
References DefTransMethod.
|
inline |
Definition at line 82 of file DataConnect.h.
References SourceList.
Referenced by FileFieldDataSource< T, Dim, M, C >::FileFieldDataSource().
|
virtual |
Definition at line 105 of file DataConnect.cpp.
References a, begin(), and end().
|
friend |
Definition at line 126 of file DataConnect.h.
|
private |
Definition at line 138 of file DataConnect.h.
Referenced by getDefaultTransferMethod(), and setDefaultTransferMethod().
|
private |
Definition at line 129 of file DataConnect.h.
Referenced by DSID().
|
private |
Definition at line 135 of file DataConnect.h.
Referenced by DataConnect(), and getNodes().
|
private |
Definition at line 132 of file DataConnect.h.
Referenced by begin(), checkin(), checkout(), disconnectConnections(), empty(), end(), numDataSources(), and size().