Layer< T, W > Class Template Reference

Inheritance diagram for Layer< T, W >:
Inheritance graph
[legend]
Collaboration diagram for Layer< T, W >:
Collaboration graph
[legend]

List of all members.

Classes

struct  non_pointer_type
struct  non_pointer_type< U * >

Public Member Functions

 Layer (const SimTime &timestep, const uint width, const uint height, const std::string &name="", const std::string &units="")
 constructor
 Layer (const double &param1, const SimTime &timestep, const uint width, const uint height, const std::string &name="", const std::string &units="")
 constructor for weights with 1 param
 Layer (const double &param1, const double &param2, const bool doSubCenter, const BorderPolicy bp, const SimTime &timestep, const uint width, const uint height, const std::string &name="", const std::string &units="")
 constructor for weights with two params, center and boarder options
 Layer (const double &param1, const double &param2, const double &param3, const bool doSubCenter, const BorderPolicy bp, const SimTime &timestep, const uint width, const uint height, const std::string &name="", const std::string &units="")
 constructor for weights with three params, center and boarder options
 Layer (const double &param1, const double &param2, const double &param3, const double &param4, const bool subCenter, const BorderPolicy bp, const SimTime &timestep, const uint width, const uint height, const std::string &name="", const std::string &units="")
 constructor for weights with three params, center and boarder options
 Layer (const Layer &nlc)
 copy constructor
Layeroperator= (const Layer &nlc)
virtual ~Layer ()
 destructor
Image< double > getDisplayOutput (const int pos=-1) const
 get the current display output
void getSimUnit (const Location &loc, std::vector< const SimUnit * > &units)
 get unit(s) at desired location
void editSimUnit (const Location &loc, std::vector< SimUnit * > &units)
 edit unit(s) at the desired output position
const uint numSimUnits () const
 number of simunits - just returns getOutSize()
const SimUnitgetSimUnit (const uint pos) const
SimUniteditSimUnit (const uint pos)
void setModule (const SimUnit &nsm)
 set type of simulation module
void setModule (const SimUnit &nsm, const Location &p)
 set type of simulation module at the position
void setTime (const SimTime &time, const bool recursive=true)
 set the time of this structure and all contained SimUnits if true
void setWeights (const W &weights)
Layer< T, W > * clone () const
 clone the module

Detailed Description

template<class T, class W>
class Layer< T, W >

Definition at line 55 of file Layer.H.


Constructor & Destructor Documentation

template<class T , class W >
Layer< T, W >::Layer ( const SimTime timestep,
const uint  width,
const uint  height,
const std::string name = "",
const std::string units = "" 
) [inline]

constructor

Definition at line 176 of file Layer.H.

template<class T , class W >
Layer< T, W >::Layer ( const double &  param1,
const SimTime timestep,
const uint  width,
const uint  height,
const std::string name = "",
const std::string units = "" 
) [inline]

constructor for weights with 1 param

Definition at line 184 of file Layer.H.

template<class T , class W >
Layer< T, W >::Layer ( const double &  param1,
const double &  param2,
const bool  doSubCenter,
const BorderPolicy  bp,
const SimTime timestep,
const uint  width,
const uint  height,
const std::string name = "",
const std::string units = "" 
) [inline]

constructor for weights with two params, center and boarder options

Definition at line 193 of file Layer.H.

template<class T , class W >
Layer< T, W >::Layer ( const double &  param1,
const double &  param2,
const double &  param3,
const bool  doSubCenter,
const BorderPolicy  bp,
const SimTime timestep,
const uint  width,
const uint  height,
const std::string name = "",
const std::string units = "" 
) [inline]

constructor for weights with three params, center and boarder options

Definition at line 205 of file Layer.H.

template<class T , class W >
Layer< T, W >::Layer ( const double &  param1,
const double &  param2,
const double &  param3,
const double &  param4,
const bool  subCenter,
const BorderPolicy  bp,
const SimTime timestep,
const uint  width,
const uint  height,
const std::string name = "",
const std::string units = "" 
) [inline]

constructor for weights with three params, center and boarder options

Definition at line 217 of file Layer.H.

template<class T , class W >
Layer< T, W >::Layer ( const Layer< T, W > &  nlc  )  [inline]

copy constructor

Definition at line 231 of file Layer.H.

template<class T , class W >
Layer< T, W >::~Layer (  )  [inline, virtual]

destructor

Definition at line 254 of file Layer.H.


Member Function Documentation

template<class T , class W >
Layer< T, W > * Layer< T, W >::clone (  )  const [inline, virtual]

clone the module

Implements SimLayer.

Definition at line 419 of file Layer.H.

template<class T , class W >
void Layer< T, W >::editSimUnit ( const Location loc,
std::vector< SimUnit * > &  units 
) [inline, virtual]

edit unit(s) at the desired output position

Implements SimStructure.

Definition at line 290 of file Layer.H.

template<class T , class W >
Image< double > Layer< T, W >::getDisplayOutput ( const int  pos = -1  )  const [inline, virtual]

get the current display output

Reimplemented from SimStructure.

Definition at line 259 of file Layer.H.

References ASSERT, Image< T >::beginw(), SimStructure::getOutDims(), and NO_INIT.

template<class T , class W >
const SimUnit & Layer< T, W >::getSimUnit ( const uint  pos  )  const [inline]

get the unit at desired position [pos / w, pos % w], (where '/' is integer division, '' is modulus, and w is the width of the layer)

Definition at line 310 of file Layer.H.

template<class T , class W >
void Layer< T, W >::getSimUnit ( const Location loc,
std::vector< const SimUnit * > &  units 
) [inline, virtual]

get unit(s) at desired location

Implements SimStructure.

Definition at line 276 of file Layer.H.

template<class T , class W >
const uint Layer< T, W >::numSimUnits (  )  const [inline]

number of simunits - just returns getOutSize()

Definition at line 303 of file Layer.H.

References SimStructure::getOutSize().

template<class T , class W >
void Layer< T, W >::setModule ( const SimUnit nsm,
const Location p 
) [inline, virtual]

set type of simulation module at the position

Implements SimLayer.

Definition at line 337 of file Layer.H.

References Layer< T, W >::setModule().

template<class T , class W >
void Layer< T, W >::setModule ( const SimUnit nsm  )  [inline, virtual]

set type of simulation module

Implements SimLayer.

Definition at line 329 of file Layer.H.

Referenced by Layer< T, W >::setModule().

template<class T , class W >
void Layer< T, W >::setTime ( const SimTime time,
const bool  recursive = true 
) [inline, virtual]

set the time of this structure and all contained SimUnits if true

Reimplemented from SimLayer.

Definition at line 351 of file Layer.H.

template<class T , class W>
void Layer< T, W >::setWeights ( const W &  weights  )  [inline]

set the lateral interaction weights, which describe how activity is spread throughout the layer.

Definition at line 344 of file Layer.H.


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:43:34 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3