00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "proc/mobject/placement.hpp"
00025 #include "proc/mobject/explicitplacement.hpp"
00026 #include "proc/mobject/mobject.hpp"
00027
00028 #include <boost/format.hpp>
00029 using boost::str;
00030
00031 namespace mobject
00032 {
00033
00034
00035 template<class MO>
00036 ExplicitPlacement
00037 Placement<MO>::resolve () const
00038 {
00039 return ExplicitPlacement (*this, chain.resolve());
00040 }
00041
00047 template ExplicitPlacement Placement<MObject>::resolve() const;
00048
00049
00050
00051 template<>
00052 Placement<MObject>::operator string () const
00053 {
00054 static boost::format fmt("Placement<%s> %|50T.| use-cnt=%x adr=%x pointee=%x");
00055 return str(fmt % typeid(*get()).name() % use_count() % this % get() );
00056 }
00057
00058
00059
00060
00061 }