#include "header.h"
#include <stdio.h>
#include <iomanip>
#include "../shell/Neutral.h"
#include "../builtins/Arith.h"
#include "Dinfo.h"
#include <queue>
#include "../biophysics/IntFire.h"
#include "../synapse/Synapse.h"
#include "../synapse/SynHandlerBase.h"
#include "../synapse/SimpleSynHandler.h"
#include "SparseMatrix.h"
#include "SparseMsg.h"
#include "SingleMsg.h"
#include "OneToOneMsg.h"
#include "../randnum/randnum.h"
#include "../scheduling/Clock.h"
#include "../shell/Shell.h"
#include "../mpi/PostMaster.h"
Classes | |
class | TestId |
class | Test |
Functions | |
void | showFields () |
void | testSendMsg () |
void | testCreateMsg () |
void | testSetGet () |
void | testStrSet () |
void | testGet () |
void | testStrGet () |
void | testSetGetDouble () |
void | testSetGetSynapse () |
void | testSetGetVec () |
void | testSendSpike () |
void | printSparseMatrix (const SparseMatrix< unsigned int > &m) |
void | testSparseMatrix () |
void | testSparseMatrix2 () |
void | testSparseMatrixReorder () |
void | testSparseMatrixFill () |
void | printGrid (Element *e, const string &field, double min, double max) |
void | testSparseMsg () |
void | test2ArgSetVec () |
void | testSetRepeat () |
void | testSharedMsg () |
void | testConvVector () |
void | testConvVectorOfVectors () |
void | testMsgField () |
void | testSetGetExtField () |
void | testLookupSetGet () |
void | testIsA () |
void | testFinfoFields () |
void | testCinfoFields () |
void | testCinfoElements () |
void | testMsgSrcDestFields () |
void | testHopFunc () |
void | testAsync () |
void printGrid | ( | Element * | e, | |
const string & | field, | |||
double | min, | |||
double | max | |||
) |
References Field< A >::get(), Element::id(), and Element::numData().
void printSparseMatrix | ( | const SparseMatrix< unsigned int > & | m | ) |
References c, SparseMatrix< T >::get(), SparseMatrix< T >::getRow(), SparseMatrix< T >::nColumns(), and SparseMatrix< T >::nRows().
void showFields | ( | ) |
References Id::element(), Neutral::initCinfo(), and Id::nextId().
Referenced by testAsync().
void test2ArgSetVec | ( | ) |
References ObjId::data(), doubleEq(), Id::element(), Arith::initCinfo(), Id::nextId(), and SetGet2< A1, A2 >::setVec().
Referenced by testAsync().
void testAsync | ( | ) |
References showFields(), test2ArgSetVec(), testCinfoElements(), testCinfoFields(), testConvVector(), testConvVectorOfVectors(), testCreateMsg(), testFinfoFields(), testHopFunc(), testIsA(), testLookupSetGet(), testMsgField(), testMsgSrcDestFields(), testSendMsg(), testSetGet(), testSetGetDouble(), testSetGetSynapse(), testSetGetVec(), testSetRepeat(), testSharedMsg(), testSparseMatrix(), testSparseMatrix2(), testSparseMatrixFill(), testSparseMatrixReorder(), testSparseMsg(), testStrGet(), and testStrSet().
Referenced by nonMpiTests().
void testCinfoElements | ( | ) |
void testCinfoFields | ( | ) |
References Cinfo::getNumDestFinfo(), Cinfo::getNumLookupFinfo(), Cinfo::getNumSharedFinfo(), Cinfo::getNumSrcFinfo(), Cinfo::getNumValueFinfo(), Neutral::initCinfo(), and IntFire::initCinfo().
Referenced by testAsync().
void testConvVector | ( | ) |
References Conv< T >::buf2val(), Conv< T >::size(), and Conv< T >::val2buf().
Referenced by testAsync().
void testConvVectorOfVectors | ( | ) |
References Conv< T >::buf2val(), doubleEq(), Conv< T >::size(), and Conv< T >::val2buf().
Referenced by testAsync().
void testCreateMsg | ( | ) |
References Finfo::addMsg(), Element::data(), doubleEq(), Id::element(), Eref::element(), Id::eref(), Cinfo::findFinfo(), Arith::initCinfo(), Msg::mid(), Id::nextId(), and SrcFinfo1< T >::send().
Referenced by testAsync().
void testFinfoFields | ( | ) |
References FinfoWrapper::dest(), FinfoWrapper::docs(), Cinfo::findFinfo(), FinfoWrapper::getName(), Neutral::initCinfo(), IntFire::initCinfo(), FinfoWrapper::src(), and FinfoWrapper::type().
Referenced by testAsync().
void testGet | ( | ) |
References Element::data(), doubleEq(), Id::element(), ObjId::element(), Field< A >::get(), Arith::initCinfo(), Id::nextId(), and Element::setName().
void testHopFunc | ( | ) |
References c, checkHopFuncTestBuffer(), doubleEq(), MooseTestHop, HopFunc3< A1, A2, A3 >::op(), and HopFunc2< A1, A2 >::op().
Referenced by testAsync().
void testIsA | ( | ) |
References a, Arith::initCinfo(), Neutral::initCinfo(), and Cinfo::isA().
Referenced by testAsync().
void testLookupSetGet | ( | ) |
References ObjId::data(), Id::destroy(), doubleEq(), LookupField< L, A >::get(), Arith::getArg1(), Arith::getIdentifiedArg(), Arith::getOutput(), Arith::initCinfo(), Id::nextId(), LookupField< L, A >::set(), and Arith::setIdentifiedArg().
Referenced by testAsync().
void testMsgField | ( | ) |
References Element::addMsgAndFunc(), ObjId::data(), doubleEq(), Eref::element(), ObjId::element(), Id::element(), Id::eref(), Cinfo::findFinfo(), DestFinfo::getFid(), Element::getName(), Arith::initCinfo(), Msg::mid(), and Id::nextId().
Referenced by testAsync().
void testMsgSrcDestFields | ( | ) |
References Id::destroy(), Id::element(), Id::eref(), Cinfo::findFinfo(), Msg::getDestFieldsOnE1(), Msg::getDestFieldsOnE2(), Element::getFieldsOfOutgoingMsg(), Element::getMsgSourceAndSender(), Element::getMsgTargetAndFunctions(), Msg::getSrcFieldsOnE1(), Msg::getSrcFieldsOnE2(), Test::initCinfo(), Msg::mid(), and Id::nextId().
Referenced by testAsync().
void testSendMsg | ( | ) |
References Element::addMsgAndFunc(), Element::data(), Eref::dataIndex(), doubleEq(), Id::element(), Eref::element(), Id::eref(), Cinfo::findFinfo(), SrcFinfo::getBindIndex(), DestFinfo::getFid(), Arith::initCinfo(), Msg::mid(), Element::msgDigest(), Id::nextId(), SrcFinfo1< T >::send(), SrcFinfo::setBindIndex(), and Msg::targets().
Referenced by testAsync().
void testSendSpike | ( | ) |
References Finfo::addMsg(), ObjId::data(), Eref::data(), doubleEq(), ProcInfo::dt, Id::element(), ObjId::element(), ObjId::eref(), Id::eref(), Cinfo::findFinfo(), Field< A >::get(), IntFire::initCinfo(), Msg::mid(), Id::nextId(), Field< A >::set(), and Id::value().
void testSetGet | ( | ) |
References ObjId::data(), doubleEq(), Id::element(), Field< A >::get(), Arith::initCinfo(), Id::nextId(), and Field< A >::set().
Referenced by testAsync().
void testSetGetDouble | ( | ) |
References ObjId::data(), doubleEq(), Id::element(), Field< A >::get(), IntFire::initCinfo(), Id::nextId(), and Field< A >::set().
Referenced by testAsync().
void testSetGetExtField | ( | ) |
References a, Shell::adopt(), c, ObjId::data(), Id::destroy(), doubleEq(), Field< A >::get(), Arith::initCinfo(), Neutral::initCinfo(), Id::nextId(), Field< A >::set(), Field< A >::setVec(), and Id::value().
void testSetGetSynapse | ( | ) |
References d, Element::data(), doubleEq(), Field< A >::get(), Id::nextId(), Element::numData(), Field< A >::setVec(), and Id::value().
Referenced by testAsync().
void testSetGetVec | ( | ) |
References Element::data(), Id::element(), Field< A >::getVec(), Id::nextId(), Field< A >::setVec(), and Id::value().
Referenced by testAsync().
void testSetRepeat | ( | ) |
References doubleEq(), Field< A >::getVec(), Id::nextId(), Field< A >::setRepeat(), Field< A >::setVec(), and Id::value().
Referenced by testAsync().
void testSharedMsg | ( | ) |
References Finfo::addMsg(), Eref::data(), Id::destroy(), Id::element(), Id::eref(), Cinfo::findFinfo(), Test::handleS0(), Test::handleS1(), Test::handleS2(), Test::i1_, Test::i2_, Test::initCinfo(), Msg::mid(), Id::nextId(), Test::numAcks_, Test::s_, SrcFinfo2< T1, T2 >::send(), and SrcFinfo1< T >::send().
Referenced by testAsync().
void testSparseMatrix | ( | ) |
References c, SparseMatrix< T >::getRow(), SparseMatrix< T >::nColumns(), SparseMatrix< T >::nRows(), SparseMatrix< T >::reorderColumns(), SparseMatrix< T >::set(), and SparseMatrix< T >::transpose().
Referenced by testAsync().
void testSparseMatrix2 | ( | ) |
References SparseMatrix< T >::clear(), SparseMatrix< T >::get(), init(), SparseMatrix< T >::reorderColumns(), resize(), SparseMatrix< T >::set(), SparseMatrix< T >::setSize(), and SparseMatrix< T >::transpose().
Referenced by testAsync().
void testSparseMatrixFill | ( | ) |
References SparseMatrix< T >::get(), SparseMatrix< T >::nColumns(), SparseMatrix< T >::nEntries(), SparseMatrix< T >::nRows(), and SparseMatrix< T >::tripletFill().
Referenced by testAsync().
void testSparseMatrixReorder | ( | ) |
References SparseMatrix< T >::get(), SparseMatrix< T >::nColumns(), SparseMatrix< T >::nRows(), SparseMatrix< T >::reorderColumns(), SparseMatrix< T >::set(), and SparseMatrix< T >::setSize().
Referenced by testAsync().
void testSparseMsg | ( | ) |
References Finfo::addMsg(), ProcInfo::currTime, ProcInfo::dt, Cinfo::findFinfo(), Field< A >::get(), IntFire::initCinfo(), Msg::mid(), mtrand(), mtseed(), Id::nextId(), SparseMsg::randomConnect(), SetGet1< A >::setRepeat(), Field< A >::setVec(), and Id::value().
Referenced by testAsync().
void testStrGet | ( | ) |
References Id::element(), Arith::initCinfo(), Id::nextId(), Element::setName(), and SetGet::strGet().
Referenced by testAsync().
void testStrSet | ( | ) |
References Shell::adopt(), Id::element(), Element::getName(), Arith::initCinfo(), Id::nextId(), and SetGet::strSet().
Referenced by testAsync().