33 molecular::Class< Molecule >(
36 toCopy.GetPerspective(),
38 physical::Perspective< StandardDimension >(toCopy),
39 chemical::LinearMotif< Surface* >(toCopy)
41 chemical::LinearMotif< Surface* >::m_perspective =
this;
48Surface* Molecule::RotateTo(StandardDimension surfaceId)
53 return *Cast< Surface** >(RESULT),
57const Surface* Molecule::RotateTo(StandardDimension surfaceId)
const
62 return *Cast< const Surface** >(RESULT),
71 return *Cast< Surface** >(RESULT),
80 return *Cast< const Surface** >(RESULT),
84bool Molecule::DuplicateFrom(
101 Add< Surface* >(CloneAndCast< Surface* >(toTransfer))->SetEnvironment(
this);
105bool Molecule::TransferFrom(
122 Add< Surface* >(toTransfer)->SetEnvironment(
this);
127Surface* Molecule::operator()(StandardDimension surfaceId)
129 return RotateTo(surfaceId);
132const Surface* Molecule::operator()(StandardDimension surfaceId)
const
134 return RotateTo(surfaceId);
139 return RotateTo(name);
144 return RotateTo(name);
151 Add< Surface* >(source)->SetEnvironment(
this);
167 Import< Surface* >(source);
#define BIO_SANITIZE(test, success, failure)
#define BIO_SANITIZE_WITH_CACHE(test, success, failure)
void Import(const UnorderedMotif< T > *other)
virtual Surface * RotateTo(StandardDimension surfaceId)