LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
26 #include <unordered_map>
37 copy->addFrame(iframe, map, frame);
47 for (
auto const &item : _domainIndexDict) {
55 copy->removeFrame(iframe);
70 copy->setDomain(domain);
75 _domainIndexDict = _makeNewDict(*
this);
80 for (
int index = 1,
end =
frameSet.getNFrame(); index <=
end; ++index) {
81 auto const domain =
frameSet.getFrame(index,
false)->getDomain();
84 }
else if (dict.
count(domain) > 0) {
A FrameSet consists of a set of one or more Frames (which describe coordinate systems),...
int getIndex(std::string const &domain) const
Get the index of a frame specified by domain.
std::shared_ptr< FrameDict > copy() const
Return a deep copy of this object.
An abstract base class for objects which transform one set of coordinates to another.
void addFrame(int iframe, Mapping const &map, Frame const &frame) override
Add a new Frame and an associated Mapping to this FrameSet so as to define a new coordinate system,...
void setDomain(std::string const &domain) override
Set the domain of the current frame (and update the internal dict).
void removeFrame(int iframe) override
Remove a Frame from a FrameSet.
Frame is used to represent a coordinate system.
std::shared_ptr< FrameSet > getFrameSet() const
Return a deep copy as a FrameSet.
AST wrapper classes and functions.
std::string getDomain() const
Get Domain: coordinate system domain.
std::set< std::string > getAllDomains() const
Get the domain names for all contained Frames (excluding frames with empty or defaulted domain names)...
bool hasDomain(std::string const &domain) const
Return True if a frame in this FrameDict has the specified domain.