// LayerSimulator.cpp #include "LayerSimulator.h" #include #include "Layer.h" using std::ostream; using trf::Layer; using trf::LayerPtr; using trf::LayerSimulator; //********************************************************************** // Constructor from the layer. LayerSimulator::LayerSimulator(LayerPtr plyr) : _plyr(plyr) { } //********************************************************************** // drop clusters void LayerSimulator::drop_clusters() { get_layer().drop_clusters(); } //********************************************************************** // Return the associated layer. Layer& LayerSimulator::get_layer() { LayerPtr plyr = get_layer_pointer(); assert( plyr != 0 ); return *plyr; } //********************************************************************** // Return the associated layer as const. const Layer& LayerSimulator::get_layer() const { LayerPtr plyr = get_layer_pointer(); assert( plyr != 0 ); return *plyr; } //********************************************************************** // Return the shared-ownership pointer to the layer. LayerPtr LayerSimulator::get_layer_pointer() const { return _plyr; } //********************************************************************** // output stream ostream& trf::operator<<(ostream& stream, const LayerSimulator& lsim) { lsim.ostr(stream); return stream; } //**********************************************************************